diff options
author | Michael Weber <xmw@gentoo.org> | 2010-08-31 11:02:24 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2010-08-31 11:02:24 +0000 |
commit | 54aaea8762942ae3d1a89e78281cdca1d0f51c3b (patch) | |
tree | df5a6708e0267ddc04134fa7867f3ca345d1ef41 /net-misc/knock | |
parent | Honour LDFLAGS. Closes bug #334613. (diff) | |
download | historical-54aaea8762942ae3d1a89e78281cdca1d0f51c3b.tar.gz historical-54aaea8762942ae3d1a89e78281cdca1d0f51c3b.tar.bz2 historical-54aaea8762942ae3d1a89e78281cdca1d0f51c3b.zip |
Made knockd daemon optional with IUSE server, fixes bug 311257.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'net-misc/knock')
-rw-r--r-- | net-misc/knock/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/knock/Manifest | 6 | ||||
-rw-r--r-- | net-misc/knock/knock-0.5-r1.ebuild | 22 | ||||
-rw-r--r-- | net-misc/knock/metadata.xml | 3 |
4 files changed, 25 insertions, 12 deletions
diff --git a/net-misc/knock/ChangeLog b/net-misc/knock/ChangeLog index 884a26f1a161..3077fa2986b2 100644 --- a/net-misc/knock/ChangeLog +++ b/net-misc/knock/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/knock # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.38 2010/08/31 09:33:43 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.39 2010/08/31 11:02:24 xmw Exp $ + + 31 Aug 2010; Michael Weber <xmw@gentoo.org> knock-0.5-r1.ebuild, + metadata.xml: + Made knockd daemon optional with IUSE server, fixes bug 311257. *knock-0.5-r1 (31 Aug 2010) diff --git a/net-misc/knock/Manifest b/net-misc/knock/Manifest index c0873a2481fd..5759351f5feb 100644 --- a/net-misc/knock/Manifest +++ b/net-misc/knock/Manifest @@ -2,7 +2,7 @@ AUX knock-0.5-gcc-4.3.patch 248 RMD160 197f27ccb79d40e94311e26912515ae9451dae46 AUX knockd.confd 264 RMD160 7b938d3e2a36d76694d8fcc313fbd15620065f57 SHA1 8a3cf4003e9efd05bdd955bd417abb21e79a73a3 SHA256 2af786ff26705fb91f87296cb600c4e058031a5d6d550d4ac54e832cc937f88b AUX knockd.initd 492 RMD160 3a46092965b673c0b7de09706bdeddecdb2fa675 SHA1 41bb302c41abe3640ddf0992f7643c69fa7768dc SHA256 8e11f2bc31260227c869c402dbd2abe7bfcc6f237499441f4b798fb6040389ad DIST knock-0.5.tar.gz 83990 RMD160 089ea289a51478a89945c46469b378c3b33fff6d SHA1 26f3b2f2d698bc6978390ef6e93c628361605059 SHA256 c4c141166a10c45b139e5e656d0c98bbb99567abb35163863fc1df1a025cde15 -EBUILD knock-0.5-r1.ebuild 1088 RMD160 8599057900c3053ece9d8f7b66911c134ce80e69 SHA1 a8b0a3bdf6cd9652311377452ed3008e38ab6ba8 SHA256 198d214633f24ec7eef9832153f1487b4a2a82c0bfaf4dfb85461f1a5d9aa4e7 +EBUILD knock-0.5-r1.ebuild 1238 RMD160 2504027f9b7f2dc963b52481ec02346d0726647b SHA1 51543dcb230fad2d9c2497bcf6e24b12d3ea796f SHA256 de9ab8111d57cf29f2291c3c1b497464abb995d4d49c669ab3ee8c68f9d2a59c EBUILD knock-0.5.ebuild 947 RMD160 a42629af92d462e31273582843c516d7869f8ac0 SHA1 47d4ad9f1ae3c3a9cb72769bc35a8eeab8336707 SHA256 e02dbbde5d8e878006035228e7d6ec53ff61ff218e11eac206add7ca3abe3b78 -MISC ChangeLog 4086 RMD160 4feb3ef416f610b9f6881499333e0edeff07f6d1 SHA1 67d438c2d085ecdf267d856be695f30b9a1aee60 SHA256 0198945db2cb627d5d015b9303707c3dfdd01bdb8f4037a6fdb7ef3852a1fffd -MISC metadata.xml 255 RMD160 074d0756614e5268d188aa562b5774eedda511d0 SHA1 ee37445e389c446bbdc21503ba2b6c9dd6746eb1 SHA256 d540a4739cb022c072918b4b0b648e9121a7dcb956ddee9505fa6b9f9fc813e7 +MISC ChangeLog 4236 RMD160 8dd17a6d1fefeb60e31e6f96b2ef8b592a5578a7 SHA1 a0a4fdd7742bdb9e58057bac0ee19ae3623f01c4 SHA256 c544240e511dbf99e21313e7161c4076d371362bea5a9a489c85a9e6ef997d79 +MISC metadata.xml 338 RMD160 e15ea1267eff529989b040078cb9b8873b7cd6ec SHA1 4800b25ab3f0c14321283ab12714a0a4f20909c1 SHA256 df394f96c950b7b7c142a7564aace04962dc2a06b28c4bd56dda86d4845dd705 diff --git a/net-misc/knock/knock-0.5-r1.ebuild b/net-misc/knock/knock-0.5-r1.ebuild index ef9c1b72fc18..0aff19575cf9 100644 --- a/net-misc/knock/knock-0.5-r1.ebuild +++ b/net-misc/knock/knock-0.5-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild,v 1.1 2010/08/31 09:33:43 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild,v 1.2 2010/08/31 11:02:24 xmw Exp $ EAPI=2 @@ -13,28 +13,34 @@ SRC_URI="http://www.zeroflux.org/proj/knock/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="" +IUSE="+server" -DEPEND="net-libs/libpcap" -RDEPEND="net-firewall/iptables - ${DEPEND}" +DEPEND="server? ( net-libs/libpcap )" +RDEPEND="${DEPEND}" src_prepare() { epatch "${FILESDIR}"/${P}-gcc-4.3.patch sed -i -e "s:/usr/sbin/iptables:/sbin/iptables:g" knockd.conf || die + + if ! use server ; then + sed -i -e '/^all:/s:knockd::' \ + -e '/$(INSTALL).*knockd/d' Makefile.in || die + fi } src_install() { make DESTDIR="${D}" install || die dodoc ChangeLog README TODO || die - newinitd "${FILESDIR}"/knockd.initd knock || die - newconfd "${FILESDIR}"/knockd.confd knock || die + if use server ; then + newinitd "${FILESDIR}"/knockd.initd knock || die + newconfd "${FILESDIR}"/knockd.confd knock || die + fi } pkg_postinst() { - if ! has_version net-firewall/iptables ; then + if use server && ! has_version net-firewall/iptables ; then einfo elog "You're really encouraged to install net-firewall/iptables to" elog "actually modify your firewall and use the example configuration." diff --git a/net-misc/knock/metadata.xml b/net-misc/knock/metadata.xml index 81b23f04061d..4366cff8f355 100644 --- a/net-misc/knock/metadata.xml +++ b/net-misc/knock/metadata.xml @@ -6,4 +6,7 @@ <email>xmw@gentoo.org</email> <name>Michael Weber</name> </maintainer> + <use> + <flag name='server'>Installs the knockd server daemon.</flag> + </use> </pkgmetadata> |