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

Contents of /net-misc/knock/knock-0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Jun 29 16:24:44 2013 UTC (6 years, 5 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for sparc, wrt bug #474278

(Portage version: 2.1.12.2/cvs/Linux ppc64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 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.6.ebuild,v 1.4 2013/06/25 18:42:35 ago Exp $
4
5 EAPI=4
6
7 DESCRIPTION="A simple port-knocking daemon"
8 HOMEPAGE="http://www.zeroflux.org/projects/knock"
9 SRC_URI="http://www.zeroflux.org/proj/knock/files/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ppc sparc x86"
14 IUSE="+server"
15
16 DEPEND="server? ( net-libs/libpcap )"
17 RDEPEND="${DEPEND}
18 server? ( sys-apps/openrc )"
19
20 src_prepare() {
21 sed -e "/^AM_CFLAGS/s: -g : :" \
22 -e "/dist_doc_DATA/s:COPYING::" \
23 -i Makefile.in || die
24 sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \
25 -i knockd.conf || die
26 }
27
28 src_configure() {
29 econf $(use_enable server knockd)
30 }
31
32 src_install() {
33 emake DESTDIR="${D}" docdir="${EROOT}/usr/share/doc/${PF}" install
34
35 if use server ; then
36 newinitd "${FILESDIR}"/knockd.initd.2 knock
37 newconfd "${FILESDIR}"/knockd.confd.2 knock
38 fi
39 }
40
41 pkg_postinst() {
42 if use server && ! has_version net-firewall/iptables ; then
43 einfo
44 elog "You're really encouraged to install net-firewall/iptables to"
45 elog "actually modify your firewall and use the example configuration."
46 einfo
47 fi
48 }

  ViewVC Help
Powered by ViewVC 1.1.20