|
|
|
@@ -16,7 +16,7 @@
|
|
|
|
# server. This might be one of core, main, dev, or
|
|
|
|
# server. This might be one of core, main, dev, or
|
|
|
|
# perhaps others.
|
|
|
|
# perhaps others.
|
|
|
|
# * BRIEF: Short description, should be 50 chars or less
|
|
|
|
# * BRIEF: Short description, should be 50 chars or less
|
|
|
|
# * SNAPVER: This is the package version. When a package is
|
|
|
|
# * SLVER: This is the package version. When a package is
|
|
|
|
# changed, but no changes are made to the source code
|
|
|
|
# changed, but no changes are made to the source code
|
|
|
|
# this value should be increased. This would include
|
|
|
|
# this value should be increased. This would include
|
|
|
|
# things like usher being modified, changes to default
|
|
|
|
# things like usher being modified, changes to default
|
|
|
|
@@ -34,7 +34,7 @@
|
|
|
|
# * PATCHDIR: This directory should be ./SRC/patches and is
|
|
|
|
# * PATCHDIR: This directory should be ./SRC/patches and is
|
|
|
|
# required, whether or not patches are used.
|
|
|
|
# required, whether or not patches are used.
|
|
|
|
# * VERSION: This should be set automatically based on the
|
|
|
|
# * VERSION: This should be set automatically based on the
|
|
|
|
# version string in the source directory and SNAPVER.
|
|
|
|
# version string in the source directory and SLVER.
|
|
|
|
# The default command here should work in many cases,
|
|
|
|
# The default command here should work in many cases,
|
|
|
|
# but certain packages may need to use a different
|
|
|
|
# but certain packages may need to use a different
|
|
|
|
# method.
|
|
|
|
# method.
|
|
|
|
@@ -63,7 +63,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
export ARCH = x86_64
|
|
|
|
export ARCH = x86_64
|
|
|
|
export DEPENDS = dash,e2fsprogs,glibc,krb5,libcap,libxml2,ncurses,openssl,readline,zlib
|
|
|
|
export DEPENDS = dash,e2fsprogs,glibc,krb5,libcap,libxml2,ncurses,openssl,readline,zlib
|
|
|
|
export BUILDDEPS =
|
|
|
|
export BUILDDEPS = krb5-dev,libcap-dev,libxml2-dev,ncurses-dev,openssl-dev,readline-dev,zlib-dev
|
|
|
|
export SRCPKG = $(PACKAGE)
|
|
|
|
export SRCPKG = $(PACKAGE)
|
|
|
|
export URL = https://www.isc.org/downloads/bind/
|
|
|
|
export URL = https://www.isc.org/downloads/bind/
|
|
|
|
REPO = server
|
|
|
|
REPO = server
|
|
|
|
@@ -71,16 +71,16 @@ BRIEF = DNS server
|
|
|
|
DESC = BIND is open source software that enables you to publish your \
|
|
|
|
DESC = BIND is open source software that enables you to publish your \
|
|
|
|
Domain Name System (DNS) information on the Internet, and to resolve \
|
|
|
|
Domain Name System (DNS) information on the Internet, and to resolve \
|
|
|
|
DNS queries for your users.
|
|
|
|
DNS queries for your users.
|
|
|
|
SNAPVER = 0
|
|
|
|
SLVER = 1
|
|
|
|
|
|
|
|
|
|
|
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
|
|
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
|
|
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
|
|
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
|
|
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
|
|
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
|
|
|
PATCHDIR := $(PWD)/SRC/patches
|
|
|
|
PATCHDIR := $(PWD)/SRC/patches
|
|
|
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
|
|
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
|
|
|
sed 's/^-//')-$(SNAPVER)
|
|
|
|
sed 's/^-//')-$(SLVER)
|
|
|
|
|
|
|
|
|
|
|
|
include /usr/share/snap/Makefile.snaplinux
|
|
|
|
include /usr/share/sl/Makefile.snaplinux
|
|
|
|
|
|
|
|
|
|
|
|
DEV := $(PWD)/$(PACKAGE)-dev
|
|
|
|
DEV := $(PWD)/$(PACKAGE)-dev
|
|
|
|
DEVROOT := $(DEV)/ROOT
|
|
|
|
DEVROOT := $(DEV)/ROOT
|
|
|
|
@@ -139,9 +139,9 @@ $(ROOT): $(SRCDIR)/bin/named/.libs/named
|
|
|
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
|
|
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
|
|
|
install -v -m 0755 -d $(ROOT)/etc/init.d && \
|
|
|
|
install -v -m 0755 -d $(ROOT)/etc/init.d && \
|
|
|
|
install -v -m 0700 -d $(ROOT)/var/named && \
|
|
|
|
install -v -m 0700 -d $(ROOT)/var/named && \
|
|
|
|
install -v -m 0755 $(SNAPDIR)/named.init $(ROOT)/etc/init.d/named && \
|
|
|
|
install -v -m 0755 $(SLDIR)/named.init $(ROOT)/etc/init.d/named && \
|
|
|
|
mv -v $(ROOT)/etc/bind.keys $(ROOT)/var/named/bind.keys
|
|
|
|
mv -v $(ROOT)/etc/bind.keys $(ROOT)/var/named/bind.keys
|
|
|
|
@install -v -d $(DEV)/SNAP $(DEVROOT) && \
|
|
|
|
@install -v -d $(DEV)/SL $(DEVROOT) && \
|
|
|
|
for file in `find $(ROOT)| \
|
|
|
|
for file in `find $(ROOT)| \
|
|
|
|
egrep 'man3\/|\.a$$|\.h$$|\.la$$'`; do \
|
|
|
|
egrep 'man3\/|\.a$$|\.h$$|\.la$$'`; do \
|
|
|
|
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
|
|
|
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
|
|
|
@@ -149,18 +149,18 @@ $(ROOT): $(SRCDIR)/bin/named/.libs/named
|
|
|
|
mv $$file $$path; \
|
|
|
|
mv $$file $$path; \
|
|
|
|
done && \
|
|
|
|
done && \
|
|
|
|
find $(ROOT) -type d -empty -delete && \
|
|
|
|
find $(ROOT) -type d -empty -delete && \
|
|
|
|
cd $(DEV) && make -f ../Makefile.dev && mv *.snap ../
|
|
|
|
cd $(DEV) && make -f ../Makefile.dev && mv *.slp ../
|
|
|
|
@install -v -d $(UTILS)/SNAP $(UTILSROOT) && \
|
|
|
|
@install -v -d $(UTILS)/SL $(UTILSROOT) && \
|
|
|
|
install -v -m 0755 -d $(UTILSROOT)/usr/bin && \
|
|
|
|
install -v -m 0755 -d $(UTILSROOT)/usr/bin && \
|
|
|
|
install -v -m 0755 -d $(UTILSROOT)/usr/share/man/man1 && \
|
|
|
|
install -v -m 0755 -d $(UTILSROOT)/usr/share/man/man1 && \
|
|
|
|
mv -v $(ROOT)/usr/bin/{{,m}dig,host,nslookup} $(UTILSROOT)/usr/bin && \
|
|
|
|
mv -v $(ROOT)/usr/bin/{{,m}dig,host,nslookup} $(UTILSROOT)/usr/bin && \
|
|
|
|
mv -v $(ROOT)/usr/share/man/man1/{{,m}dig,host,nslookup}.1 \
|
|
|
|
mv -v $(ROOT)/usr/share/man/man1/{{,m}dig,host,nslookup}.1 \
|
|
|
|
$(UTILSROOT)/usr/share/man/man1 && \
|
|
|
|
$(UTILSROOT)/usr/share/man/man1 && \
|
|
|
|
cd $(UTILS) && make -f ../Makefile.utils && mv *.snap ../
|
|
|
|
cd $(UTILS) && make -f ../Makefile.utils && mv *.slp ../
|
|
|
|
@install -v -d $(DOC)/SNAP $(DOCROOT) && \
|
|
|
|
@install -v -d $(DOC)/SL $(DOCROOT) && \
|
|
|
|
install -v -m 0755 -d $(DOCROOT)/usr/share/doc/bind && \
|
|
|
|
install -v -m 0755 -d $(DOCROOT)/usr/share/doc/bind && \
|
|
|
|
cp -a $(SRCDIR)/doc/* $(DOCROOT)/usr/share/doc/bind && \
|
|
|
|
cp -a $(SRCDIR)/doc/* $(DOCROOT)/usr/share/doc/bind && \
|
|
|
|
cd $(DOC) && make -f ../Makefile.doc && mv *.snap ../
|
|
|
|
cd $(DOC) && make -f ../Makefile.doc && mv *.slp ../
|
|
|
|
|
|
|
|
|
|
|
|
test: $(ROOT)
|
|
|
|
test: $(ROOT)
|
|
|
|
@cd $(SRCDIR); \
|
|
|
|
@cd $(SRCDIR); \
|
|
|
|
@@ -171,8 +171,9 @@ clean:
|
|
|
|
$(DEV) \
|
|
|
|
$(DEV) \
|
|
|
|
$(DOC) \
|
|
|
|
$(DOC) \
|
|
|
|
$(UTILS) \
|
|
|
|
$(UTILS) \
|
|
|
|
$(SNAPINFO) \
|
|
|
|
$(SLINFO) \
|
|
|
|
$(MANIFEST) \
|
|
|
|
$(MANIFEST) \
|
|
|
|
$(FILES) \
|
|
|
|
$(FILES) \
|
|
|
|
$(SRCDIR)
|
|
|
|
$(SRCDIR) \
|
|
|
|
|
|
|
|
$(CONFIG)
|
|
|
|
|
|
|
|
|
|
|
|
|