Magellan Linux

Annotation of /trunk/core/traceroute/traceroute-1.4.a.12-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 1833 byte(s)
import repo
1 niro 2 # $Header: /magellan-cvs/smage/traceroute/traceroute-1.4.a.12-r6.smage2,v 1.1 2008/04/20 23:11:07 niro Exp $
2    
3     PNAME="traceroute"
4     PVER="1.4.a.12"
5     PBUILD="r6"
6    
7     PCATEGORIE="net-misc"
8     STATE="unstable"
9    
10     DESCRIPTION="traceroute prints the route which packets take to a network host."
11     HOMEPAGE="http://ee.lbl.gov/"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SDEPEND=">= sys-dev/autoconf-4
16     >= sys-apps/sed-4"
17    
18     SRCFILE="${PNAME}-${PVER/.a.12/a12}.tar.gz"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER/.a.12/a12}"
20    
21     sminclude gnuconfig mtools
22    
23     SRC_URI=(
24     ftp://ftp.ee.lbl.gov/${SRCFILE}
25     mirror://${PNAME}/${SRCFILE}
26     mirror://${PNAME}/${PNAME}-1.4-target-resolv.patch
27     mirror://${PNAME}/${PNAME}-${PVER}-secfix.patch
28     mirror://${PNAME}/${PNAME}-${PVER}-configure-lang.patch
29     )
30    
31     # sed line 1.4a12 -> 1.4.a.12
32     UP2DATE="updatecmd ftp://ftp.ee.lbl.gov/ | grep ${PNAME}- | lasttarball gz | sed 's:\([a-Z]\):\.\1\.:'"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37     cd ${SRCDIR}
38    
39     mpatch ${PNAME}-1.4-target-resolv.patch || die
40    
41     # security fixes from redhat
42     mpatch ${PNAME}-${PVER}-secfix.patch || die
43    
44     # fixes LANG error with newer autotools
45     mpatch ${PNAME}-${PVER}-configure-lang.patch || die
46    
47     # support more arches
48     gnuconfig-update || die
49    
50     # fix to use linux as compile target by default
51     sed -i 's/t="generic"/t="linux"/g' configure.in || die
52    
53     # rebuild makefiles
54     WANT_AUTOCONF=2.1 autoreconf || die
55     }
56    
57     src_compile()
58     {
59     cd ${SRCDIR}
60    
61     # use non-lazy bindings for this suid app
62     export LDFLAGS="${LDFLAGS} -Wl,-z,now"
63    
64     mconfigure || die
65     mmake LIBS="${LDFLAGS}" || die
66     }
67    
68     src_install()
69     {
70     cd ${SRCDIR}
71    
72     # needed directories
73     minstalldir /usr/sbin || die
74    
75     make DESTDIR=${BINDIR} install || die
76    
77     # set suid
78     mchmod 4710 /usr/sbin/traceroute || die
79    
80     # install man page
81     minstallman traceroute.8 || die
82    
83     # docs
84     minstalldocs CHANGES FILES README VERSION || die
85     }

Properties

Name Value
svn:keywords Id