diff options
author | 2018-02-17 13:20:54 +0000 | |
---|---|---|
committer | 2018-02-17 13:20:54 +0000 | |
commit | 53385bddb3b4179fd9126a25847b3c28d1825aeb (patch) | |
tree | b757db3532bc4bdac88ff020a14131f65abe82c0 /net-misc | |
parent | Add net-misc/dhcpcd-6.11.5 (diff) | |
download | srcshelton-53385bddb3b4179fd9126a25847b3c28d1825aeb.tar.gz srcshelton-53385bddb3b4179fd9126a25847b3c28d1825aeb.tar.bz2 srcshelton-53385bddb3b4179fd9126a25847b3c28d1825aeb.zip |
Add net-misc/miniupnpd-2.0.20180203
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/miniupnpd/Manifest | 2 | ||||
-rw-r--r-- | net-misc/miniupnpd/miniupnpd-2.0.20180203.ebuild | 87 |
2 files changed, 89 insertions, 0 deletions
diff --git a/net-misc/miniupnpd/Manifest b/net-misc/miniupnpd/Manifest index ff2ef5a6..c2adc967 100644 --- a/net-misc/miniupnpd/Manifest +++ b/net-misc/miniupnpd/Manifest @@ -27,6 +27,7 @@ DIST miniupnpd-1.9.20150721.tar.gz 207562 SHA256 9340224e5023ecb5d1b7f45e4d69734 DIST miniupnpd-1.9.20160222.tar.gz 217541 SHA256 e7d9d071876ac2ed41a04fe4436f8a8d4329c5c31d940e98c6666ca26823c960 SHA512 ebc24a69fde793a537c46bc1e2107f94a17b0d8818aa23a4b6faeb2b735f35db840a6ccc49efbe62a3960ad1f346bbb183b6d06eb5ac42c98c2d56c02869fdda WHIRLPOOL 12ef3a7861b2238cd806836a972438c2b60c9f2558aee2a36eb8f6dbea149dc289447697d55b11147c20cee9fde5f1bc7fbd13e86190b82a47d7d2242482774b DIST miniupnpd-2.0.20161216.tar.gz 218119 SHA256 9e73d50ac830b5e08b6eb1df4e4c917833a5ab54351809f615d15d0f30cdeef3 SHA512 af82f060d28033dd670fcc96c8e2895f92d249a8a79d991e0215159eeb57715d7a9152d7d751b836091f7a623ce8a194ea243d1a2fb639349e320c02ce187c27 WHIRLPOOL 478a56b137b86ba1dca70e15c7dbdef2969a2d089e1ae0bac7ff01c18e753c8c3cca8b89ef415d54c3a009b89156eb507e97ba1949223bdd37914042c5124be1 DIST miniupnpd-2.0.20171212.tar.gz 222617 SHA256 c76a839d22839ed344017d42f39d4585738db81716d0eb4c194ea26603a5ac49 SHA512 3ab81c840953736c662bcb6f074421052a846c7827768acd7a961a23906b9e3d3389f5b593fb6f8011c8e717dae6cd3907b6d34e7904d560378671a7fc1dd3b2 WHIRLPOOL 005eabfa07c498ef6360da52849f94710a7031c98ff3418ec66d6c63344e9a29cc47161d40a2234763b48e2c9bea85d1891eef5ef8ec1c67e195f33fa09c9c0f +DIST miniupnpd-2.0.20180203.tar.gz 223084 SHA256 860c15f2f8340fd69546b01cffe4c7fcff3e63a7bdfe5a2af6b2346f0e074bb6 SHA512 ef02e33cd93225992c193a13be2320de02255610532de77cf704573384c777d82a4cb89c295982bb660ce056e38ef341223ab362bab74b2cb6954ed4e62b0219 WHIRLPOOL 410d2b6cbbc82349d59a8aeade8d484503f60f1f476dd1ad2560016f7cf3594eeff733dad598d484e674d6043be336d41c6064dd30de1284e8837447b2103940 DIST miniupnpd-2.0.tar.gz 217802 SHA256 d96aa3a00e0f5490826bba3cb97e68cd27479e5839adac4b9bcb66eae786bfb7 SHA512 c88036d3f4b065fc855572db8945d921641a71a23ffe8b52cb4ccb1a7cf3e7396841c436d54d7ff5968d034d8c4bfc91630719959000436230bb8c37e5bdc8d4 WHIRLPOOL d6aec880c9ef3c70002fdf9a98a0e8f4de95d8b3c9c6a18e328bc94d7dc3b8c130829c8ea6117e27e5b0aac1cd4526bbc9d9de21bd13e7b5527db54a656a1fff EBUILD miniupnpd-1.10_pre20141128.ebuild 1469 SHA256 25a729a55c0ed56d45c92525734f19d2d6dfbf84e4af569e49014ef88c8745da SHA512 2ba722b8811a62a8b593329d2f8578e4ab199d0c3c688deb94cc777567d5eea46e27e310287278593134259846c3599b05f6d57d0b888fc7f65916222f6d5acf WHIRLPOOL fd79804a31623721e293906b194b3c1f125776bf4a07f4f7aff6880ba3369a234af9010ff165fa7bdd9d52278dd2e1f0977e9ae7a39755765d13e75f4ebd0456 EBUILD miniupnpd-1.10_pre20141209.ebuild 1388 SHA256 2dab4ff01b9593f549af9940dea7de91fe661ac7002fa2cb8936f4906f0ae2c8 SHA512 eba87cf3953129226234698321696d312866ef86138a89451be5bdbac729c168811ddbf39fa8fc906a34796ee37a2f4738f08b8da2637fc66c83dd4e666f7eca WHIRLPOOL ff4bc3e550cac56d486535694bae46b030baae4b4c6af2c36b7216d6c74acc60cab464b91d444c940049ece1bd980b1de89c3098147a755beec09df2b7062e1b @@ -38,4 +39,5 @@ EBUILD miniupnpd-1.9_pre20140422.ebuild 1448 SHA256 18504d8a03997f8962ebcfb9b111 EBUILD miniupnpd-1.9_pre20140523.ebuild 1464 SHA256 a677f4881ecd4eace313014dd9f5cd69b48472c24224c936a39e97a06bd49f0e SHA512 a1ff61ca4ea46a93bb48745ddc73e0bb8b69574d8fc2843fc48e4d1fcc0ad1f95e70f2d5de9c08f36960222079d5fd81a11b9b0d6254a9f25590b1e2ed8850c1 WHIRLPOOL d890aae2a432087ffb480e3f80d8dd53faad9ab4bf78ba4c333def8b792252e0a202ae6dd3b5c74aa7142252dacd3ea717731cf75ec5f22e756e2fc83f9368aa EBUILD miniupnpd-2.0.20161216.ebuild 2380 SHA256 b8f53e32284375a1ec066d10ebe9fe13401e8750453379644af7224da20c6a41 SHA512 5708715d575cfb2dcae0af0667d9ecdb10f90e21f8bf14f86f869f6f4993b033ec889bb484ac4e9b12592687da2287e223bbd28eb15419de2eec47a1791fd522 WHIRLPOOL 4c3802a506d40ca1ca777a3102192da85c289017694ddb7826a86635634a2a44b70cc268c827091e153559e3696af578d3e7499d8f7f15f2837afd1222b86563 EBUILD miniupnpd-2.0.20171212.ebuild 2310 SHA256 babbd54fd6fad33ea3001229295d5c3da72ed4f546f53c02ec848fba158484b7 SHA512 4d26304731eba024618084543fff0eb8da1cab6b55565a5db3eadbb910c0cec1643364635488c97352966a90b4e70e896c9bfe0d3f4abff685eb6256e40ac0e3 WHIRLPOOL 2c0e61d0f7391c781941b5fbf2ff8f4d36cf259107056bbbe87e62c0287da1ebdadef86160f8c1dc5b8493b313c8593262b92093cb6fc4c463290bcc941ae04a +EBUILD miniupnpd-2.0.20180203.ebuild 2320 SHA256 bed7f0a5eaad1f00497124def3c25330fbee51c83de9152d6ccc72f3eb15befb SHA512 4c064e0614eca1ac42a1965a8b8e0fb6041acee673bcd0a64e2f1e7fb2f763062efe7e9641b884f101c5a6cf17ff9e09eb96460edb3263857cc616c160069b82 WHIRLPOOL ce81bce287096b464aa2972792e342068c2a9ba7cb0991da035b2d6eae8bae76e1e1845924b0fbe2883928027c40cbf08c6c3f488c7484b612d620037e1d7e63 EBUILD miniupnpd-2.0.ebuild 2380 SHA256 2d0cb2683e00f193cbf9e917b988725bbb7ad13f38541002adbbde08b142dc94 SHA512 3178bbd295c8efb95086e5e5e14772305bfb1b1594dfe81111af534c14f85dc5b8de852b1161d83e12f256c983809e81a3911bad6fd961f0c19a5370b407c687 WHIRLPOOL 41594023efed41ba8863a773a73be8856a32e00aa6d19771897bc12ddea1c548f5bf8af55d56f25fbb9aeae8d8d91adb4d15d2af6e411ec21b34b0f9c5d3066f diff --git a/net-misc/miniupnpd/miniupnpd-2.0.20180203.ebuild b/net-misc/miniupnpd/miniupnpd-2.0.20180203.ebuild new file mode 100644 index 00000000..d6034898 --- /dev/null +++ b/net-misc/miniupnpd/miniupnpd-2.0.20180203.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="MiniUPnP IGD Daemon" +HOMEPAGE="http://miniupnp.free.fr/" +SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="igd2 ipv6 +leasefile -nftables pcp-peer portinuse strict" + +RDEPEND="|| ( >=net-firewall/iptables-1.4.6:0=[ipv6?] net-firewall/iptables-nftables ) + net-libs/libnfnetlink:= + net-libs/libmnl:= + dev-libs/gmp:0= + sys-apps/util-linux + dev-libs/openssl:0=" +DEPEND="${RDEPEND} + sys-apps/lsb-release" + +pkg_setup() { + if use nftables; then + eerror "Sorry, but this version does not yet support features" + eerror "that you requested: nftables" + eerror "Please mask ${PF} for now and check back later:" + eerror " # echo '=${CATEGORY}/${PF}' >> /etc/portage/package.mask" + die "This version of MiniUPnP does not yet have all previous functionality enabled" + fi +} + +src_prepare() { + default + if use nftables; then + mv Makefile.linux_nft Makefile || die + else + mv Makefile.linux Makefile || die + fi + sed -i \ + -e '/V6SOCKETS_ARE_V6ONLY/s:/usr/sbin/sysctl:sysctl:' \ + genconfig.sh || + die "genconfig.sh fix failed" +} + +src_configure() { + local -a opts + opts=( + --vendorcfg + $(usex igd2 '--igd2' '') + $(usex ipv6 '--ipv6' '') + $(usex leasefile '--leasefile' '') + $(usex portinuse '--portinuse' '') + $(usex pcp-peer '--pcp-peer' '') + $(usex strict '--strict' '') + ) + + emake CONFIG_OPTIONS="${opts[*]}" config.h +} + +src_compile() { + # By default, it builds a bunch of unittests that are missing wrapper + # scripts in the tarball + emake CC="$(tc-getCC)" STRIP=true miniupnpd +} + +src_install() { + emake PREFIX="${ED}" STRIP=true install + + # Compare package versions against repo version before overwriting... + #exeinto /etc/miniupnpd + #newexe "${FILESDIR}"/iptables_init.sh-r2 iptables_init.sh + #newexe "${FILESDIR}"/iptables_removeall.sh-r2 iptables_removeall.sh + #doexe "${FILESDIR}"/ip6tables_init.sh + #doexe "${FILESDIR}"/ip6tables_removeall.sh + + newinitd "${FILESDIR}"/${PN}-init.d-r1 ${PN} + newconfd "${FILESDIR}"/${PN}-conf.d-r1 ${PN} +} + +pkg_postinst() { + elog "Please correct the external interface in the top of the two" + elog "scripts in /etc/miniupnpd and edit the config file in there too" +} |