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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Apr 1 06:07:45 2008 UTC (11 years, 8 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
cleanout
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 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-2007.06.22.ebuild,v 1.5 2008/01/12 08:05:50 pva Exp $
4
5 inherit fixheadtails 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="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
19 S=${WORKDIR}/${MY_P}
20
21 src_unpack() {
22 unpack ${A}
23 sed -i -e "s/gcc.*\-o/$(tc-getCC) ${CFLAGS} -o/g" \
24 -e "s/g++.*\-o/$(tc-getCXX) ${CXXFLAGS} -o/g" "${S}"/testing/Makefile
25 ht_fix_file "${S}"/testing/*.sh
26 }
27
28 src_compile() {
29 emake -C testing || die
30 }
31
32 # NOTE Testing mechanism is currently broken:
33 # stack smashing attack in function main()
34
35 # Is also extraordinarly inefficent getting random data.
36 #
37 #src_test() {
38 # cd testing
39 # find ${S} -name \*.pat -print -exec ./test_match.sh {} \; \
40 # -exec ./timeit.sh {} \; || die "failed tests"
41 # einfo "patterns past testing"
42 #}
43
44 src_install() {
45
46 dodir /usr/share/${PN}
47 cd testing
48 cp -pPR randprintable randchars test_speed match README *.sh "${D}"/usr/share/${PN}
49 cd "${S}"
50
51 dodoc README CHANGELOG HOWTO WANTED
52 dodoc README.weakpatterns
53 newdoc extra/README README.extra
54 newdoc file_types/README README.file_types
55 newdoc malware/README README.malware
56 newdoc testing/README README.testing
57 rm -rf README CHANGELOG HOWTO LICENSE WANTED */README testing
58
59 make PREFIX="${D}" install || die
60 rm "${D}"/etc/${PN}/Makefile
61 chown -R root:0 "${D}"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20