diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-09-08 10:50:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-09-08 10:50:14 +0100 |
commit | 3f71901f8c228f4de570abed1831ce3ee425343e (patch) | |
tree | a2dcd300d05ef8a2ec275b44a92a9d85bd3baa24 /net-dns/ddclient | |
parent | 12bb627384ddfd47382b9f1b6464481a58d01ebb (diff) |
gentoo resync 08.09.2018
Diffstat (limited to 'net-dns/ddclient')
-rw-r--r-- | net-dns/ddclient/Manifest | 8 | ||||
-rw-r--r-- | net-dns/ddclient/ddclient-3.9.0-r1.ebuild | 63 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch | 29 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.initd-r5 | 21 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.service-r1 | 13 | ||||
-rw-r--r-- | net-dns/ddclient/files/ddclient.tmpfiles | 3 | ||||
-rw-r--r-- | net-dns/ddclient/metadata.xml | 39 |
7 files changed, 164 insertions, 12 deletions
diff --git a/net-dns/ddclient/Manifest b/net-dns/ddclient/Manifest index f50df7f7a50b..50a4566017cd 100644 --- a/net-dns/ddclient/Manifest +++ b/net-dns/ddclient/Manifest @@ -1,14 +1,20 @@ AUX cmd-over-cfg.patch 488 BLAKE2B d1ba92dd5c7bbff11ea431449c61b49d0bbbdc87b3ffe818a90c573a8a4f3ba12d150b8aba5789f6510bda74b0a9b19cca7583341db599d07aec787b4d149728 SHA512 a22ed7202b29e74ca8d4ffc597c5922cbe39da097c00876ac3e66c8f09eacd836ebb276e75753103f84699888f8e0a57abbfe839579eab0ddd48a2fa119fc70d +AUX ddclient-3.9.0-use_iproute2.patch 1388 BLAKE2B da84054c603cccdaa45d4be9b11b90d04f273c78adec19d139ce4ed0b52ae4f9b76b958471f83b6d51fa13e73a7d2fa0df498f61843f49c89f8c4600c8a44ca8 SHA512 174a82996966cf42d0f6811757aceba3d2ea33e50ef842d952e3797bd7bb1194c7d2e23acf4a5aae88ecdde9bb677de8cd7fc2df666177ed0a12153e633aab42 AUX ddclient.confd 97 BLAKE2B 8215e87920f35d31f26c743ddb513295bd5556b781d9373c858040dcd2df066cf3636a7c9e2737c20d8cf30bb1c5fca7565068eb98f5827da1e8681b70c07e2a SHA512 3784fc11ba1b00b863b8a626910f75adb4b73f87f1887620c6ab17d68f36be4c481366ff1a8d91242c7ff62871e397ad1d4544b266405130d0fd8267f5a07f3d AUX ddclient.confd-r1 98 BLAKE2B e92bca71a65504290fc928c2f477f58f1d830de5f8a1181e715c9804d74d4f8b1e57b9cd22f12965f232527a8e7d65fbbf654f786c23cbe3859d78f20e843c74 SHA512 a74a3b0863fc20d740de07bfc37bee0aff6d7316ee72152241929e0a058ec34a5d76bc4429eedd69b03047f081cc0601543988b066ee246d671945a01fa0876d AUX ddclient.initd-r3 1312 BLAKE2B fb00fcd594117af5d147d507f66516db42ac8d09f2dcedb62b312b87129f23eeecb39af244283c0bb3d201651ae5bac70e23fd3605ab8027a86737aa10c7dda8 SHA512 388725815c3fea9df57b6cd73ab9a549967aba2add3be9fe5153f57e20635c037985c28b1f1ebcb8a122737cdc6277f0711029375f7d62e03491457959ae8dd1 AUX ddclient.initd-r4 856 BLAKE2B 515cd52482fddba204a492e7f5660a10d5cbddcdcef921ea56a10675571bde3ee6277d1810c8c917307689a7db5701991f22a026c1a8f77d7ae01f3003faf9e3 SHA512 d68e4f01a731826f540243c1123849cc85cbffc41dc5d18c1538d63ccac03a7f535089e99074cc7a06beb6ac48b70575d60f3ad0a3a37c378eaf17c816c0cad3 +AUX ddclient.initd-r5 577 BLAKE2B 5cf4b239e15bed86f98b65891c471a52179d3c7435a0a371e3568eaea0911625fa58faf466dae49e3abf6858a5d2bdb6e682fbaae78dc80e34092c95664292f7 SHA512 3b26160d1e651f418324b3544f8ae01781db32de8040d88fb48710f776f475332c3fdf36906331039c20cd47f5400c3ea47adf8dd7fbc7d6ea78cccb47a43c4e AUX ddclient.service 234 BLAKE2B c9f9c224742f9047e12677b6e3ece8206a26b72953bc6b1695db39e397c8b1fbbd08b8fa2acdd739391a4fae379570488db9b2d4c274950e5881b50028f07fc2 SHA512 e3c36148804ca7ea29f2d030128941a5d5a7edc6ce3a223b8e72ea8800d622169d3825d2ede6e69630e9ca57e8c62b6f3af97269e9d671e6f2d2973b4a43602f +AUX ddclient.service-r1 235 BLAKE2B 204793b269c65d7ed77f89c1d5f191298a7b03f44dc22526331fe28585ad1abc2c19fb3f2c65df1dd32bd20f3f121bf2f7d936ed42831067fc232024383c768a SHA512 1bcceae10d8076cb3fa5cb0215c0eaf17588e943d802c40cf5334f125a3697b103646bc393ba4db90845ad8e6ff1d4301b86afba5609ecb3bff98a5623f09195 +AUX ddclient.tmpfiles 149 BLAKE2B 0ad955937dd6cf714530429ffb423e0acc7033bdf7e2486a99d50d055edb85adff869209631cdfd8c2aa49263c31817868b765e7af27e222ad9f0b19bf439d74 SHA512 13c6e541ff23575d799eee943b8e10e277e5073732cd7c9705c23ee557bd99978435c0fe8b546fa3122a60cfb0499e27853e1968f0c1e0225890b68ae678e0c7 AUX iproute2.patch 1394 BLAKE2B c0f9bc4d3086bc70fbc033a3e2c55479fbb29ae0c051ed1c336ab79c8d9d03388c6ec4f6906b78edf1476bc0a58a994f363d1a01424a9ceff2176707e173ceac SHA512 d802421204cf398b9a0ff679b00b1a9796f4c442e3128b5965169c6153bca9beac580b94bd20ffd5235157b4ad482fdc926d9ac8a56686598aa7a25ecd0f43e0 DIST ddclient-3.8.1.tar.gz 48600 BLAKE2B a945adcb42bd298422c71c0eea6bea36c6b266ce39e97ebfd833b29819a2f30f2651d7f7b17dbfc0720b6209d0c0ed94bf2673624777f07e6de83a7081471995 SHA512 d6722582dffe0c5a806176f24bd3d9117bc1210ea0137aa92138390be16e67d47b746777dc431282a664849c91626969a5e267777126bac03304c7aa34a9dad7 DIST ddclient-3.8.2.tar.gz 46059 BLAKE2B 95dc19f26fe4a14d67154ad86723882ef371545156d88119d000366d97e045f37e9d6af229a24950740b915404cb35250baf05aa7cf1268f756ce7b1e776c6cb SHA512 8f74ce90ce4a31b8d53887b99556661343b96734ae630403434689459eaeb1354159ae26f0404b9db21a0ff4151816d1650746a13c547064748656a8c6e3f13b DIST ddclient-3.8.3.tar.gz 54516 BLAKE2B a472c84c05b6eccdef3ead0abfa6e38d5ef04fdc0df3327dad2181088102f1b40ac7986492c8d964589e3994cace9103ba56664809174f99d14d9c86c377c46a SHA512 055b6edf91a3b72d9ba80c9dedfbc1d60f62d6879bc722735488a5a1a37fafeb2e97567da98939ccc62fd39b0846438dfad1c022635d602c67bafda178574a76 +DIST ddclient-3.9.0.tar.gz 59018 BLAKE2B b9b58108d9f124fcd5a72cc57bfb0e6a5bc2e115edc27a1d5950a929670d67d5c703b09f51e7e82e977ccfb544d115da177b0ac8dc06a76a800aa207cde5a42d SHA512 ae314c96a37dd90256d6acf62f4a4523b72f540194131e351a032239b00b4520351f6549d3b20a9209fe49ccc6de7ce158ffa8635d341066ea71b789dc667438 EBUILD ddclient-3.8.1-r5.ebuild 1416 BLAKE2B ea2a67f9e888bbeea5208309ee71c87d35c98fd36a94bcd445224c40915226a81ba70d253bac29f55c0b87649ba15122115c854b40b06d67ff85bd85c6ab7b78 SHA512 a9215c25bd9c90042267eb9c1f0c2258d86c814ac3d343c8c795ecf8eb7eda6cc3ce7fbf1823f917b60724232d118d5904cb55afa1549f875466fcefb7dfb2bb EBUILD ddclient-3.8.2.ebuild 1176 BLAKE2B 7e1a9334915c9eedd9c3069af36c7d54c7a5a086b4bade3ee4afb55985dc9972bc09295943b795bf086c03d3b8775ddf4089825a43e89438c3a93e98116a6aef SHA512 b1105c13c16deda9923b1507fe6727905bc92911c3d6f206047ef4f89fc046feb08ed982448ce42743be06bc9f7eea3a5a2fa28f863459930512b5adee51335b EBUILD ddclient-3.8.3.ebuild 1190 BLAKE2B eebc90117aaa01be120afbd067090d01a5e2c33a4f41ff0bdce474a1f7da5ca0ca805d5743fa4ae3f762d7a0398fac628b4c261b39ce375e7c7d74ee711f1b41 SHA512 584e18a5bdbc165e216e74650a3fa48fdffa1bfde112ae30ce0d7a3c677ee67dc9c988fecc9a7bf059a483dfa54837d075536cfd826a1613169140f32efde3e4 -MISC metadata.xml 535 BLAKE2B f72f48609402da3c66ddf2bf8f5d3c6409dcc8fcb9d3c4b65e22ef10b26c0168043c330a7db87d58b1628d2d68f37a98b13cdeab92cc599cc9d100bf2409103e SHA512 7803f404d9c75941f563ea91af06d41b2b694713a9484b787a566d5dff5db2be80ed92b01bcccf88c695bd5e83cb52bb71b8b44fa30f13a5dcd564c552aca72d +EBUILD ddclient-3.9.0-r1.ebuild 1503 BLAKE2B a28084389ca9a45a2d7337fcf54e5368ae8cabcecb771f8b64fcf09ac3ac712f2e3a49221ddab216bbcbda90ece7f12d4bf69eb6229a90f917ba547a338d16e3 SHA512 e259bea837158be04298c32acb032bcf7d366eba2048836656c6da4afa7f204d71bf8c988f8f8d7f51e2f7ae44a897541ce485066f15c107e7f9ddcd68c9cbec +MISC metadata.xml 1291 BLAKE2B 65ca31729d3503bd783e30255bd2bbd4ecccd11d51ed608a3c3515e1f538570ac2e0919cc96dc1901dcd14660c55289b30c37e53d65d5a27ebf67eb1f4d2bdcf SHA512 fe66dba44ea97947a4f6d7367486be7a7fa3adf0a877b2f6fb7d3954e13b2fce1edc322078cd0cda3260896be9e533840fba8281eef74787640ac6350e722885 diff --git a/net-dns/ddclient/ddclient-3.9.0-r1.ebuild b/net-dns/ddclient/ddclient-3.9.0-r1.ebuild new file mode 100644 index 000000000000..5e18aacab160 --- /dev/null +++ b/net-dns/ddclient/ddclient-3.9.0-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit systemd user + +DESCRIPTION="Perl client used to update dynamic DNS entries" +HOMEPAGE="https://sourceforge.net/projects/ddclient/" +SRC_URI="mirror://sourceforge/ddclient/${P}.tar.gz" + +KEYWORDS="~amd64 ~mips ~x86 ~x86-fbsd" +LICENSE="GPL-2+" +SLOT="0" +IUSE="examples iproute2" + +RDEPEND="dev-lang/perl + dev-perl/Data-Validate-IP + dev-perl/Digest-SHA1 + dev-perl/IO-Socket-INET6 + dev-perl/IO-Socket-SSL + virtual/perl-Digest-SHA + virtual/perl-JSON-PP + iproute2? ( sys-apps/iproute2 )" + +pkg_setup() { + enewgroup ddclient + enewuser ddclient -1 -1 -1 ddclient +} + +src_prepare() { + # Remove PID setting, to reliably setup the environment for the init script + sed -e '/^pid/d' -i sample-etc_ddclient.conf || die + + # Remove windows executable + if use examples; then + rm sample-etc_dhcpc_dhcpcd-eth0.exe || die + fi + + # Use sys-apps/iproute2 instead of sys-apps/net-tools + use iproute2 && eapply "${FILESDIR}"/${P}-use_iproute2.patch + + default +} + +src_install() { + dobin ddclient + + insinto /etc/ddclient + insopts -m 0600 -o ddclient -g ddclient + newins sample-etc_ddclient.conf ddclient.conf + + newinitd "${FILESDIR}"/ddclient.initd-r5 ddclient + systemd_newunit "${FILESDIR}"/ddclient.service-r1 ddclient.service + systemd_newtmpfilesd "${FILESDIR}"/ddclient.tmpfiles ddclient.conf + + dodoc Change* README* RELEASENOTE TODO UPGRADE + + if use examples; then + docinto examples + dodoc sample-* + fi +} diff --git a/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch b/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch new file mode 100644 index 000000000000..b57f78ba14e1 --- /dev/null +++ b/net-dns/ddclient/files/ddclient-3.9.0-use_iproute2.patch @@ -0,0 +1,29 @@ +--- a/ddclient 2018-08-09 17:58:16.000000000 +0200 ++++ b/ddclient 2018-09-01 22:35:43.000000000 +0200 +@@ -710,7 +710,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" ], +@@ -1448,7 +1448,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'); +@@ -2165,7 +2165,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 = `ip addr list dev $arg 2> /dev/null` if $?; + $reply = '' if $?; + diff --git a/net-dns/ddclient/files/ddclient.initd-r5 b/net-dns/ddclient/files/ddclient.initd-r5 new file mode 100644 index 000000000000..a2284a27c1ff --- /dev/null +++ b/net-dns/ddclient/files/ddclient.initd-r5 @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +name="DDclient" +pidfile="/run/ddclient/${RC_SVCNAME}.pid" + +command="/usr/bin/ddclient" +command_args="-pid ${pidfile}" +command_group="ddclient" +command_user="ddclient" + +depend() { + use dns logger +} + +start_pre() { + checkpath -f -m 0600 -o ${command_user}:${command_group} /etc/ddclient/ddclient.conf + checkpath -d -m 0700 -o ${command_user}:${command_group} /run/ddclient + checkpath -d -m 0700 -o ${command_user}:${command_group} /var/cache/ddclient +} diff --git a/net-dns/ddclient/files/ddclient.service-r1 b/net-dns/ddclient/files/ddclient.service-r1 new file mode 100644 index 000000000000..d183b4f2a6c7 --- /dev/null +++ b/net-dns/ddclient/files/ddclient.service-r1 @@ -0,0 +1,13 @@ +[Unit] +After=network-online.target +ConditionPathExists=/etc/ddclient/ddclient.conf +Description=DDclient + +[Service] +ExecStart=/usr/bin/ddclient --foreground +Group=ddclient +Type=simple +User=ddclient + +[Install] +WantedBy=multi-user.target diff --git a/net-dns/ddclient/files/ddclient.tmpfiles b/net-dns/ddclient/files/ddclient.tmpfiles new file mode 100644 index 000000000000..4c6cc19ab943 --- /dev/null +++ b/net-dns/ddclient/files/ddclient.tmpfiles @@ -0,0 +1,3 @@ +z /etc/ddclient/ddclient.conf 0600 ddclient ddclient - - +d /run/ddclient 0700 ddclient ddclient - - +d /var/cache/ddclient 0700 ddclient ddclient - - diff --git a/net-dns/ddclient/metadata.xml b/net-dns/ddclient/metadata.xml index e4faff9063ad..4e40c4923a78 100644 --- a/net-dns/ddclient/metadata.xml +++ b/net-dns/ddclient/metadata.xml @@ -1,15 +1,32 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>titanofold@gentoo.org</email> - <name>Aaron W. Swenson</name> - </maintainer> - <use> - <flag name="cloudflare">Enable support for updating IP address via CloudFlare</flag> - <flag name="hardened">Use iproute2 instead of ifconfig to grab an IP address</flag> - </use> - <upstream> - <remote-id type="sourceforge">ddclient</remote-id> - </upstream> + <maintainer type="person"> + <email>titanofold@gentoo.org</email> + <name>Aaron W. Swenson</name> + </maintainer> + <maintainer type="person"> + <email>ck+gentoo@bl4ckb0x.de</email> + <name>Conrad Kostecki</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="cloudflare">Enable support for updating IP address via CloudFlare</flag> + <flag name="examples">Install various example files, like for cron.</flag> + <flag name="hardened">Use iproute2 instead of ifconfig to grab an IP address</flag> + <flag name="iproute2">Use <pkg>sys-apps/iproute2</pkg> instead of <pkg>sys-apps/net-tools</pkg> for interaction.</flag> + </use> + <longdescription> + DDclient is a perl client used to update dynamic DNS entries + for accounts on dynamic DNS network service providers. + It has the capability to update more than just dynamic DNS + and it can fetch WAN-IP-addresses in a few different ways. + </longdescription> + <upstream> + <bugs-to>https://sourceforge.net/p/ddclient/bugs/</bugs-to> + <remote-id type="sourceforge">ddclient</remote-id> + </upstream> </pkgmetadata> |