Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27264 - (show annotations) (download)
Tue Dec 8 12:07:32 2015 UTC (8 years, 5 months ago) by niro
File size: 2157 byte(s)
-fixed missing include
1 # $Id$
2
3 PNAME="net-tools"
4 PVER="1.60"
5 PBUILD="r14"
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 PROVIDE="virtual/kbd"
14
15 SRCFILE="${PNAME}-${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 mirror://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${PNAME}-${PVER}-2.6-compilefix.patch
23 mirror://${PNAME}/${PNAME}-${PVER}-miitool-gcc33-1.patch
24 mirror://${PNAME}/${PNAME}-${PVER}-gcc34.patch
25 mirror://${PNAME}/${PNAME}-${PVER}-get_name.patch
26 mirror://${PNAME}/${PNAME}-${PVER}-cleanup-list-handling.patch
27 mirror://${PNAME}/${PNAME}-${PVER}-man.patch
28 mirror://${PNAME}/${PNAME}-${PVER}-usr-move.patch
29 )
30
31 #UP2DATE="updatecmd http://developer.berlios.de/projects/net-tools/ | grep 'Latest File'"
32 UP2DATE="updatecmd_berlios ${PNAME}"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 cd ${SRCDIR}
38
39 # fixes compilation with kernel26 headers
40 mpatch ${PNAME}-${PVER}-2.6-compilefix.patch || die
41
42 # fixes compilation with gcc33
43 mpatch ${PNAME}-${PVER}-miitool-gcc33-1.patch || die
44
45 # fixes compilation with gcc34
46 mpatch ${PNAME}-${PVER}-gcc34.patch || die
47
48 # stack smashing attack in if_readlist_proc() from ifconfig
49 mpatch ${PNAME}-${PVER}-get_name.patch || die
50
51 # fixes nameif to segfault on larger mtabs
52 mpatch ${PNAME}-${PVER}-cleanup-list-handling.patch || die
53
54 # fixes some glitches in the man pages
55 mpatch ${PNAME}-${PVER}-man.patch || die
56
57 # install everything to /usr
58 mpatch ${PNAME}-${PVER}-usr-move.patch || die
59
60 # fix build with newer kernel headers >= 4.3
61 sed -i -e "s:^\(bool.*HAVE_HWSTRIP\).*:\1 n:" \
62 -e "s:^\(bool.*HAVE_HWTR\).*:\1 n:" \
63 config.in || die
64 }
65
66 src_compile()
67 {
68 cd ${SRCDIR}
69 yes "" | make config || die
70 make COPTS="-D_GNU_SOURCE -Wall ${CFLAGS}" || die
71 }
72
73 src_install()
74 {
75 cd ${SRCDIR}
76 make update BASEDIR=${BINDIR} || die
77 minstalldocs ABOUT-NLS COPYING README* TODO || die
78
79 # remove binaries provided by inetutils
80 mdelete /usr/bin/dnsdomainname || die
81 mdelete /usr/share/man/man1/dnsdomainname.1 || die
82 mdelete /usr/bin/hostname || die
83 mdelete /usr/share/man/man1/hostname.1 || die
84 }