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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Aug 28 03:18:17 2005 UTC (14 years, 3 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
version bump and old version cleanout
(Portage version: 2.0.51.22-r2)

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-2005.06.04.ebuild,v 1.3 2005/06/25 08:29:18 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="~ppc ~sparc x86"
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:
31 # stack smashing attack in function main()
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 newdoc README.weakpatterns
49 newdoc extra/README README.extra
50 newdoc file_types/README README.file_types
51 newdoc malware/README README.malware
52 newdoc testing/README README.testing
53 rm -rf README CHANGELOG HOWTO LICENSE WANTED */README testing
54
55 make PREFIX=${D} install || die
56 rm ${D}/etc/${PN}/Makefile
57 chown -R root:root ${D}
58 }

  ViewVC Help
Powered by ViewVC 1.1.20