diff options
author | Daniel Black <dragonheart@gentoo.org> | 2004-02-24 01:59:25 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2004-02-24 01:59:25 +0000 |
commit | 0ea29998dc194efc187f0d5a5be3a09d7b6d4756 (patch) | |
tree | 96c72cd82859ff2d8cc917292c48d426b4ea8919 /net-dns/pdnsd | |
parent | mpg123 depend changed to virtual (diff) | |
download | gentoo-2-0ea29998dc194efc187f0d5a5be3a09d7b6d4756.tar.gz gentoo-2-0ea29998dc194efc187f0d5a5be3a09d7b6d4756.tar.bz2 gentoo-2-0ea29998dc194efc187f0d5a5be3a09d7b6d4756.zip |
As cachedir has changed to /var/cache, change the user's config ready for etc-update
Diffstat (limited to 'net-dns/pdnsd')
-rw-r--r-- | net-dns/pdnsd/ChangeLog | 6 | ||||
-rw-r--r-- | net-dns/pdnsd/pdnsd-1.1.10.ebuild | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/net-dns/pdnsd/ChangeLog b/net-dns/pdnsd/ChangeLog index a040afe61eba..f6ae4c5e03f8 100644 --- a/net-dns/pdnsd/ChangeLog +++ b/net-dns/pdnsd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-dns/pdnsd # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.17 2004/02/23 00:01:31 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.18 2004/02/24 01:59:25 dragonheart Exp $ + + 24 Feb 2004; Daniel Black <dragonheart@gentoo.org> pdnsd-1.1.10.ebuild: + As cachedir has changed to /var/cache, change the user's config ready for + etc-update. *pdnsd-1.1.10 (23 Feb 2004) diff --git a/net-dns/pdnsd/pdnsd-1.1.10.ebuild b/net-dns/pdnsd/pdnsd-1.1.10.ebuild index 0608f1626807..f42ce627aa43 100644 --- a/net-dns/pdnsd/pdnsd-1.1.10.ebuild +++ b/net-dns/pdnsd/pdnsd-1.1.10.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.1.10.ebuild,v 1.2 2004/02/23 00:01:31 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.1.10.ebuild,v 1.3 2004/02/24 01:59:25 dragonheart Exp $ DESCRIPTION="Proxy DNS server with permanent caching" @@ -72,6 +72,11 @@ src_install() { docinto txt ; dodoc doc/txt/* newdoc doc/pdnsd.conf pdnsd.conf.sample + # Remind users that the cachedir has moved to /var/cache + [ -f /etc/pdnsd/pdnsd.conf ] && \ + sed -e "s#/var/lib#/var/cache#g" /etc/pdnsd/pdnsd.conf \ + > ${D}/etc/pdnsd/pdnsd.conf + exeinto /etc/init.d newexe ${FILESDIR}/pdnsd.rc6 pdnsd newexe ${FILESDIR}/pdnsd.online pdnsd-online @@ -83,9 +88,10 @@ src_install() { local config=${D}/etc/conf.d/pdnsd-online ${D}/usr/sbin/pdnsd --help | sed "s/^/# /g" > ${config} - echo "# Enter the interface that connects you to the dns servers" >> ${config} + echo -e "\n\n# Enter the interface that connects you to the dns servers" >> ${config} echo "# This will correspond to /etc/init.d/net.${IFACE}" >> ${config} echo "IFACE=ppp0" >> ${config} + echo "# Command line options" >> ${config} use ipv6 && echo PDNSDCONFIG="-6" >> ${config} \ || echo PDNSDCONFIG="" >> ${config} |