diff --git a/net-firewall/arptables/Manifest b/net-firewall/arptables/Manifest new file mode 100644 index 0000000000..b7bdc03d93 --- /dev/null +++ b/net-firewall/arptables/Manifest @@ -0,0 +1 @@ +DIST arptables-0.0.5.tar.gz 52247 BLAKE2B 860aac1af315f188ecb7f17956f9225c2a9ec007882d102be8edc9fecc9400928f4200e95283f0ecc27c4c3ae0b409887445ed79a330cef2e2d00444db83c01f SHA512 fe7f909b45a1bdc435a8307352fe2dc9c292bb7c6cf4a4d13cc2728f447b3da14a07a4dd6dc25b7872895e4e26561681f1fed25ce517102ae762701bcbcbf104 diff --git a/net-firewall/arptables/arptables-0.0.5.ebuild b/net-firewall/arptables/arptables-0.0.5.ebuild new file mode 100644 index 0000000000..a6ca8aacc5 --- /dev/null +++ b/net-firewall/arptables/arptables-0.0.5.ebuild @@ -0,0 +1,30 @@ +# Distributed under the terms of the GNU General Public License v2 +# Autogen by MARK Devkit + +EAPI=7 +inherit autotools toolchain-funcs + +DESCRIPTION="Set up, maintain, and inspect the tables of ARP rules in the Linux kernel" +HOMEPAGE="https://ebtables.netfilter.org" +SRC_URI="https://www.netfilter.org/pub/arptables/arptables-0.0.5.tar.gz -> arptables-0.0.5.tar.gz" +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="*" +src_compile() { + # -O0 does not work and at least -O2 is required, bug #240752 + emake CC="$(tc-getCC)" COPT_FLAGS="-O2 ${CFLAGS//-O0/-O2}" + sed -e 's:__EXEC_PATH__:/sbin:g' \ + -i arptables-save arptables-restore || die "sed failed" +} +src_install() { + emake \ + PREFIX="${ED}"/ \ + LIBDIR="${ED}/$(get_libdir)" \ + SYSCONFIGDIR="${ED}"/etc \ + MANDIR="${ED}"/usr/share/man \ + install + newman arptables-legacy.8 arptables.8 +} + + +# vim: filetype=ebuild