Annotation of /trunk/extras/ebtables/ebtables-2.0.9.1-r1.smage2
Parent Directory | Revision Log
Revision 2775 -
(hide annotations)
(download)
Fri Jul 10 18:02:17 2009 UTC (15 years, 2 months ago) by niro
File size: 1525 byte(s)
Fri Jul 10 18:02:17 2009 UTC (15 years, 2 months ago) by niro
File size: 1525 byte(s)
-src_install not parallel save
1 | niro | 2774 | # $Id$ |
2 | |||
3 | PNAME="ebtables" | ||
4 | PVER="2.0.9.1" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="net-misc" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and routing." | ||
11 | HOMEPAGE="http://ebtables.sourceforge.net/" | ||
12 | |||
13 | DEPEND="" | ||
14 | SDEPEND=">= virtual/kernel-headers" | ||
15 | |||
16 | SRCFILE="${PNAME}-v${PVER:0:5}-${PVER:6}.tar.gz" | ||
17 | SRCDIR="${BUILDDIR}/${PNAME}-v${PVER:0:5}-${PVER:6}" | ||
18 | |||
19 | sminclude mtools | ||
20 | |||
21 | SRC_URI=( | ||
22 | sourceforge://${PNAME}/${SRCFILE} | ||
23 | mirror://${PNAME}/${SRCFILE} | ||
24 | mirror://${PNAME}/${PNAME}-2.0.8.2-ebt-save.patch | ||
25 | mirror://${PNAME}/ebtables.rc | ||
26 | mirror://${PNAME}/ebtables.confd | ||
27 | ) | ||
28 | |||
29 | UP2DATE="updatecmd_sourceforge ${PNAME}" | ||
30 | |||
31 | src_prepare() | ||
32 | { | ||
33 | munpack ${SRCFILE} || die | ||
34 | cd ${SRCDIR} | ||
35 | |||
36 | # ebtables should save table names as parameters | ||
37 | mpatch ${PNAME}-2.0.8.2-ebt-save.patch || die | ||
38 | |||
39 | # fix install locations | ||
40 | sed -i -e "s,^MANDIR:=.*,MANDIR:=/usr/share/man," \ | ||
41 | -e "s,^BINDIR:=.*,BINDIR:=/sbin," \ | ||
42 | -e "s,^INITDIR:=.*,INITDIR:=/usr/share/doc/${PNAME}-${PVER}," \ | ||
43 | -e "s,^SYSCONFIGDIR:=.*,SYSCONFIGDIR:=/usr/share/doc/${PNAME}-${PVER}," \ | ||
44 | -e "s,^LIBDIR:=.*,LIBDIR:=/$(mlibdir)/\$(PROGNAME)," \ | ||
45 | Makefile | ||
46 | } | ||
47 | |||
48 | src_compile() | ||
49 | { | ||
50 | cd ${SRCDIR} | ||
51 | mmake || die | ||
52 | } | ||
53 | |||
54 | src_install() | ||
55 | { | ||
56 | cd ${SRCDIR} | ||
57 | |||
58 | # missing directory | ||
59 | minstalldir /usr/share/doc/${PNAME}-${PVER}/ebtables || die | ||
60 | |||
61 | niro | 2775 | make DESTDIR=${BINDIR} install || die |
62 | niro | 2774 | mkeepdir /var/lib/ebtables || die |
63 | |||
64 | minstallconf ebtables.confd ebtables || die | ||
65 | minstallrc ebtables.rc ebtables || die | ||
66 | |||
67 | # docs | ||
68 | minstalldocs COMMIT_NOTES COPYING INCOMPATIBILITIES || die | ||
69 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |