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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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.11.08.ebuild,v 1.1 2008/11/14 11:19:29 pva Exp $
4
5 inherit eutils 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
24 cd "${S}"
25 sed -e "s/gcc.*\-o/$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o/g" \
26 -e "s/g++.*\-o/$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} -o/g" \
27 -i testing/Makefile
28 ht_fix_file testing/*.sh
29 }
30
31 src_compile() {
32 emake -C testing || die
33 }
34
35 # NOTE Testing mechanism is currently broken:
36 # stack smashing attack in function main()
37
38 # Is also extraordinarly inefficent getting random data.
39 #
40 #src_test() {
41 # cd testing
42 # find ${S} -name \*.pat -print -exec ./test_match.sh {} \; \
43 # -exec ./timeit.sh {} \; || die "failed tests"
44 # einfo "patterns past testing"
45 #}
46
47 src_install() {
48 dodir /usr/share/${PN}
49 pushd testing > /dev/null
50 cp -pPR randprintable randchars test_speed-{kernel,userspace} README \
51 match_kernel speeds-2007-10-02-450MHz *.sh data "${D}"/usr/share/${PN}
52 popd > /dev/null
53 mv example_traffic "${D}"/usr/share/${PN}
54
55 dodoc README CHANGELOG HOWTO WANTED
56 for dir in extra file_types malware ; do
57 newdoc ${dir}/README README.${dir}
58 done
59 rm -rf README CHANGELOG HOWTO LICENSE Makefile WANTED */README testing
60
61 dodir /etc/l7-protocols
62 cp -R * "${D}"/etc/l7-protocols
63 chown -R root:0 "${D}"
64 }

  ViewVC Help
Powered by ViewVC 1.1.20