Magellan Linux

Contents of /branches/magellan-next/core/dhcpcd/dhcpcd-5.2.12-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7609 - (show annotations) (download)
Fri May 27 19:18:27 2011 UTC (12 years, 11 months ago) by niro
File size: 1336 byte(s)
auto added: ver bump to 5.2.12-r1
1 # $Id$
2
3 PNAME="dhcpcd"
4 PVER="5.2.12"
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
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 || die
54
55 mmake || die
56 }
57
58 src_install()
59 {
60 cd ${SRCDIR}
61 mmake DESTDIR=${BINDIR} install || die
62
63 # create dhcpcd status dir
64 mkeepdir /var/run/dhcpcd || die
65 mkeepdir /var/lib/dhcpcd || die
66
67 # create an empty ntp.conf to shutup warnings
68 memptyfile /etc/ntp.conf || die
69
70 minstalldocs ChangeLog || die
71 }