Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12675 - (show annotations) (download)
Tue Jun 26 19:54:46 2012 UTC (11 years, 11 months ago) by niro
File size: 1748 byte(s)
-prepare usr-move
1 # $Id$
2
3 PNAME="net-tools"
4 PVER="1.60"
5 PBUILD="r12"
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 mirror://${PNAME}/${PNAME}-${PVER}-usr-move.patch
26 )
27
28 #UP2DATE="updatecmd http://developer.berlios.de/projects/net-tools/ | grep 'Latest File'"
29 UP2DATE="updatecmd_berlios ${PNAME}"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # fixes compilation with kernel26 headers
37 mpatch ${PNAME}-${PVER}-2.6-compilefix.patch || die
38
39 # fixes compilation with gcc33
40 mpatch ${PNAME}-${PVER}-miitool-gcc33-1.patch || die
41
42 # fixes compilation with gcc34
43 mpatch ${PNAME}-${PVER}-gcc34.patch || die
44
45 # stack smashing attack in if_readlist_proc() from ifconfig
46 mpatch ${PNAME}-${PVER}-get_name.patch || die
47
48 # fixes nameif to segfault on larger mtabs
49 mpatch ${PNAME}-${PVER}-cleanup-list-handling.patch || die
50
51 # fixes some glitches in the man pages
52 mpatch ${PNAME}-${PVER}-man.patch || die
53
54 # install everything to /usr
55 mpatch ${PNAME}-${PVER}-usr-move.patch || die
56 }
57
58 src_compile()
59 {
60 cd ${SRCDIR}
61 yes "" | make config || die
62 make COPTS="-D_GNU_SOURCE -Wall ${CFLAGS}" || die
63 }
64
65 src_install()
66 {
67 cd ${SRCDIR}
68 make update BASEDIR=${BINDIR} || die
69 minstalldocs ABOUT-NLS COPYING README* TODO || die
70 }