/[gentoo-x86]/net-misc/knock/knock-0.5-r1.ebuild
Gentoo

Contents of /net-misc/knock/knock-0.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jun 13 12:35:00 2012 UTC (11 months, 1 week ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
drop old

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/knock/knock-0.5-r1.ebuild,v 1.4 2011/12/21 08:39:56 phajdan.jr Exp $
4
5 EAPI=2
6
7 inherit eutils
8
9 DESCRIPTION="A simple port-knocking daemon"
10 HOMEPAGE="http://www.zeroflux.org/projects/knock"
11 SRC_URI="http://www.zeroflux.org/proj/knock/files/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc ~sparc x86"
16 IUSE="+server"
17
18 DEPEND="server? ( net-libs/libpcap )"
19 RDEPEND="${DEPEND}"
20
21 src_prepare() {
22 epatch "${FILESDIR}"/${P}-gcc-4.3.patch
23
24 sed -i -e "s:/usr/sbin/iptables:/sbin/iptables:g" knockd.conf || die
25
26 if ! use server ; then
27 sed -i -e '/^all:/s:knockd::' \
28 -e '/$(INSTALL).*knockd/d' Makefile.in || die
29 fi
30 }
31
32 src_install() {
33 make DESTDIR="${D}" install || die
34 dodoc ChangeLog README TODO || die
35
36 if use server ; then
37 newinitd "${FILESDIR}"/knockd.initd knock || die
38 newconfd "${FILESDIR}"/knockd.confd knock || die
39 fi
40 }
41
42 pkg_postinst() {
43 if use server && ! has_version net-firewall/iptables ; then
44 einfo
45 elog "You're really encouraged to install net-firewall/iptables to"
46 elog "actually modify your firewall and use the example configuration."
47 einfo
48 fi
49 }

  ViewVC Help
Powered by ViewVC 1.1.13