summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2013-04-21 07:17:12 +0000
committerMichael Weber <xmw@gentoo.org>2013-04-21 07:17:12 +0000
commit8e7dc3a1dec37f0295318261dac97d08612a280d (patch)
treed676a12942bbfdbb7a0bd51663cd1ec0130c2a81 /net-misc/knock
parentVersion bump. (diff)
downloadgentoo-2-8e7dc3a1dec37f0295318261dac97d08612a280d.tar.gz
gentoo-2-8e7dc3a1dec37f0295318261dac97d08612a280d.tar.bz2
gentoo-2-8e7dc3a1dec37f0295318261dac97d08612a280d.zip
Version bump
(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'net-misc/knock')
-rw-r--r--net-misc/knock/ChangeLog10
-rw-r--r--net-misc/knock/knock-0.6.ebuild48
2 files changed, 55 insertions, 3 deletions
diff --git a/net-misc/knock/ChangeLog b/net-misc/knock/ChangeLog
index 50adf2e0d424..dffa2fc5ce85 100644
--- a/net-misc/knock/ChangeLog
+++ b/net-misc/knock/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-misc/knock
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.47 2012/06/13 12:35:00 xmw Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/ChangeLog,v 1.48 2013/04/21 07:17:12 xmw Exp $
+
+*knock-0.6 (21 Apr 2013)
+
+ 21 Apr 2013; Michael Weber <xmw@gentoo.org> +knock-0.6.ebuild:
+ Version bump
13 Jun 2012; Michael Weber <xmw@gentoo.org> -knock-0.5-r1.ebuild,
-knock-0.5.ebuild:
@@ -153,4 +158,3 @@
15 Apr 2004; Markus Nigbur <pyrania@gentoo.org> metadata.xml,
files/knockd.confd, files/knockd.initd:
Initial import.
-
diff --git a/net-misc/knock/knock-0.6.ebuild b/net-misc/knock/knock-0.6.ebuild
new file mode 100644
index 000000000000..2e144206dd3e
--- /dev/null
+++ b/net-misc/knock/knock-0.6.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.6.ebuild,v 1.1 2013/04/21 07:17:12 xmw Exp $
+
+EAPI=4
+
+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="+server"
+
+DEPEND="server? ( net-libs/libpcap )"
+RDEPEND="${DEPEND}
+ server? ( sys-apps/openrc )"
+
+src_prepare() {
+ sed -e "/^AM_CFLAGS/s: -g : :" \
+ -e "/dist_doc_DATA/s:COPYING::" \
+ -i Makefile.in || die
+ sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \
+ -i knockd.conf || die
+}
+
+src_configure() {
+ econf $(use_enable server knockd)
+}
+
+src_install() {
+ emake DESTDIR="${D}" docdir="${EROOT}/usr/share/doc/${PF}" install
+
+ if use server ; then
+ newinitd "${FILESDIR}"/knockd.initd.2 knock
+ newconfd "${FILESDIR}"/knockd.confd.2 knock
+ fi
+}
+
+pkg_postinst() {
+ 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."
+ einfo
+ fi
+}