blob: 281c2aca40fd10d7dbeb8da619a032886245e7bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.5.ebuild,v 1.11 2008/07/26 20:26:13 wormo Exp $
inherit eutils
MY_PV="${PV/%.0}"
S="${WORKDIR}/${PN}-${MY_PV}"
DESCRIPTION="A simple port-knocking daemon"
HOMEPAGE="http://www.zeroflux.org/cgi-bin/cvstrac.cgi/knock/wiki"
SRC_URI="http://www.zeroflux.org/knock/files/${PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""
DEPEND="net-libs/libpcap"
RDEPEND="net-firewall/iptables
${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc-4.3.patch
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc README
dodoc ChangeLog
dodoc TODO
dosed "s:/usr/sbin/iptables:/sbin/iptables:g" /etc/knockd.conf
newinitd "${FILESDIR}"/knockd.initd knock
newconfd "${FILESDIR}"/knockd.confd knock
}
|