Magellan Linux

Annotation of /trunk/core/dhcpcd/dhcpcd-5.1.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3196 - (hide annotations) (download)
Wed Oct 14 14:39:38 2009 UTC (14 years, 11 months ago) by niro
File size: 1336 byte(s)
auto added: ver bump to 5.1.1-r1
1 niro 3195 # $Id$
2    
3     PNAME="dhcpcd"
4     PVER="5.1.1"
5     PBUILD="r1"
6    
7     PCATEGORIE="net-misc"
8     STATE="unstable"
9    
10     DESCRIPTION="dhcpcd is an implementation of the DHCP client specified in RFC2131."
11     HOMEPAGE="http://roy.marples.name/dhcpcd"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.bz2"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     sminclude mtools
19    
20     SRC_URI=(
21     http://roy.marples.name/downloads/${PNAME}/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2DATE="updatecmd ${HOMEPAGE}/wiki/DhcpcdDownload | grep 'Stable release' | sed 's/.* \(.*\)/\1/'"
26    
27     src_prepare()
28     {
29     munpack ${SRCFILE} || die
30     cd ${SRCDIR}
31    
32     # disable zeroconf support
33     # we don't want get an automatic ip, only if really requested
34     cat >> dhcpcd.conf << EOF
35    
36     # disabled zeroconf support - we don't want to get an APIPA-address automatically
37     noipv4ll
38     EOF
39     }
40    
41     src_compile()
42     {
43     cd ${SRCDIR}
44 niro 3196
45     mconfigure \
46     --prefix= \
47     --libexecdir=/lib/dhcpcd \
48     --localstatedir=/var \
49     --dbdir=/var/lib/dhcpcd \
50     --with-hook=ntp.conf \
51     --with-hook=yp.conf \
52     --with-hook=dhcpcd-compat \
53 niro 3195 || die
54 niro 3196
55     mmake || die
56 niro 3195 }
57    
58     src_install()
59     {
60     cd ${SRCDIR}
61    
62 niro 3196 mmake DESTDIR=${BINDIR} install || die
63 niro 3195
64     # create dhcpcd status dir
65     mkeepdir /var/run/dhcpcd || die
66     mkeepdir /var/lib/dhcpcd || die
67    
68     # create an empty ntp.conf to shutup warnings
69     memptyfile /etc/ntp.conf || die
70    
71     minstalldocs ChangeLog || die
72     }

Properties

Name Value
svn:keywords Id