1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="A simple port-knocking daemon"
7 HOMEPAGE="http://www.zeroflux.org/projects/knock"
8 SRC_URI="http://www.zeroflux.org/proj/knock/files/${P}.tar.gz"
12 KEYWORDS="amd64 ppc sparc x86"
15 DEPEND="server? ( net-libs/libpcap )"
17 server? ( sys-apps/openrc )"
20 sed -e "/^AM_CFLAGS/s: -g : :" \
21 -e "/dist_doc_DATA/s:COPYING::" \
23 sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \
28 econf $(use_enable server knockd)
32 emake DESTDIR="${D}" docdir="${EROOT}/usr/share/doc/${PF}" install
35 newinitd "${FILESDIR}"/knockd.initd.2 knock
36 newconfd "${FILESDIR}"/knockd.confd.2 knock
41 if use server && ! has_version net-firewall/iptables ; then
43 elog "You're really encouraged to install net-firewall/iptables to"
44 elog "actually modify your firewall and use the example configuration."