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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Mar 14 10:15:59 2014 UTC (5 years, 8 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Stable for ppc64, wrt bug #474280

(Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --include-arches="ppc64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2014 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-2009.05.28.ebuild,v 1.6 2014/03/12 10:07:20 ago 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 *.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 || die
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