diff options
author | 2001-02-15 16:41:32 +0000 | |
---|---|---|
committer | 2001-02-15 16:41:32 +0000 | |
commit | 6bd5236135a27f6d14b1dd134bd89139a3e43fcc (patch) | |
tree | 4a407eee8133bae205d4ff36de4742684eee4066 /net-misc/bind/bind-8.2.3.ebuild | |
parent | zapping things -> media-libs (diff) | |
download | historical-6bd5236135a27f6d14b1dd134bd89139a3e43fcc.tar.gz historical-6bd5236135a27f6d14b1dd134bd89139a3e43fcc.tar.bz2 historical-6bd5236135a27f6d14b1dd134bd89139a3e43fcc.zip |
*** empty log message ***
Diffstat (limited to 'net-misc/bind/bind-8.2.3.ebuild')
-rw-r--r-- | net-misc/bind/bind-8.2.3.ebuild | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/net-misc/bind/bind-8.2.3.ebuild b/net-misc/bind/bind-8.2.3.ebuild new file mode 100644 index 000000000000..6ade11798e1a --- /dev/null +++ b/net-misc/bind/bind-8.2.3.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-misc/bind/bind-8.2.3.ebuild,v 1.1 2001/02/15 16:41:32 achim Exp $ + +A="bind-src.tar.gz bind-doc.tar.gz" +S=${WORKDIR}/src +DESCRIPTION="Name Server" +SRC_URI="ftp://ftp.isc.org/isc/bind/src/8.2.3/bind-src.tar.gz + ftp://ftp.isc.org/isc/bind/src/8.2.3/bind-doc.tar.gz" +HOMEPAGE="http://www.isc.org/products/BIND" + +DEPEND=">=sys-apps/bash-2.04 + >=sys-libs/glibc-2.1.3" + + +src_unpack() { + unpack ${A} + cd ${S} + patch -p2 < ${FILESDIR}/bind-8.1.2-fds.patch + + cd ${S}/port/linux + cp Makefile.set Makefile.set.orig + sed -e "s:^'CC=.*:'CC=gcc':" \ + -e "s:^'YACC=.*:'YACC=bison -y':" Makefile.set.orig > Makefile.set +# sed -e "s:CDEBUG=-O -g:CDEBUG=${CFLAGS}:" Makefile.set.orig > Makefile.set +} + +src_compile() { + + try make clean depend +# cd lib +# for i in bsd dst isc irs inet dnssafe nameser cylink resolv . +# do +# cp $i/Makefile $i/Makefile.orig +# sed -e "s:SYSTYPE= bsdos:SYSTYPE= linux:" $i/Makefile.orig > $i/Makefile +# done +# cd .. + try make SYSTYPE=linux +} + +src_install() { + into /usr + for x in addr dig dnsquery host mkservdb nslookup nsupdate + do + dobin bin/${x}/${x} + done + + for x in dnskeygen irpd named named-bootconf named-xfer ndc + do + dosbin bin/${x}/${x} + done + + dodoc CHANGES DNSSEC SUPPORT README LICENSE* TODO + docinto conf + dodoc conf/README + docinto conf/recursive + dodoc conf/recursive/* + docinto conf/recursive/pri + dodoc conf/recursive/pri/* + docinto conf/workstation + dodoc conf/workstation/* + docinto conf/workstation/pri + dodoc conf/workstation/pri/* + dodir /etc/rc.d/init.d + cp ${O}/files/named ${D}/etc/rc.d/init.d + cp ${O}/files/named.conf ${D}/usr/doc/${PF}/conf/workstation/named.conf.gentoolinux + dodir /etc/bind + dodir /var/bind + + cd ${WORKDIR}/doc/html + docinto html + dodoc * + + cd ${WORKDIR}/doc/man + for i in *.1 *.3 *.5 *.7 *.8 + do + doman $i + done +} + +pkg_config() { + . ${ROOT}/etc/rc.d/config/functions + + if [ -e ${ROOT}/etc/bind/named.conf ]; then + echo "You already have a named.conf in ${ROOT}/etc/bind/named.conf, not creating one." + else + install -m0644 ${ROOT}/usr/doc/${PF}/conf/workstation/named.conf.gentoolinux ${ROOT}/etc/bind/named.conf + mkdir ${ROOT}/var/bind/pri + gzip -d ${ROOT}/usr/doc/${PF}/conf/workstation/root.cache.gz + gzip -d ${ROOT}/usr/doc/${PF}/conf/workstation/pri/*.gz + install -m0644 ${ROOT}/usr/doc/${PF}/conf/workstation/root.cache ${ROOT}/var/bind/root.cache + install -m0644 ${ROOT}/usr/doc/${PF}/conf/workstation/pri/* ${ROOT}/var/bind/pri/ + fi + echo; + + ${ROOT}/usr/sbin/rc-update add named + echo; einfo "BIND enabled." +} |