diff options
author | 2011-08-13 00:47:23 +0000 | |
---|---|---|
committer | 2011-08-13 00:47:23 +0000 | |
commit | 78aca2ae02d212f2bffd0dd19e7bc6670c4af850 (patch) | |
tree | b54e1298f7449f0e8572e2e9b8883934b5443caf /net-dns/ddclient | |
parent | Based on 2.6.32.44 + genpatches-2.6.32-40 + grsecurity-2.2.2-2.6.32.44-201108... (diff) | |
download | historical-78aca2ae02d212f2bffd0dd19e7bc6670c4af850.tar.gz historical-78aca2ae02d212f2bffd0dd19e7bc6670c4af850.tar.bz2 historical-78aca2ae02d212f2bffd0dd19e7bc6670c4af850.zip |
Fixes bug 258343
Package-Manager: portage-2.1.10.3/cvs/Linux i686
Diffstat (limited to 'net-dns/ddclient')
-rw-r--r-- | net-dns/ddclient/ChangeLog | 8 | ||||
-rw-r--r-- | net-dns/ddclient/Manifest | 12 | ||||
-rw-r--r-- | net-dns/ddclient/ddclient-3.8.1-r1.ebuild | 70 | ||||
-rw-r--r-- | net-dns/ddclient/files/iproute2.patch | 30 | ||||
-rw-r--r-- | net-dns/ddclient/metadata.xml | 8 |
5 files changed, 120 insertions, 8 deletions
diff --git a/net-dns/ddclient/ChangeLog b/net-dns/ddclient/ChangeLog index a808a8f513c7..0a3218fffc40 100644 --- a/net-dns/ddclient/ChangeLog +++ b/net-dns/ddclient/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-dns/ddclient # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.41 2011/08/12 12:29:42 titanofold Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ChangeLog,v 1.42 2011/08/13 00:47:23 titanofold Exp $ + +*ddclient-3.8.1-r1 (13 Aug 2011) + + 13 Aug 2011; Aaron W. Swenson <titanofold@gentoo.org> +files/iproute2.patch, + +ddclient-3.8.1-r1.ebuild, metadata.xml: + Fixes bug 258343 *ddclient-3.8.1 (12 Aug 2011) diff --git a/net-dns/ddclient/Manifest b/net-dns/ddclient/Manifest index 67339b53a8ba..04f67c9674d0 100644 --- a/net-dns/ddclient/Manifest +++ b/net-dns/ddclient/Manifest @@ -5,18 +5,20 @@ AUX ddclient-reasonable-security.patch 858 RMD160 0be9d1a9412225361f6352322ee5af AUX ddclient.confd 97 RMD160 dab278d7ed0ab8fe9f01c072be549d532f20b5d4 SHA1 90ede573df78aa242b9fec7f6d9f05f0c937fb2b SHA256 7a05a1c016dcffa2033da00e8a58072d0df33c31bc8b96170929032567cb44ab AUX ddclient.initd 1227 RMD160 033f85c34d5126ce259687c565e16e78f01c4a6e SHA1 cc5e7fff44cba718090178db4cea756727007796 SHA256 9b2767317351437dcf71c59ef4ab15af0e4953465b17774980449885059aa925 AUX ddclient.initd-r1 1195 RMD160 3b3355b15cd525a88b9c2d8bceb18749bb6cc1bb SHA1 e114f5a8485c270a2960e2ffa7790f2a130910bf SHA256 48befb2e5ce84e3912ce790a56f438ff988a2d2716fdcd2c127682a042702451 +AUX iproute2.patch 1394 RMD160 a00957383caac99a71a75002900db5451ea506c6 SHA1 cec85753255f3d77f2249550591cbf8d497a304a SHA256 182a2bde1aa66a79fe38ea08e5fa612a8421c2554ea1bfd179c22628899d9871 DIST ddclient-3.7.3.tar.gz 42034 RMD160 df40a809132102b9326fa7e9d735723e1de8ed37 SHA1 aa4368a58e5b344bffd6561fc7fed304c007fe84 SHA256 f1f57fdca170d9349cb99a3b8b33672d983e0e41c43c2bbb940927380ee12962 DIST ddclient-3.8.0.tar.gz 45893 RMD160 771ed13aa248c13af11e0466888513418bae98fb SHA1 ff889adacf916bebb25522d9cc1eda0e9593a7f4 SHA256 88f0f1cfafd2d7a813e72c3a3f1f2a08e9bf06ccd1d49ddb3f942dd4b9331fb3 DIST ddclient-3.8.1.tar.gz 48600 RMD160 7b702d28c47e48ed19eedd6b2e50930f394e9631 SHA1 537861711e215baf9e6d03b67744d44da9be1bfd SHA256 f22ac7b0ec78e310d7b88a1cf636e5c00360b2ed9c087f231b3522ef3e6295f2 EBUILD ddclient-3.7.3-r1.ebuild 2363 RMD160 2965e17d6b5b943f91d11ce9b006f2f8828cb264 SHA1 2eb1fd92bd856353ec41f85ab1dff011e356e72d SHA256 9debac9ee7520b5fbd6d79d836b0cb93cbc662f04112065e8eeab51e6bff5dba EBUILD ddclient-3.8.0.ebuild 2368 RMD160 bde7d181fd90058db991d7b35041eecca7606849 SHA1 c844c52f0b07fc94d7cf9a6ddaecec1f223b3779 SHA256 6cd8f2e4a03dd5d11d38f41fe3c7e2d03885b264a18c9cfce800542445107a4f +EBUILD ddclient-3.8.1-r1.ebuild 2049 RMD160 43b72602d9a6294bf3c101795f7c3756b563b6fc SHA1 6fddca79231e813829c6bf166bc3050cf9359be6 SHA256 7ac216f409ca06aecb329824c060ac478b2393cae0bbe48d60d16f444d548e80 EBUILD ddclient-3.8.1.ebuild 1946 RMD160 f65c05812387bf1616e71df7dc5d6f1ddd375e23 SHA1 ef38507f784299ccfc25d9b1aa1714fabba2aba8 SHA256 820511af15f4072e4771ecfc92f019f19884843a43acb991cac0e37d80774fb8 -MISC ChangeLog 7344 RMD160 a4fbb114614bdd9cb577c68e46cee786f2a9d4cc SHA1 4c199bf5832d56d45631b106566bc76638a27305 SHA256 f0a725f91c2efd305815967abbefcaa34844245ac9dfc45eb754c7983baf7684 -MISC metadata.xml 256 RMD160 89006208342e9a79efe65b9e77b9312d1496a304 SHA1 239df10a450e165de96532982d5d8db3a7e01799 SHA256 7a5b0a2f4ee68f846c8407c94f74ef01ea34b61835879e9a135fb0e028052806 +MISC ChangeLog 7520 RMD160 8ed58228431ad88139f13f6cfc4a7c4e114a2be0 SHA1 45c54ce59732608aa0cb47de8e0849b13a37457f SHA256 9036a61a8b6bf4a9cd90b5d4b19d25b28866ee5f40cb2ae39a33150fad74f018 +MISC metadata.xml 419 RMD160 753e3754c0902c495ba7cf0750aaf07a45a1b2dc SHA1 eb420eb838969fddf1036360a7daf0ab89a68358 SHA256 3306b3709dc4d62dc5a192ad014e48814da19dae81720e308aee86f60591867a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iF4EAREIAAYFAk5FHLwACgkQCOhwUhu5AEnwJwD/QqkH8D/Te3xtnFeDWAFkQPOx -hMaE3k0ic48CmB4WQ1oBAL3w9IT+nUAxHo4QsZ+2P1uBr7aHnbBAwRKMDg+eHl88 -=I0BM +iF4EAREIAAYFAk5FyaEACgkQCOhwUhu5AElj4wD/coSDKe+ZGcFxT5BiedZ03rSv +6B8c5e5wGy6R28fO/8AA/RBvtn6HZRuzOZWCQZ62U9ygCMcRfODGMYH0Xt4q2Lg7 +=ANe7 -----END PGP SIGNATURE----- diff --git a/net-dns/ddclient/ddclient-3.8.1-r1.ebuild b/net-dns/ddclient/ddclient-3.8.1-r1.ebuild new file mode 100644 index 000000000000..211a157a9a47 --- /dev/null +++ b/net-dns/ddclient/ddclient-3.8.1-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/ddclient-3.8.1-r1.ebuild,v 1.1 2011/08/13 00:47:23 titanofold Exp $ + +EAPI="4" + +inherit eutils + +DESCRIPTION="Perl updater client for dynamic DNS services" +HOMEPAGE="http://ddclient.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="hardened +ssl" + +RDEPEND=">=dev-lang/perl-5.1 + hardened? ( sys-apps/iproute2 ) + ssl? ( dev-perl/IO-Socket-SSL ) +" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + # Remove pid line, because it is specified in /etc/conf.d/ddclient + einfo "Applying PID setup" + if ! sed '/^pid/d' -i "sample-etc_${PN}.conf"; then + eerror "Failed to remove pid from /etc/${PN}/${PN}.conf" + eerror "Please set the PID in /etc/conf.d/${PN}, not /etc/${PN}/${PN}.conf" + fi + + use hardened && epatch "${FILESDIR}/iproute2.patch" + + if ! use ssl; then + einfo "Disabling SSL per your USE flags" + sed '/^ssl/,/ssl-library$/d' -i "sample-etc_${PN}.conf" || \ + eerror "Failed to remove ssl from /etc/$PN/$PN.conf" + fi +} + +src_install() { + dosbin ${PN} + dodoc Change* COPYRIGHT README* RELEASENOTE sample* + + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + + keepdir /var/{cache,run}/${PN} + fowners -R ${PN}:${PN} /var/{cache,run}/${PN} + + insinto /etc/${PN} + insopts -m 0600 -o ${PN} -g ${PN} + newins sample-etc_${PN}.conf ${PN}.conf + newins sample-etc_${PN}.conf ${PN}.conf.sample + fowners -R ${PN}:${PN} /etc/${PN} +} + +pkg_postinst() { + use ssl && return + ewarn + ewarn "$PN will not have support for ssl, which means your dynamic DNS account" + ewarn "information -- including your password -- will be sent over the Internet in the" + ewarn "clear. To secure your information, add 'ssl' to your USEflags," + ewarn "emerge -N ddclient, and add 'ssl=yes' to /etc/$PN/$PN.conf" + ewarn +} diff --git a/net-dns/ddclient/files/iproute2.patch b/net-dns/ddclient/files/iproute2.patch new file mode 100644 index 000000000000..f81dd8c00d82 --- /dev/null +++ b/net-dns/ddclient/files/iproute2.patch @@ -0,0 +1,30 @@ +diff -u a/ddclient b/ddclient +--- a/ddclient 2011-07-11 17:04:21.000000000 -0400 ++++ b/ddclient 2011-08-12 20:13:15.980466303 -0400 +@@ -588,7 +588,7 @@ + [ "ip", "=s", "-ip address : set the IP address to 'address'" ], + "", + [ "if", "=s", "-if interface : obtain IP address from 'interface'" ], +- [ "if-skip", "=s", "-if-skip pattern : skip any IP addresses before 'pattern' in the output of ifconfig {if}" ], ++ [ "if-skip", "=s", "-if-skip pattern : skip any IP addresses before 'pattern' in the output of ip addr show {if}" ], + "", + [ "web", "=s", "-web provider|url : obtain IP address from provider's IP checking page" ], + [ "web-skip", "=s", "-web-skip pattern : skip any IP addresses before 'pattern' on the web provider|url" ], +@@ -1316,7 +1316,7 @@ + + { + local $opt{'use'} = 'if'; +- foreach my $if (grep {/^[a-zA-Z]/} `ifconfig -a`) { ++ foreach my $if (grep {/^[a-zA-Z]/} `ip addr show`) { + $if =~ s/:?\s.*//is; + local $opt{'if'} = $if; + printf "use=if, if=%s address is %s\n", opt('if'), define(get_ip('if'), 'NOT FOUND'); +@@ -1937,7 +1937,7 @@ + + } elsif ($use eq 'if') { + $skip = opt('if-skip', $h) || ''; +- $reply = `ifconfig $arg 2> /dev/null`; ++ $reply = `ip addr show $arg 2> /dev/null`; + $reply = '' if $?; + + } elsif ($use eq 'cmd') { diff --git a/net-dns/ddclient/metadata.xml b/net-dns/ddclient/metadata.xml index 0e15846b229c..ca2709366ccd 100644 --- a/net-dns/ddclient/metadata.xml +++ b/net-dns/ddclient/metadata.xml @@ -3,7 +3,11 @@ <pkgmetadata> <herd>no-herd</herd> <maintainer> - <email>titanofold@gentoo.org</email> - <name>Aaron W. Swenson</name> + <email>titanofold@gentoo.org</email> + <name>Aaron W. Swenson</name> </maintainer> +<use> + <flag name="hardened">Use iproute2 instead of ifconfig to grab an IP address</flag> + <flag name="ssl">Connect to the server utilizing SSL</flag> +</use> </pkgmetadata> |