diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
commit | c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch) | |
tree | c44943ee0563a3fa957716de909fed683117fcb9 /net-dns/pdnsd | |
parent | 69051588e2f955485fe5d45d45e616bc60a2de57 (diff) |
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'net-dns/pdnsd')
-rw-r--r-- | net-dns/pdnsd/Manifest | 3 | ||||
-rw-r--r-- | net-dns/pdnsd/metadata.xml | 4 | ||||
-rw-r--r-- | net-dns/pdnsd/pdnsd-1.2.9a-r1.ebuild | 131 |
3 files changed, 1 insertions, 137 deletions
diff --git a/net-dns/pdnsd/Manifest b/net-dns/pdnsd/Manifest index 71c0a6502eba..7388be544cbc 100644 --- a/net-dns/pdnsd/Manifest +++ b/net-dns/pdnsd/Manifest @@ -7,6 +7,5 @@ AUX pdnsd.resolvconf-r1 17538 BLAKE2B 0797bf3800e5ca1bf3d4c55cbd0862bb8a6964b5b1 AUX pdnsd.service 269 BLAKE2B b14978db01ec729a6e04d4849a468fd45999c1fbd7d21e986b2034edb81f645df7f5ce8924d72e11b04a548c6957964c936442f1d57c5fa9a327667b331ce4f4 SHA512 c1504f52fb30ba197bd3c3450f200f2f274bf73f7a6436bc317ad9affc18e9c5edcb8555913a4aa9c6bf44b935e0c9cd005b4f5b0fd56eed6e11914f63db9ef2 AUX pdnsd.tmpfiles 37 BLAKE2B c4da53c3d0ebea88e456e6ea07b2505ed187e074286bb40fabde6a27c4cc017dabea3207e8fde80aa3fe38957b12ce8e09c809b369f06356c1737ae0825cdbff SHA512 7beacc66e8504ca0f8e613dfc8ed2479362f1ebc98ffab902622b36c795fe75e176d9f0a330ad74e10a7f7b1597cce068d94eea6511a75b941e42b2458b76df5 DIST pdnsd-1.2.9a-par.tar.gz 516061 BLAKE2B 33f2fa85f4b2fa3b709e612c12c8a6edff67f3d2203a8ccd9e838f72b8ab2664eb2e88c0957c08c64568581d9eeb4bede9157ba0928fa6d28ccca279f71fbd1a SHA512 4fde296642306aa986ddb7cad0b5991bcd397656d93ef4962706276848c7fa62c664a40198e807d029637f116e8000c237d98b91cbbfec5c08b134d8bb3adf81 -EBUILD pdnsd-1.2.9a-r1.ebuild 4066 BLAKE2B ada2c3ef181876904cce8d248012f6bd233c7d8755a29b83c3c480b5db6e4e0c54a097d0ae6ac4a0d4fe33910cfe8aeb6215e420d4fa4d5651908f8a791d7b39 SHA512 9aa45f1945e2864b2d210aabe222c6f9edf56157750360908621e7f2ce725d147060f9698882dd3b288546a9b35a4c914ba1704b37e6567da3394e6368a280dd EBUILD pdnsd-1.2.9a-r2.ebuild 3250 BLAKE2B 1f51cde2448d53f074ae169c0364446eb8a6ba230c53adf246dd45aa745a625ddb33928daeda676d0bf3434c4b8800447b79e5d5951cac4007cc83eba71a2a1f SHA512 a33a4ff359e74860683b06fa933e9b0863aabf9390e46168d28b2a7bd8ad0d14c3c7e75c022d1f35f24fd0359a788712baa26f78cfe081d86dace0a83f6260ec -MISC metadata.xml 814 BLAKE2B 2f0e173648d270958a54e378a0638936666c958f69768047e24d4d6cd03d9f52d89940cf57fb346d27fd2806c6ea6be378ff4d950161d475f1f0a0eac0fe206f SHA512 b5bca37d42c4c50031a968297332e824e2830481903ae4036347ffbf554a0a37efb582d8a52b6bba48a0566db81942b1052aca5ed16bbe248fcec46ea99090a8 +MISC metadata.xml 690 BLAKE2B b0622b07b0bde244e72fda490d314bfc9741a9e543d2d28454bb318974c05482b0f35b3ec84e200ad44028315dacb36a733d58a854d92ffa5fddbdc5d8c06367 SHA512 d206ddb764115a80a423255760eb5d82f842cecde6318be38a8d0b7121b2c893b0eff6687837965b9058b53c4e24245a349dbfe91ee0b18e8e3482b0aa623fe8 diff --git a/net-dns/pdnsd/metadata.xml b/net-dns/pdnsd/metadata.xml index 1198baddd17c..b2ffc78b5c94 100644 --- a/net-dns/pdnsd/metadata.xml +++ b/net-dns/pdnsd/metadata.xml @@ -12,10 +12,6 @@ networking). </longdescription> <use> - <flag name="isdn"> - Linux-only: check status of ippp interfaces with ISDN-specific - system calls. - </flag> <flag name="urandom"> Linux-only: use /dev/urandom (pseudo-random number generation) instead of the default use of random() PRNG. diff --git a/net-dns/pdnsd/pdnsd-1.2.9a-r1.ebuild b/net-dns/pdnsd/pdnsd-1.2.9a-r1.ebuild deleted file mode 100644 index 5a05f498a8b3..000000000000 --- a/net-dns/pdnsd/pdnsd-1.2.9a-r1.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit systemd user - -DESCRIPTION="Proxy DNS server with permanent caching" -HOMEPAGE="http://members.home.nl/p.a.rombouts/pdnsd/" -SRC_URI="http://members.home.nl/p.a.rombouts/pdnsd/releases/${P}-par.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~ia64 ppc ~s390 sparc x86" -IUSE="debug ipv6 isdn +urandom test" -RESTRICT="!test? ( test )" - -RDEPEND="" -DEPEND="test? ( net-dns/bind-tools )" - -pkg_setup() { - enewgroup pdnsd - enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd -} - -src_configure() { - local myconf="" - use debug && myconf="${myconf} --with-debug=3" - use urandom && myconf="${myconf} --with-random-device=/dev/urandom" - - econf \ - --sysconfdir=/etc/pdnsd \ - --with-cachedir=/var/cache/pdnsd \ - --with-default-id=pdnsd \ - $(use_enable ipv6) $(use_enable ipv6 ipv6-startup) \ - $(use_enable isdn) \ - ${myconf} -} - -src_install() { - emake DESTDIR="${D}" install - - dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par - docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} - docinto html ; dohtml doc/html/* - docinto txt ; dodoc doc/txt/* - newdoc doc/pdnsd.conf pdnsd.conf.sample - - newinitd "${FILESDIR}/pdnsd.rc8" pdnsd - newinitd "${FILESDIR}/pdnsd.online.2" pdnsd-online - systemd_newtmpfilesd "${FILESDIR}/pdnsd.tmpfiles" pdnsd.conf - systemd_dounit "${FILESDIR}/pdnsd.service" - - mkdir "${T}"/confd || die - - cat - > "${T}"/confd/pdnsd-online <<EOF -# Make sure to change the rc_need variable to the service for the -# interface that connects you to the dns servers. -# -# For instance if you use a PPP connection on ppp0 to connect, set -# rc_need="net.ppp0" - -rc_need="net.lo" -EOF - - # Don't try to do the smart thing and add the --help output here: - # it will cause the file to be etc-updated if the help text - # changes and fails when cross-compiling. - cat - > "${T}"/confd/pdnsd <<EOF -# Command line options, check pdnsd --help for a list of valid -# parameters. Note that most of the options that can be given at -# command-line are also available as configuration parameters in -# /etc/pdnsd/pdnsd.conf -PDNSDCONFIG="" -EOF - - doconfd "${T}"/confd/* - - # gentoo resolvconf support - exeinto /etc/resolvconf/update.d - newexe "${FILESDIR}/pdnsd.resolvconf-r1" pdnsd -} - -src_test() { - fail_kill() { - kill -9 $(<"${T}"/pid) - die "$1" - } - - mkdir "${T}/pdnsd" || die - echo -n -e "pd12\0\0\0\0" > "${T}/pdnsd/pdnsd.cache" - IPS=$(grep ^nameserver /etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs) - sed -e "s/\tip=/${IPS}/" -e "s:cache_dir=:cache_dir=${T}/pdnsd:" "${FILESDIR}/pdnsd.conf.test" \ - > "${T}/pdnsd.conf.test" - src/pdnsd -c "${T}/pdnsd.conf.test" -g -s -d -p "${T}/pid" || die "couldn't start daemon" - sleep 3 - - find "${T}" -ls - [ -s "${T}/pid" ] || die "empty or no pid file created" - [ -S "${T}/pdnsd/pdnsd.status" ] || fail_kill "no socket created" - src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" server all up || fail_kill "failed to start the daemon" - src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" status || fail_kill "failed to communicate with the daemon" - sleep 3 - - dig @127.0.0.1 -p 33455 localhost > "${T}"/dig.output 2>&1 - cat "${T}"/dig.output || die - fgrep -q "status: NOERROR" "${T}"/dig.output || fail_kill "www.gentoo.org lookup failed" - - kill $(<"${T}/pid") || fail_kill "failed to terminate daemon" -} - -pkg_postinst() { - elog - elog "Add pdnsd to your default runlevel - rc-update add pdnsd default" - elog "" - elog "Add pdnsd-online to your online runlevel." - elog "The online interface will be listed in /etc/conf.d/pdnsd-online" - elog "" - elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample" - - # The tmpfiles.d configuration does not come into effect before the - # next reboot so create the cachedir now. - local cachedir="/var/cache/pdnsd" - if [[ ! -d ${cachedir} ]] ; then - mkdir ${cachedir} || eerror "Failed to create cache" - fi - chown pdnsd:pdnsd ${cachedir} \ - || eerror "Failed to set ownership for cachedir" - chmod 0750 ${cachedir} \ - || eerror "Failed to set permissions for cachedir" -} |