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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jun 28 09:31:26 2011 UTC (8 years, 5 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Fix sed statement to avoid cross-compiling issues, bug #373193 thank Bertrand Jacquin for report and Justin Lecher for investigation. Drop old.

(Portage version: 2.1.10.3/cvs/Linux x86_64)

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-2008.01.16.ebuild,v 1.5 2008/02/15 13:00:14 fmccor 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 dodir /usr/share/${PN}
46 pushd testing > /dev/null
47 cp -pPR randprintable randchars test_speed-{kernel,userspace} README \
48 match_kernel speeds-2007-10-02-450MHz *.sh data "${D}"/usr/share/${PN}
49 popd > /dev/null
50 mv example_traffic "${D}"/usr/share/${PN}
51
52 dodoc README CHANGELOG HOWTO WANTED
53 for dir in extra file_types malware ; do
54 newdoc ${dir}/README README.${dir}
55 done
56 rm -rf README CHANGELOG HOWTO LICENSE Makefile WANTED */README testing
57
58 dodir /etc/l7-protocols
59 cp -R * "${D}"/etc/l7-protocols
60 chown -R root:0 "${D}"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20