summaryrefslogtreecommitdiff
path: root/net-misc/ucarp
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/ucarp')
-rw-r--r--net-misc/ucarp/Manifest3
-rw-r--r--net-misc/ucarp/files/ucarp-1.5.2-fno-common.patch8
-rw-r--r--net-misc/ucarp/ucarp-1.5.2-r6.ebuild (renamed from net-misc/ucarp/ucarp-1.5.2-r5.ebuild)21
3 files changed, 24 insertions, 8 deletions
diff --git a/net-misc/ucarp/Manifest b/net-misc/ucarp/Manifest
index 7b6b21198e9c..7f0760dbcfab 100644
--- a/net-misc/ucarp/Manifest
+++ b/net-misc/ucarp/Manifest
@@ -1,3 +1,4 @@
+AUX ucarp-1.5.2-fno-common.patch 232 BLAKE2B 62939993a6a896188d951c2873188ac6c8a1c83dfa435302aae4d0fee4982b08e65562d4e39a93e0f94bf8b273a6b3dda8925662309210e648a722f6627a47a8 SHA512 8ac343fa03be28a798d5575243ab9622653b508667f05dcfcd1a96b32e4003fe01f80eebb0afadfec2674baf6f96ff6323f34e9d09730aab1c526da37725a4f9
AUX ucarp.8 6311 BLAKE2B 1b01047eff2fbdf6deb8d3886fcb19d3512d2bb21518007d2bb578653d8a602ff8767f67a04119edd8c159c3430bf63a70d891610cd159853712bc3ef538762e SHA512 4aab5f072663501e90a504e47e30c7cf3a89c6996addb6a23c7d0b3688688141f90d6134c79d2746fef1934a63588723bafb375777b2a12a6715257681baf28f
AUX ucarp.confd 880 BLAKE2B 134b87a7adfcd4c64a140f5c74d6d318a7205f68f436538a7f638382541876ec274c3e596cd086ed9e07e20586a899a67c6413e2e6a9c1653bcca57dcc949bbc SHA512 e72594f6292dcc4e17c13c07f12d5cd9ef791ea91ee2c22d5023d0aa574990b6ec6c6714dc45d678ba70ec8395790cd80272a8a57adbd8c735f296e580a298a1
AUX ucarp.initd-r1 1902 BLAKE2B 05b7ba252938cd5f8c668c5593250376d0390f2eeade13c9d6801522b39027a4724b3e0e142128a5dbca6fef5e82adfeb914a8420c3c9a924000e287fdda298f SHA512 6e5a7a1ec245c6c89ce61b189768594a42b630b94d882f79357475a62f63b3198c036f1cdbc09a91b3d3509d6f6b0c621b56f107dbfca76fecf79fae3e0a66db
@@ -8,5 +9,5 @@ AUX vip-up-default.sh 132 BLAKE2B 01d0976bc4029250a481ad22db0432b62604030ed2d6d3
AUX vip-up-default.sh-r1 131 BLAKE2B b0067bf6a9c442fe536564fc50f589be00caf7dbacfe1bb2370d467a5f5e706a548bfb5db8d2f5d21bf946ab543e0a2f84c74d07d737772c70713c583ec551a1 SHA512 d00a2acaa44567f936e029af96a841bf815b75e18f5d2563800e996acdea68ef3265e7ea7b67e7cba3fe671e7809ec905e9cc39ad5fe2c807170cfa1fa6595ff
DIST ucarp-1.5.2.tar.gz 429089 BLAKE2B 2e30b5c2f1f4e51662e9dab0e3b32eae636fbaeb533df2c8753dd1df8199101aa75b146bda1035fd77b0d209617eb9eb1d3a8b2fc4bd5089e6c1478c4a821ef8 SHA512 568ff2061e59d314c72a160ccb42eb099bf7cdf04bc30f405b5b62322dff3ceb4fa037c2b430fdb4cee25f0dcacf9309a15bd814b4b70b640840400bda20b253
EBUILD ucarp-1.5.2-r3.ebuild 1247 BLAKE2B 067f4cab17d51e15ffc2abd8407450ded183e6e6ac7d82af3994b0b1ebea0f0da3e3ef25ed2b954cb07379a2249ee050b62913493821bfd3c97c7785740589d1 SHA512 66ab66b2db551c97bee096a2f1d81767c10e6beb96c2268504db219c2b01b4edae118c82ca04c3fa2d153d486673ab108caba5ff43d5168530f9a5a0eea75bc4
-EBUILD ucarp-1.5.2-r5.ebuild 1294 BLAKE2B 478a6329804bbeb059dc3fbf83e2159ecfc4d7792f214a481720ddb150aa3762dd0d1b26153af493ced9ec615ca157e8411510accce218f08723a1d0be0f645e SHA512 0da1ba75ab1b8e877067814e8fb7551f6bdd19c430e6e2a85381ac4e284a642d261c9f41ebb7509ca71737e105b1a24efc06bfb3896c42663759ce99244bbea8
+EBUILD ucarp-1.5.2-r6.ebuild 1450 BLAKE2B 3571bb3a3fa11476607ec3815616669e21559e7293f4e40686a578a8fcbf5e82d5ae7a27667362fbad0f7571995ba19a349f0d9e08c6dc38f0e5caeca2cc3dd5 SHA512 2b581d01af3b1d423837a1f1c9b1432d98a2068d6a5c9a997c47e80c33430fbdc388778fb22f8c5ffe5ac75cca97c4221922584b35aae190fb7ac82b39197ab7
MISC metadata.xml 253 BLAKE2B 2fbd23e1eeca2d6a1474e03aeaa1ad81f16f00141d906ca087f01b67a69e065cac2b3600c2da212ca9fdaf4765788a58ec12b6cd6a45323e5b524dbdb1ce0a77 SHA512 0894860713279dc39bbe7ce3491002710b62c4476198984a0deb6328cb0012c19d7a5546299960bbe600ee240e62a603dd4c4fa04325a753cc0b7c4044c30aba
diff --git a/net-misc/ucarp/files/ucarp-1.5.2-fno-common.patch b/net-misc/ucarp/files/ucarp-1.5.2-fno-common.patch
new file mode 100644
index 000000000000..6e746b26da66
--- /dev/null
+++ b/net-misc/ucarp/files/ucarp-1.5.2-fno-common.patch
@@ -0,0 +1,8 @@
+--- a/src/ip_carp.h
++++ b/src/ip_carp.h
+@@ -70,7 +70,7 @@ struct carp_header {
+ u_int16_t carp_cksum;
+ u_int32_t carp_counter[2];
+ unsigned char carp_md[20]; /* SHA1 HMAC */
+-} __packed;
++};
diff --git a/net-misc/ucarp/ucarp-1.5.2-r5.ebuild b/net-misc/ucarp/ucarp-1.5.2-r6.ebuild
index 00283bf58e82..a843fc050bfa 100644
--- a/net-misc/ucarp/ucarp-1.5.2-r5.ebuild
+++ b/net-misc/ucarp/ucarp-1.5.2-r6.ebuild
@@ -1,23 +1,28 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=7
DESCRIPTION="Portable userland implementation of Common Address Redundancy Protocol (CARP)"
-HOMEPAGE="http://www.ucarp.org"
+HOMEPAGE="https://ucarp.wordpress.com"
SRC_URI="ftp://ftp.ucarp.org/pub/ucarp/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="nls"
+IUSE="debug nls"
RDEPEND="net-libs/libpcap"
-DEPEND="${RDEPEND}
- nls? ( sys-devel/gettext )"
+DEPEND="${RDEPEND}"
+BDEPEND="nls? ( sys-devel/gettext )"
+
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
src_configure() {
- econf $(use_enable nls)
+ econf \
+ --disable-static \
+ $(use_with debug) \
+ $(use_enable nls)
}
src_install() {
@@ -33,6 +38,8 @@ src_install() {
newinitd "${FILESDIR}"/ucarp.initd-r2 ucarp
newconfd "${FILESDIR}"/ucarp.confd ucarp
+
+ find "${ED}" -name '*.la' -delete || die
}
pkg_postinst() {