/[gentoo-x86]/net-misc/l7-protocols/l7-protocols-2004.11.28.ebuild
Gentoo

Contents of /net-misc/l7-protocols/l7-protocols-2004.11.28.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 23 09:39:16 2005 UTC (14 years, 8 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, stablize later versions and old version cleanout. bug #85314
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/l7-protocols-2004.11.28.ebuild,v 1.2 2005/01/04 09:32:21 dragonheart Exp $
4
5 inherit toolchain-funcs
6
7 IUSE=""
8
9 MY_P=${PN}-${PV//./_}
10
11 DESCRIPTION="Protocol definitions of l7-filter kernel modules"
12 HOMEPAGE="http://l7-filter.sourceforge.net/protocols"
13
14 SRC_URI="mirror://sourceforge/l7-filter/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="x86 ~ppc"
19 S=${WORKDIR}/${MY_P}
20
21 RDEPEND="net-misc/l7-filter"
22
23
24 src_compile() {
25 sed -i -e "s/gcc.*-O2/$(tc-getCC) ${CFLAGS}/g" testing/Makefile
26 sed -i -e 's/-1/-n 1/g' testing/*.sh
27 emake -C testing
28 }
29
30 # NOTE Testing mechanism is currently broken - it doesn't stop until it fails
31 # This is bad when it works.
32
33 #src_test() {
34 # cd testing
35 # find ${S} -name \*.pat -print -exec ./test_match.sh {} \; \
36 # -exec ./timeit.sh {} \; || die "failed tests"
37 # einfo "patterns past testing"
38 #}
39
40 src_install() {
41
42 dodir /usr/share/${PN}
43 cd testing
44 cp -a randprintable randchars test_speed match README *.sh ${D}/usr/share/${PN}
45 cd ${S}
46
47 dodoc README CHANGELOG HOWTO WANTED
48 docinto weakpatterns/README README.weakpatterns
49 docinto extra/README README.extra
50 docinto file_types/README README.file_types
51 docinto malware/README README.malware
52 docinto testing/README README.testing
53
54 rm -rf README CHANGELOG HOWTO LICENSE WANTED */README testing
55
56 make PREFIX=${D} install || die
57 rm ${D}/etc/${PN}/Makefile
58 }

  ViewVC Help
Powered by ViewVC 1.1.20