| 1 | # readme for chroot pkg? |
|---|
| 2 | # owner/group for device files? (root:sys) |
|---|
| 3 | |
|---|
| 4 | NAME = bind |
|---|
| 5 | VERSION = 9.8.3 |
|---|
| 6 | #VERSION = 9.9.0 |
|---|
| 7 | CATEGORIES = net |
|---|
| 8 | GARTYPE = v2 |
|---|
| 9 | |
|---|
| 10 | # Enable these for Px-releases |
|---|
| 11 | #RELEASE = rc2 |
|---|
| 12 | #RELEASE = P1 |
|---|
| 13 | #DISTVERSION = $(VERSION)-$(RELEASE) |
|---|
| 14 | #SPKG_VERSION = $(VERSION)$(RELEASE) |
|---|
| 15 | #DISTNAME = $(NAME)-$(VERSION)-$(RELEASE) |
|---|
| 16 | #WORKSRC = $(WORKDIR)/$(DISTNAME) |
|---|
| 17 | |
|---|
| 18 | DESCRIPTION = ISC BIND DNS reference implementation |
|---|
| 19 | define BLURB |
|---|
| 20 | BIND is open-source software that implements the Domain Name System (DNS) |
|---|
| 21 | protocols for the Internet. It is a reference implementation of those |
|---|
| 22 | protocols, but it is also production-grade software, suitable for use in |
|---|
| 23 | high-volume and high-reliability applications. |
|---|
| 24 | endef |
|---|
| 25 | |
|---|
| 26 | # Enable these for Px-releases |
|---|
| 27 | #MASTER_SITES = http://ftp.isc.org/isc/bind9/$(VERSION)-$(RELEASE)/ |
|---|
| 28 | #DISTFILES = $(DISTNAME).tar.gz |
|---|
| 29 | |
|---|
| 30 | # Disable these for Px-releases |
|---|
| 31 | MASTER_SITES = http://ftp.isc.org/isc/bind9/$(VERSION)/ |
|---|
| 32 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 33 | |
|---|
| 34 | DISTFILES += CSWbindchroot.postinstall |
|---|
| 35 | |
|---|
| 36 | LICENSE = COPYRIGHT |
|---|
| 37 | |
|---|
| 38 | PACKAGES += CSWbind |
|---|
| 39 | CATALOGNAME_CSWbind = bind |
|---|
| 40 | SPKG_DESC_CSWbind = ISC BIND DNS main package |
|---|
| 41 | RUNTIME_DEP_PKGS_CSWbind = CSWlibbind |
|---|
| 42 | RUNTIME_DEP_PKGS_CSWbind += CSWbindutils |
|---|
| 43 | RUNTIME_DEP_PKGS_CSWbind += CSWlibz1 |
|---|
| 44 | RUNTIME_DEP_PKGS_CSWbind += CSWlibxml2-2 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWbind += CSWlibiconv2 |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWbind += CSWlibssl1-0-0 |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWbind += CSWliblber2-4-2 |
|---|
| 48 | RUNTIME_DEP_PKGS_CSWbind += CSWlibldap2-4-2 |
|---|
| 49 | |
|---|
| 50 | PACKAGES += CSWbind-dev |
|---|
| 51 | CATALOGNAME_CSWbind-dev = bind_dev |
|---|
| 52 | SPKG_DESC_CSWbind-dev = ISC BIND DNS development package |
|---|
| 53 | RUNTIME_DEP_PKGS_CSWbind-dev = CSWbind |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWbind-dev += CSWlibbind |
|---|
| 55 | |
|---|
| 56 | PACKAGES += CSWlibbind |
|---|
| 57 | CATALOGNAME_CSWlibbind = libbind |
|---|
| 58 | SPKG_DESC_CSWlibbind = ISC BIND DNS library package |
|---|
| 59 | RUNTIME_DEP_PKGS_CSWlibbind = CSWlibiconv2 |
|---|
| 60 | RUNTIME_DEP_PKGS_CSWlibbind += CSWlibz1 |
|---|
| 61 | RUNTIME_DEP_PKGS_CSWlibbind += CSWlibxml2-2 |
|---|
| 62 | RUNTIME_DEP_PKGS_CSWlibbind += CSWlibssl1-0-0 |
|---|
| 63 | |
|---|
| 64 | PACKAGES += CSWbindutils |
|---|
| 65 | CATALOGNAME_CSWbindutils = bind_utils |
|---|
| 66 | SPKG_DESC_CSWbindutils = ISC BIND DNS utilities package |
|---|
| 67 | RUNTIME_DEP_PKGS_CSWbindutils = CSWlibbind |
|---|
| 68 | RUNTIME_DEP_PKGS_CSWbindutils += CSWlibiconv2 |
|---|
| 69 | RUNTIME_DEP_PKGS_CSWbindutils += CSWlibz1 |
|---|
| 70 | RUNTIME_DEP_PKGS_CSWbindutils += CSWlibxml2-2 |
|---|
| 71 | RUNTIME_DEP_PKGS_CSWbindutils += CSWlibssl1-0-0 |
|---|
| 72 | |
|---|
| 73 | PACKAGES += CSWbindchroot |
|---|
| 74 | CATALOGNAME_CSWbindchroot = bind_chroot |
|---|
| 75 | SPKG_DESC_CSWbindchroot = ISC BIND DNS chroot package |
|---|
| 76 | RUNTIME_DEP_PKGS_CSWbindchroot = CSWbind |
|---|
| 77 | ARCHALL_CSWbindchroot = 1 |
|---|
| 78 | |
|---|
| 79 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 80 | CONFIGURE_ARGS += --with-libtool |
|---|
| 81 | CONFIGURE_ARGS += --with-openssl=/opt/csw |
|---|
| 82 | CONFIGURE_ARGS += --enable-threads |
|---|
| 83 | CONFIGURE_ARGS += --enable-largefile |
|---|
| 84 | CONFIGURE_ARGS += --sysconfdir=/etc/opt/csw |
|---|
| 85 | CONFIGURE_ARGS += --localstatedir=/var/opt/csw/named |
|---|
| 86 | CONFIGURE_ARGS += --with-dlz-ldap=/opt/csw |
|---|
| 87 | |
|---|
| 88 | EXTRA_MERGE_EXCLUDE_FILES = .*~ $(libdir)/.*\.a $(libdir)/.*\.la |
|---|
| 89 | |
|---|
| 90 | #EXTRA_INC = /opt/csw/include |
|---|
| 91 | |
|---|
| 92 | PKGFILES_CSWbind-dev = $(PKGFILES_DEVEL) |
|---|
| 93 | PKGFILES_CSWbind-dev += .*\.so |
|---|
| 94 | PKGFILES_CSWlibbind = .*\.so\..* |
|---|
| 95 | PKGFILES_CSWbindutils = $(bindir)/.* |
|---|
| 96 | PKGFILES_CSWbindchroot = .*chroot.* |
|---|
| 97 | |
|---|
| 98 | INSTALL_SCRIPTS = custom |
|---|
| 99 | |
|---|
| 100 | PROTOTYPE_MODIFIERS = 1 |
|---|
| 101 | PROTOTYPE_FILES_1 = /var/opt/csw/named.* |
|---|
| 102 | PROTOTYPE_CLASS_1 = ugfiles |
|---|
| 103 | PROTOTYPE_USER_1 = named |
|---|
| 104 | PROTOTYPE_GROUP_1 = named |
|---|
| 105 | |
|---|
| 106 | INITSMF = /etc/opt/csw/init.d/cswnamed |
|---|
| 107 | SAMPLECONF = /etc/opt/csw/named.conf |
|---|
| 108 | SAMPLECONF += /etc/opt/csw/bind.keys |
|---|
| 109 | SAMPLECONF += /etc/opt/csw/pkg/CSWbind/bind |
|---|
| 110 | USERGROUP = /etc/opt/csw/pkg/CSWbind/cswusergroup |
|---|
| 111 | |
|---|
| 112 | SPKG_SOURCEURL = http://www.isc.org/software/bind |
|---|
| 113 | |
|---|
| 114 | CHECKPKG_OVERRIDES_CSWbind += surplus-dependency|CSWbindutils |
|---|
| 115 | CHECKPKG_OVERRIDES_CSWbindutils += catalogname-does-not-match-pkgname|pkgname=CSWbindutils|catalogname=bind_utils|expected-catalogname=bindutils |
|---|
| 116 | CHECKPKG_OVERRIDES_CSWbindchroot += catalogname-does-not-match-pkgname|pkgname=CSWbindchroot|catalogname=bind_chroot|expected-catalogname=bindchroot |
|---|
| 117 | # Will not split out all these libs |
|---|
| 118 | CHECKPKG_OVERRIDES_CSWlibbind += shared-lib-pkgname-mismatch|file=opt/csw/lib/libbind9.so.80.0.5|soname=libbind9.so.80|pkgname=CSWlibbind|expected=CSWlibbind9-80 |
|---|
| 119 | CHECKPKG_OVERRIDES_CSWlibbind += shared-lib-pkgname-mismatch|file=opt/csw/lib/libdns.so.81.6.1|soname=libdns.so.81|pkgname=CSWlibbind|expected=CSWlibdns81 |
|---|
| 120 | CHECKPKG_OVERRIDES_CSWlibbind += shared-lib-pkgname-mismatch|file=opt/csw/lib/libisc.so.83.0.5|soname=libisc.so.83|pkgname=CSWlibbind|expected=CSWlibisc83 |
|---|
| 121 | CHECKPKG_OVERRIDES_CSWlibbind += shared-lib-pkgname-mismatch|file=opt/csw/lib/libisccc.so.80.0.1|soname=libisccc.so.80|pkgname=CSWlibbind|expected=CSWlibisccc80 |
|---|
| 122 | CHECKPKG_OVERRIDES_CSWlibbind += shared-lib-pkgname-mismatch|file=opt/csw/lib/libisccfg.so.82.0.2|soname=libisccfg.so.82|pkgname=CSWlibbind|expected=CSWlibisccfg82 |
|---|
| 123 | CHECKPKG_OVERRIDES_CSWlibbind += shared-lib-pkgname-mismatch|file=opt/csw/lib/liblwres.so.80.0.2|soname=liblwres.so.80|pkgname=CSWlibbind|expected=CSWliblwres80 |
|---|
| 124 | include gar/category.mk |
|---|
| 125 | |
|---|
| 126 | DOCLIST = README.CSW db.127.0.0 db.localhost named.conf named.root rndc.key |
|---|
| 127 | |
|---|
| 128 | install-custom: |
|---|
| 129 | @echo " ==> Installing $(NAME) (custom)" |
|---|
| 130 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/init.d |
|---|
| 131 | @ginstall -m 755 $(FILEDIR)/CSWbind.cswnamed $(DESTDIR)/etc/opt/csw/init.d/cswnamed |
|---|
| 132 | # @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw |
|---|
| 133 | @ginstall -m 644 $(FILEDIR)/CSWbind.named.conf.CSW $(DESTDIR)/etc/opt/csw/named.conf |
|---|
| 134 | @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/pkg/CSWbind |
|---|
| 135 | @ginstall -m 444 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSWbind/ |
|---|
| 136 | @ginstall -m 644 $(FILEDIR)/bind.CSW $(DESTDIR)/etc/opt/csw/pkg/CSWbind/bind |
|---|
| 137 | @ginstall -m 755 -d $(DESTDIR)$(docdir)/$(NAME) |
|---|
| 138 | @$(foreach DOC,$(DOCLIST),cp $(FILEDIR)/$(DOC) $(DESTDIR)$(docdir)/$(NAME);) |
|---|
| 139 | ( cd $(WORKSRC) ; \ |
|---|
| 140 | gmake DESTDIR=$(DESTDIR) install ) |
|---|
| 141 | @ginstall -m 755 -d $(DESTDIR)/var/opt/csw/named |
|---|
| 142 | @touch $(DESTDIR)/var/opt/csw/named/named.pid |
|---|
| 143 | @ginstall -m 755 -d $(DESTDIR)/var/opt/csw/named/chroot/dev |
|---|
| 144 | @ginstall -m 755 -d $(DESTDIR)/var/opt/csw/named/chroot/etc/opt/csw |
|---|
| 145 | @ginstall -m 755 -d $(DESTDIR)/var/opt/csw/named/chroot/var/named |
|---|
| 146 | @$(MAKECOOKIE) |
|---|