mirror of
https://github.com/bklang/ldap2dns.git
synced 2025-11-26 16:34:02 -05:00
* 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:
27
Makefile
27
Makefile
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user