Magellan Linux

Annotation of /branches/magellan-next/core/net-tools/net-tools-1.60-r9.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5892 - (hide annotations) (download)
Tue Aug 17 15:05:01 2010 UTC (13 years, 9 months ago) by niro
File size: 1737 byte(s)
imported from trunk
1 niro 3063 # $Header: /magellan-cvs/smage/net-tools/net-tools-1.60-r7.smage2,v 1.1 2008/02/10 01:50:42 niro Exp $
2    
3     PNAME="net-tools"
4     PVER="1.60"
5     PBUILD="r9"
6    
7     PCATEGORIE="sys-apps"
8     STATE="unstable"
9    
10     DESCRIPTION="Standard Linux networking tools."
11     HOMEPAGE="http://sites.inka.de/lina/linux/NetTools/"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.bz2"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     SRC_URI=(
19     mirror://${PNAME}/${SRCFILE}
20     mirror://${PNAME}/${PNAME}-${PVER}-2.6-compilefix.patch
21     mirror://${PNAME}/${PNAME}-${PVER}-miitool-gcc33-1.patch
22     mirror://${PNAME}/${PNAME}-${PVER}-gcc34.patch
23     mirror://${PNAME}/${PNAME}-${PVER}-get_name.patch
24     mirror://${PNAME}/${PNAME}-${PVER}-cleanup-list-handling.patch
25     mirror://${PNAME}/${PNAME}-${PVER}-man.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    
55     src_compile()
56     {
57     cd ${SRCDIR}
58     yes "" | make config || die
59     make COPTS="-D_GNU_SOURCE -Wall ${CFLAGS}" || die
60     }
61    
62     src_install()
63     {
64     cd ${SRCDIR}
65     make update BASEDIR=${BINDIR} || die
66     minstalldocs ABOUT-NLS COPYING README* TODO || die
67     }

Properties

Name Value
svn:keywords Id