public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/knock: metadata.xml ChangeLog knock-0.5-r1.ebuild
@ 2010-08-31  9:33 Michael Weber (xmw)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Weber (xmw) @ 2010-08-31  9:33 UTC (permalink / raw
  To: gentoo-commits

xmw         10/08/31 09:33:44

  Modified:             metadata.xml ChangeLog
  Added:                knock-0.5-r1.ebuild
  Log:
  Revision bump to fix bug #332897
  (Portage version: 2.1.8.3/cvs/Linux x86_64)

Revision  Changes    Path
1.5                  net-misc/knock/metadata.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/metadata.xml?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/metadata.xml?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/metadata.xml?r1=1.4&r2=1.5

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/knock/metadata.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- metadata.xml	22 Mar 2009 13:23:21 -0000	1.4
+++ metadata.xml	31 Aug 2010 09:33:43 -0000	1.5
@@ -3,6 +3,7 @@
 <pkgmetadata>
   <herd>no-herd</herd>
   <maintainer>
-    <email>maintainer-needed@gentoo.org</email>
+    <email>xmw@gentoo.org</email>
+	<name>Michael Weber</name>
   </maintainer>
 </pkgmetadata>



1.38                 net-misc/knock/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/ChangeLog?rev=1.38&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/ChangeLog?rev=1.38&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/ChangeLog?r1=1.37&r2=1.38

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- ChangeLog	23 Aug 2009 01:43:17 -0000	1.37
+++ ChangeLog	31 Aug 2010 09:33:43 -0000	1.38
@@ -1,6 +1,13 @@
 # ChangeLog for net-misc/knock
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.37 2009/08/23 01:43:17 darkside Exp $
+# 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 $
+
+*knock-0.5-r1 (31 Aug 2010)
+
+  31 Aug 2010; Michael Weber <xmw@gentoo.org> +knock-0.5-r1.ebuild,
+  metadata.xml:
+  Revision bump to fix bug #332897, thanks to Sebastian
+  <indigo176@blinkenshell.org>. Die more, EAPI-2.
 
   23 Aug 2009; Jeremy Olexa <darkside@gentoo.org> -files/knockd.conf.patch,
   -files/nonblock.patch:



1.1                  net-misc/knock/knock-0.5-r1.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild?rev=1.1&content-type=text/plain

Index: knock-0.5-r1.ebuild
===================================================================
# 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 $

EAPI=2

inherit eutils

DESCRIPTION="A simple port-knocking daemon"
HOMEPAGE="http://www.zeroflux.org/projects/knock"
SRC_URI="http://www.zeroflux.org/proj/knock/files/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""

DEPEND="net-libs/libpcap"
RDEPEND="net-firewall/iptables
	${DEPEND}"

src_prepare() {
	epatch "${FILESDIR}"/${P}-gcc-4.3.patch

	sed -i -e "s:/usr/sbin/iptables:/sbin/iptables:g" knockd.conf || die
}

src_install() {
	make DESTDIR="${D}" install || die
	dodoc ChangeLog README TODO || die

	newinitd "${FILESDIR}"/knockd.initd knock || die
	newconfd "${FILESDIR}"/knockd.confd knock || die
}

pkg_postinst() {
	if ! 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."
		einfo
	fi
}






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-misc/knock: metadata.xml ChangeLog knock-0.5-r1.ebuild
@ 2010-08-31 11:02 Michael Weber (xmw)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Weber (xmw) @ 2010-08-31 11:02 UTC (permalink / raw
  To: gentoo-commits

xmw         10/08/31 11:02:25

  Modified:             metadata.xml ChangeLog knock-0.5-r1.ebuild
  Log:
  Made knockd daemon optional with IUSE server, fixes bug 311257.
  (Portage version: 2.1.8.3/cvs/Linux x86_64)

Revision  Changes    Path
1.6                  net-misc/knock/metadata.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/metadata.xml?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/metadata.xml?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/metadata.xml?r1=1.5&r2=1.6

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/knock/metadata.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- metadata.xml	31 Aug 2010 09:33:43 -0000	1.5
+++ metadata.xml	31 Aug 2010 11:02:24 -0000	1.6
@@ -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>



1.39                 net-misc/knock/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/ChangeLog?rev=1.39&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/ChangeLog?rev=1.39&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/ChangeLog?r1=1.38&r2=1.39

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- ChangeLog	31 Aug 2010 09:33:43 -0000	1.38
+++ ChangeLog	31 Aug 2010 11:02:24 -0000	1.39
@@ -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)
 



1.2                  net-misc/knock/knock-0.5-r1.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild?r1=1.1&r2=1.2

Index: knock-0.5-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- knock-0.5-r1.ebuild	31 Aug 2010 09:33:43 -0000	1.1
+++ knock-0.5-r1.ebuild	31 Aug 2010 11:02:24 -0000	1.2
@@ -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 @@
 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."






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-31 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-31  9:33 [gentoo-commits] gentoo-x86 commit in net-misc/knock: metadata.xml ChangeLog knock-0.5-r1.ebuild Michael Weber (xmw)
  -- strict thread matches above, loose matches on Subject: below --
2010-08-31 11:02 Michael Weber (xmw)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox