/[gentoo-x86]/net-analyzer/ippl/ippl-1.4.14-r3.ebuild
Gentoo

Contents of /net-analyzer/ippl/ippl-1.4.14-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 12 10:46:15 2012 UTC (21 months, 2 weeks ago) by pinkbyte
Branch: MAIN
Changes since 1.1: +2 -2 lines
Replace yacc dependency atoms with virtual/yacc

(Portage version: 2.2.0_alpha136/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/ippl/ippl-1.4.14-r3.ebuild,v 1.1 2012/10/12 10:43:32 pinkbyte Exp $
4
5 EAPI="4"
6
7 inherit eutils toolchain-funcs user
8
9 DESCRIPTION="A daemon which logs TCP/UDP/ICMP packets"
10 HOMEPAGE="http://pltplp.net/ippl/"
11 SRC_URI="http://pltplp.net/ippl/archive/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE=""
17
18 DEPEND="virtual/yacc
19 >=sys-devel/flex-2.5.4a-r4"
20 RDEPEND=""
21
22 pkg_setup() {
23 enewuser ippl
24 }
25
26 src_prepare() {
27 epatch \
28 "${FILESDIR}"/ippl-1.4.14-noportresolve.patch \
29 "${FILESDIR}"/ippl-1.4.14-manpage.patch \
30 "${FILESDIR}"/ippl-1.4.14-privilege-drop.patch \
31 "${FILESDIR}"/ippl-1.4.14-includes.patch
32 sed -i Source/Makefile.in \
33 -e 's|^LDFLAGS=|&@LDFLAGS@|g' \
34 || die "sed Source/Makefile.in"
35 sed -i Makefile.in \
36 -e 's|make |$(MAKE) |g' \
37 || die "sed Makefile.in"
38 # fix for bug #351287
39 sed -i -e '/lex.yy.c/s/ippl.l/& y.tab.c/' Source/Makefile.in \
40 || die "sed src/Makefile.in"
41 tc-export CC
42 }
43
44 src_install() {
45 dosbin Source/ippl
46
47 insinto "/etc"
48 doins ippl.conf
49
50 doman Docs/{ippl.8,ippl.conf.5}
51
52 dodoc BUGS CREDITS HISTORY README TODO
53
54 newinitd "${FILESDIR}"/ippl.rc ippl
55 }

  ViewVC Help
Powered by ViewVC 1.1.20