Magellan Linux

Contents of /trunk/core/net-tools/net-tools-1.60-r11.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10225 - (show annotations) (download)
Fri Jan 20 10:12:21 2012 UTC (12 years, 4 months ago) by niro
File size: 1619 byte(s)
-import from magellan-next
1 # $Id$
2
3 PNAME="net-tools"
4 PVER="1.60"
5 PBUILD="r11"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="Standard Linux networking tools."
10 HOMEPAGE="http://sites.inka.de/lina/linux/NetTools/"
11
12 DEPEND=">= virtual/glibc"
13
14 SRCFILE="${PNAME}-${PVER}.tar.bz2"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 SRC_URI=(
18 mirror://${PNAME}/${SRCFILE}
19 mirror://${PNAME}/${PNAME}-${PVER}-2.6-compilefix.patch
20 mirror://${PNAME}/${PNAME}-${PVER}-miitool-gcc33-1.patch
21 mirror://${PNAME}/${PNAME}-${PVER}-gcc34.patch
22 mirror://${PNAME}/${PNAME}-${PVER}-get_name.patch
23 mirror://${PNAME}/${PNAME}-${PVER}-cleanup-list-handling.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-man.patch
25 )
26
27 #UP2DATE="updatecmd http://developer.berlios.de/projects/net-tools/ | grep 'Latest File'"
28 UP2DATE="updatecmd_berlios ${PNAME}"
29
30 src_prepare()
31 {
32 munpack ${SRCFILE} || die
33 cd ${SRCDIR}
34
35 # fixes compilation with kernel26 headers
36 mpatch ${PNAME}-${PVER}-2.6-compilefix.patch || die
37
38 # fixes compilation with gcc33
39 mpatch ${PNAME}-${PVER}-miitool-gcc33-1.patch || die
40
41 # fixes compilation with gcc34
42 mpatch ${PNAME}-${PVER}-gcc34.patch || die
43
44 # stack smashing attack in if_readlist_proc() from ifconfig
45 mpatch ${PNAME}-${PVER}-get_name.patch || die
46
47 # fixes nameif to segfault on larger mtabs
48 mpatch ${PNAME}-${PVER}-cleanup-list-handling.patch || die
49
50 # fixes some glitches in the man pages
51 mpatch ${PNAME}-${PVER}-man.patch || die
52 }
53
54 src_compile()
55 {
56 cd ${SRCDIR}
57 yes "" | make config || die
58 make COPTS="-D_GNU_SOURCE -Wall ${CFLAGS}" || die
59 }
60
61 src_install()
62 {
63 cd ${SRCDIR}
64 make update BASEDIR=${BINDIR} || die
65 minstalldocs ABOUT-NLS COPYING README* TODO || die
66 }