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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Dec 24 08:57:25 2007 UTC (12 years, 2 months ago) by pva
Branch: MAIN
Changes since 1.2: +2 -2 lines
Version bump, bug 195669, thank Bjoern Olausson <spamsuxx AT gmail.com>. Added myself into metadata. Quotation fixes to shutup repoman.
(Portage version: 2.1.3.19)

1 dragonheart 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pva 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/l7-protocols/l7-protocols-2007.07.27.ebuild,v 1.2 2007/09/18 03:46:35 dragonheart Exp $
4 dragonheart 1.1
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     htfix_file "${S}"/testing/*.sh
26     }
27    
28     src_compile() {
29 dragonheart 1.2 emake -C testing || die
30 dragonheart 1.1 }
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 pva 1.3 cp -pPR randprintable randchars test_speed match README *.sh "${D}"/usr/share/${PN}
49 dragonheart 1.1 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