summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <mrpouet@gentoo.org>2009-08-19 15:58:39 +0000
committerRomain Perier <mrpouet@gentoo.org>2009-08-19 15:58:39 +0000
commit781ffba48ae1044897ae3423e675315b71bc1430 (patch)
tree3238bfd94562daa187b363e80b8e063395ba1408
parentdev-ml/ocamlgsl: Add ~amd64 into KEYWORDS, Unquote RDEPEND, Drop -j1 to emake... (diff)
downloadsunrise-781ffba48ae1044897ae3423e675315b71bc1430.tar.gz
sunrise-781ffba48ae1044897ae3423e675315b71bc1430.tar.bz2
sunrise-781ffba48ae1044897ae3423e675315b71bc1430.zip
net-dns/nsd: Switch to eapi-2, clean-up src_install()
svn path=/sunrise/; revision=9069
-rw-r--r--net-dns/nsd/Manifest2
-rw-r--r--net-dns/nsd/nsd-3.2.3.ebuild40
2 files changed, 21 insertions, 21 deletions
diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest
index af50aa04c..ce0de576d 100644
--- a/net-dns/nsd/Manifest
+++ b/net-dns/nsd/Manifest
@@ -2,6 +2,6 @@ AUX nsd.confd 104 RMD160 cd15a20757fd4db72a2da5327d68f4d6561bb271 SHA1 5fab374d0
AUX nsd.cron 227 RMD160 9a78cfc2bfb18ada86c42e24310416043d30a4f4 SHA1 feed7a81954ba03e85457ee731ca7475098bd189 SHA256 8d62364ac608edacbb1e1d2a80c3b9490600eca65c796f84b394a6289618778c
AUX nsd.initd 1564 RMD160 def86cc589c7b004a734110b3c75639b51acbc57 SHA1 cd9244a54aeb61e42a57038ec895c8130436f549 SHA256 ffd8019da6e8b60156bd232a7612112deee957eafb8d8eb9f3a149827fad14da
DIST nsd-3.2.3.tar.gz 855917 RMD160 f1672a4c0fee607d1cc5d8d21c6667fc51d43dd9 SHA1 2afcc6e1086eef7f5e538c7d837f628f83a19a86 SHA256 2a9b4cb63b002a2a63ec8243f90a9e041f08b9498faa5b35ca71ce3334d842ff
-EBUILD nsd-3.2.3.ebuild 2282 RMD160 ddadec6bcc0872438096db1911b0e46b4d5ab1a7 SHA1 810aaa40ec4f99740538255c9bc123a809a78572 SHA256 448e7abe292d94a26bba001921a63f11653a8a24a54e0e61cc5e603b7b052e54
+EBUILD nsd-3.2.3.ebuild 2313 RMD160 c419c0109d88de54213cb5935bae1af7cd872a9c SHA1 284ecb7829165a99f982991aa82d6eed0b7308ae SHA256 30f55adefd7357aa0cd96c31bc7f9e8fc717c2faf6a6423cfb486c264ff75874
MISC ChangeLog 2028 RMD160 71e791279e8cae6a95f4ee555d379de1aa2c66fb SHA1 32379dfb65dac412a53e20e5c84872f6928bd65e SHA256 d9a82f43d9d76a5690da971dc3d89fa8eee82c40e0e79daebe231fca3d414a5e
MISC metadata.xml 636 RMD160 5545e97a08014c4e8fef86b6c31beb256bd0afa3 SHA1 fffb9c46af8579e12630200c015e2e8d20d4095f SHA256 68459d2bd40c279d1130dc09006f1efc8c094ee0131fd77f56ede70c7766fa85
diff --git a/net-dns/nsd/nsd-3.2.3.ebuild b/net-dns/nsd/nsd-3.2.3.ebuild
index 6152fd3b8..580359d28 100644
--- a/net-dns/nsd/nsd-3.2.3.ebuild
+++ b/net-dns/nsd/nsd-3.2.3.ebuild
@@ -2,6 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI="2"
+
inherit eutils
DESCRIPTION="An authoritative only, high performance, open source name server"
@@ -28,7 +30,7 @@ pkg_setup() {
enewuser nsd -1 -1 -1 nsd
}
-src_compile() {
+src_configure() {
econf \
--with-dbfile=/var/db/nsd/nsd.db \
--with-difffile=/var/db/nsd/ixfr.db \
@@ -44,37 +46,35 @@ src_compile() {
$(use_enable root-server) \
$(use_enable runtime-checks checking) \
$(use_enable tsig)
-
- emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
- dodoc doc/{ChangeLog,CREDITS,NSD-FOR-BIND-USERS,README,REQUIREMENTS} || die "dodoc failed"
-
+ dodoc doc/{ChangeLog,CREDITS,NSD-FOR-BIND-USERS,README,REQUIREMENTS} \
+ || die "dodoc failed"
insinto /usr/share/${PN}
- doins "${FILESDIR}/nsd.cron" || die "doins failed"
- doins contrib/nsd.zones2nsd.conf || die "doins failed"
+ doins "${FILESDIR}/${PN}.cron" || die "doins failed"
+ doins contrib/${PN}.zones2${PN}.conf || die "doins failed"
- newinitd "${FILESDIR}"/nsd.initd nsd || die "newinitd failed"
- newconfd "${FILESDIR}"/nsd.confd nsd || die "newconfd failed"
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} || die "newinitd failed"
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} || die "newconfd failed"
- # database directory, writable by nsd for ixfr.db file
- keepdir /var/db/nsd
- fowners nsd:nsd /var/db/nsd
- fperms 750 /var/db/nsd
+ # database directory, writable by ${PN} for ixfr.db file
+ keepdir /var/db/${PN}
+ fowners ${PN}:${PN} /var/db/${PN}
+ fperms 750 /var/db/${PN}
- # zones directory, writable by root for 'nsdc patch'
- keepdir /var/lib/nsd
- fowners root:nsd /var/lib/nsd
- fperms 750 /var/lib/nsd
+ # zones directory, writable by root for '${PN}c patch'
+ keepdir /var/lib/${PN}
+ fowners root:${PN} /var/lib/${PN}
+ fperms 750 /var/lib/${PN}
}
pkg_postinst() {
elog "If you are using bind and want to convert (or sync) bind zones"
- elog "you should check out bind2nsd (http://bind2nsd.sourceforge.net)."
+ elog "you should check out bind2${PN} (http://bind2${PN}.sourceforge.net)."
echo
- elog "To automatically merge zone transfer changes back to NSD's"
- elog "zone files using 'nsdc patch', try nsd.cron in /usr/share/${PN}"
+ elog "To automatically merge zone transfer changes back to ${PN}'s"
+ elog "zone files using '${PN}c patch', try ${PN}.cron in /usr/share/${PN}"
}