summaryrefslogtreecommitdiff
path: root/net-dns/ez-ipupdate
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-06 18:54:07 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-06 18:54:07 +0000
commitcf7a256641d0729742707e68efe5e5ee3895b6c9 (patch)
tree10acbc3170c4b685aea3df6a9e96bb418a586725 /net-dns/ez-ipupdate
parent56330f065f2b903d9e1b2dffc63719fef5897a45 (diff)
gentoo auto-resync : 06:01:2024 - 18:54:07
Diffstat (limited to 'net-dns/ez-ipupdate')
-rw-r--r--net-dns/ez-ipupdate/Manifest2
-rw-r--r--net-dns/ez-ipupdate/ez-ipupdate-3.0.11.13.3_beta8-r5.ebuild122
-rw-r--r--net-dns/ez-ipupdate/files/ez-ipupdate-3.0.11.13.3_beta8-clang16.patch33
3 files changed, 157 insertions, 0 deletions
diff --git a/net-dns/ez-ipupdate/Manifest b/net-dns/ez-ipupdate/Manifest
index 0f26c13bb950..86fa43cb74fc 100644
--- a/net-dns/ez-ipupdate/Manifest
+++ b/net-dns/ez-ipupdate/Manifest
@@ -1,4 +1,5 @@
AUX ez-ipupdate-3.0.11.13.3_beta8-3322.diff 1934 BLAKE2B 4492e08e46f33693ea1f8c330fe8ac8f3d912c266ae584791c1b0a88568365b3598be279f0a865ebb7297c071d925ac787af8587ddb3f371be80994f7ae0c2fa SHA512 b6a5bf2d7bc46d192d20a25cf9a220703553f3143f6db681366b90815a28be7fb716618b8a13302d0e892924b4803c8ceb535df6026e4f3154118812f1f87647
+AUX ez-ipupdate-3.0.11.13.3_beta8-clang16.patch 991 BLAKE2B 9e7f49565d56f1c45b70ac7bce8651501dccfe0f06bd3aea01c8d25fb975840aec3a0dbdc1bd04dc64233f9c6a576d1feb4c4c8daff00913b312adb330437df4 SHA512 7685f8c80c2f0f310e93913bf9202491955bb622b836d1fdbcb3d3b4c0ee9914d1ddd0ede638b80ef35ad37c37f5f671c34cae4969ca83a0ec8c33ec0048981f
AUX ez-ipupdate-3.0.11.13.3_beta8-dnsexit.diff 6770 BLAKE2B fa5dfa7063ebc3cdbe6d4824a56c28c49a58b0c2d875ff97162c117df8cf1536b59a5aaf4c06f716dc74140c3982f9cb74a50004d0e5a03b4478f1c2389fab43 SHA512 e3f14a06383c3a49453b5b4b37e2030d17289ed4d43f15e7a48739e40adced66857820328a2635b814c1003541b3f0ea9bf46d3343c2ffe5fea27b2872a20670
AUX ez-ipupdate-3.0.11.13.3_beta8-fix-format-mask.patch 1162 BLAKE2B eba6d6b58910e22c4451e132dfbd8bb996f91c333e828b0e3964c31c9c743bc5aa58c08d17fa96c00af5f776d4b378f67e351288ec215592c85d9e18986a8256 SHA512 091da8edb430f699a4b4c93ac20e307a47c8f5845cd510640203f5c7ce965b70b2da5d274def3b28b36eb66fdac88bd40315a6dd367141eb0744d62c1e0b807a
AUX ez-ipupdate-3.0.11.13.3_beta8-ipv6.diff 767 BLAKE2B c07ed8e9a72de144d2aff588334259881c323213f08c363bc0b2a22a54f2c338878d26357ce6f99148310494675506de78a22d7ba6b25afe4d522d6214d4ae7d SHA512 7b62ce5ad610963beac5138ecb797fd2a36643720c25cae4efe94621c92e9b57dd2c73b2320735c56b477f06894e35e9eeb085b8c365729728c05eb6d0d78ae4
@@ -8,4 +9,5 @@ AUX ez-ipupdate.service 363 BLAKE2B 9ec7a686fe9b4cf2cebd4c858b3b7c83c7e1913d356e
DIST ez-ipupdate_3.0.11b8-13.3.diff.gz 154094 BLAKE2B ae82ca990937c60d7f572c132883099dc3c25e3c1ce905e880b921bc48230c64bb1cf01f877cd8948704dfbf7f89312abb5f0be9fea1be13a3ee1262aad337f8 SHA512 bef3c344a3c16f224cc3c6e662213713bb1123b4e47347d83d01d632c5ca0b09e7f0e5a989b3987655759ac901307c8dd6768fab3056c8878c0adcf78b0d5fb9
DIST ez-ipupdate_3.0.11b8.orig.tar.gz 81975 BLAKE2B a5f6e0f301f3eb2e26b4af2f0ec4839efbb254514a08315a66bf3f5ed07b045178dab0e5a3814fb06ff9d1733dceb23168d90ca50905f2e3896f90581cdfff7d SHA512 85de91cde25d176374ade7128e8932a4e015cd04beb8d5b71bf540e2f59b6c409d1c8bd0ff7c50734b87ecc19a74a7b1da3e646a8c8787badcae4feb9dba7864
EBUILD ez-ipupdate-3.0.11.13.3_beta8-r4.ebuild 3217 BLAKE2B 7332bbdde0c29d0c3c32d82e3e8d3c2ec49f7a43444f341e78ee85669c09ef6198fbf78760daa1e18ae56a0fc4730aba296ae0d14c1e76aeac0e18d742c26d53 SHA512 0934c4cfc8aec89030410ae1d502131dda386c1bd094d658c7f2606a8ad67d95ee713635c47aabf18d2006fa68889fbb838dfb6d51466c7562e45bdda0b1e6eb
+EBUILD ez-ipupdate-3.0.11.13.3_beta8-r5.ebuild 3293 BLAKE2B 8ac3dc834e460d36ebd00ef457b15cc84745d8ff4f3cfdc79d8c349b37d49a9dad70d265b111cb5ad63181fd53c308ddff89c1aed118e29fde1dd3a09336d3f7 SHA512 1a8fbe91c626e57a29ce83332ea764b9563b3b27a99b0582e387bfadd939ae8e72a509a3725e61894371fefe7373ad56add1570184e0de337b67910b5632e677
MISC metadata.xml 405 BLAKE2B 9127cf8ab134c00a64feb9e28b91d2f11a8afa92af40499bdb47cb8da783610af2d7c1e84b58344d05e9792a2770d3e95a77e1edf7e866a963ee277ca73956b7 SHA512 99e9556d6c6f63571903f53102005050ca7d256f7adf837395cec5ec8e3f300021b309ca253bfacb5102ab646c7e51bf2f53824ff9198368e1b96550f633e532
diff --git a/net-dns/ez-ipupdate/ez-ipupdate-3.0.11.13.3_beta8-r5.ebuild b/net-dns/ez-ipupdate/ez-ipupdate-3.0.11.13.3_beta8-r5.ebuild
new file mode 100644
index 000000000000..d6efd51f9501
--- /dev/null
+++ b/net-dns/ez-ipupdate/ez-ipupdate-3.0.11.13.3_beta8-r5.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_BETA="$(ver_cut 6-)"
+MY_PATCH="$(ver_cut 4-5)"
+MY_PV="$(ver_cut 1-3)${MY_BETA/beta/b}"
+
+inherit readme.gentoo-r1 systemd
+
+DESCRIPTION="Dynamic DNS client for lots of dynamic dns services"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="
+ mirror://debian/pool/main/e/ez-ipupdate/${PN}_${MY_PV}.orig.tar.gz
+ mirror://debian/pool/main/e/ez-ipupdate/${PN}_${MY_PV}-${MY_PATCH}.diff.gz
+"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~riscv ~sparc ~x86"
+
+RDEPEND="
+ acct-group/ez-ipupd
+ acct-user/ez-ipupd
+"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="
+Please create one or more config files in
+/etc/ez-ipupdate/. A bunch of samples can
+be found in the doc directory.
+
+All config files must have a '.conf' extension.
+
+If you are using openRC you need to:
+- Please do not use the 'run-as-user', 'run-as-euser',
+'cache-file' and 'pidfile' options, since these are
+handled internally by the init-script.
+
+-If you want to use ez-ipupdate in daemon mode,
+please add 'daemon' to the config file(s) and
+add the ez-ipupdate init-script to the default runlevel.
+Without the 'daemon' option, you can run the
+init-script with the 'update' parameter inside
+your PPP ip-up script.
+"
+
+PATCHES=(
+ # adding members.3322.org support
+ "${FILESDIR}/${P}-3322.diff"
+ # adding www.dnsexit.com support
+ "${FILESDIR}/${P}-dnsexit.diff"
+ # make ez-ipupdate work with iproute2/dhcpcd under linux (bug #318905)
+ "${FILESDIR}/${P}-linux.diff"
+ # allows to set IPv6 via -a option, (bug #432764)
+ "${FILESDIR}/${P}-ipv6.diff"
+ # repair format mask issues
+ "${FILESDIR}/${P}-fix-format-mask.patch"
+ # comment unsed functions, (bug #897848)
+ "${FILESDIR}/${P}-clang16.patch"
+)
+
+src_prepare() {
+ # Debian patches
+ eapply "${WORKDIR}/${PN}_${MY_PV}-${MY_PATCH}.diff"
+ # repair/apply additional Debian patches
+ sed -i -e "s|^\(---\s*\)\.\./|\1|g" debian/patches/*.diff || die
+ eapply debian/patches
+
+ default
+
+ # comment out obsolete options
+ sed -i -e "s:^\(run-as-user.*\):#\1:g" \
+ -e "s:^\(cache-file.*\):#\1:g" ex*conf || die
+
+ # make 'missing' executable (bug #103480)
+ chmod +x missing || die
+}
+
+src_configure() {
+ econf --bindir=/usr/sbin
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ newinitd "${FILESDIR}/ez-ipupdate.initd" ez-ipupdate
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ keepdir /etc/ez-ipupdate
+
+ # install docs
+ dodoc README
+ newdoc debian/README.Debian README.debian
+ newdoc debian/changelog ChangeLog.debian
+ newdoc CHANGELOG ChangeLog
+ doman debian/ez-ipupdate.8
+
+ # install example configs
+ docinto examples
+ dodoc ex*conf
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ chmod 750 /etc/ez-ipupdate /var/cache/ez-ipupdate || die
+ chown ez-ipupd:ez-ipupd /etc/ez-ipupdate /var/cache/ez-ipupdate || die
+
+ readme.gentoo_print_elog
+
+ if [[ -f /etc/ez-ipupdate.conf ]]; then
+ elog "The ez-ipupdate init-script can now handle more"
+ elog "than one config file. New config file location is"
+ elog "/etc/ez-ipupdate/*.conf"
+ if [[ ! -f /etc/ez-ipupdate/default.conf ]]; then
+ mv -f /etc/ez-ipupdate.conf /etc/ez-ipupdate/default.conf || die
+ elog "Your old configuration has been moved to"
+ elog "/etc/ez-ipupdate/default.conf"
+ fi
+ fi
+}
diff --git a/net-dns/ez-ipupdate/files/ez-ipupdate-3.0.11.13.3_beta8-clang16.patch b/net-dns/ez-ipupdate/files/ez-ipupdate-3.0.11.13.3_beta8-clang16.patch
new file mode 100644
index 000000000000..5d056326c4da
--- /dev/null
+++ b/net-dns/ez-ipupdate/files/ez-ipupdate-3.0.11.13.3_beta8-clang16.patch
@@ -0,0 +1,33 @@
+From: Brahmajit Das <brahmajit.xyz@gmail.com>
+Date: Thu, 28 Sep 2023 18:45:45 +0000
+Subject: [PATCH 1/1] ez-ipupdate.c: comment socketopen and socketclose
+
+From the looks at it, socketopen and socketclose and not used under
+__linux__ and hence it's better to not use them and cause unnecessary
+compilation bugs.
+
+Bug: https://bugs.gentoo.org/897848
+Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
+--- a/ez-ipupdate.c
++++ b/ez-ipupdate.c
+@@ -5182,7 +5182,7 @@ int main(int argc, char **argv)
+ struct sockaddr_in sin;
+ int sock;
+
+- socketopen(sock);
++ /*socketopen(sock);*/
+ if(get_if_addr(sock, interface, &sin) == 0)
+ {
+ if(address) { free(address); }
+@@ -5193,7 +5193,7 @@ int main(int argc, char **argv)
+ show_message("could not resolve ip address for %s\n", interface);
+ exit(1);
+ }
+- socketclose(sock);
++ /*socketclose(sock);*/
+ }
+
+ for(i=0; i<ntrys; i++)
+--
+2.42.0
+