* Renamed Specfile to ldap2dns.spec.in

* Updated make to build RPMs for SuSE and RedHat
* Updated ldap2dns.spec.in
* Added INSTALL file


git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@126 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
Ben Klang
2005-12-05 03:32:56 +00:00
parent 5a115dc34f
commit 3f0ae4f007
4 changed files with 42 additions and 16 deletions

View File

@@ -13,6 +13,19 @@ LDAPCONFDIR=$(INSTALL_PREFIX)/etc/openldap
SPECFILE=ldap2dns.spec
DISTRIBUTION=redhat
ifeq "$(DISTRIBUTION)" "redhat"
RPMBASE=/usr/src/redhat
RPMGROUP=Daemons/DNS
OPENLDAPPKG=openldap
endif
ifeq "$(DISTRIBUTION)" "suse"
RPMBASE=/usr/src/packages
RPMGROUP=Productivity/Networking/DNS/Servers
OPENLDAPPKG=openldap2
endif
all: ldap2dns ldap2dnsd
debug: ldap2dns-dbg
@@ -51,21 +64,11 @@ tar: clean
cd ldap2dns
rpm: tar
ifeq "$(DISTRIBUTION)" "redhat"
RPMBASE=/usr/src/redhat
RPMGROUP=Daemons/DNS
endif
ifeq "$(DISTRIBUTION)" "suse"
RPMBASE=/usr/src/packages
RPMGROUP=Productivity/Networking/DNS/Servers
endif
sed -e 's#%VERSION%#$(VERSION)#g' \
-e 's#%RELEASE%#$(RELEASE)#g' \
-e 's#%RPMGROUP%#$(RPMGROUP)#g' \
-e 's#%OPENLDAPPKG%#$(OPENLDAPPKG)#g' \
< $(SPECFILE).in > $(SPECFILE)
mv ../ldap2dns-$(VERSION).tar.gz $(RPMBASE)
mv ../ldap2dns-$(VERSION).tar.gz $(RPMBASE)/SOURCES
rpmbuild -ba $(SPECFILE)