Magellan Linux

Contents of /trunk/core/dhcpcd/dhcpcd-5.0.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1368 - (show annotations) (download)
Mon May 4 21:13:55 2009 UTC (15 years ago) by niro
File size: 1362 byte(s)
auto added: ver bump to 5.0.1-r1
1 # $Id$
2
3 PNAME="dhcpcd"
4 PVER="5.0.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 SRC_URI=(
19 http://roy.marples.name/downloads/${PNAME}/${SRCFILE}
20 mirror://${PNAME}/${SRCFILE}
21 )
22
23 UP2DATE="updatecmd ${HOMEPAGE}/wiki/DhcpcdDownload | grep 'Latest stable' | sed 's/.* \(.*\)/\1/'"
24
25 src_prepare()
26 {
27 munpack ${SRCFILE} || die
28 cd ${SRCDIR}
29
30 # redefine the location of the driftfile to meet fhs specs
31 sed -i "s:^\(#define NTPDRIFTFILE\).*:\1 \"/var/lib/ntp/ntp.drift\":" config.h || die
32
33 # disable zeroconf support
34 # we don't want get an automatic ip, only if really requested
35 cat >> dhcpcd.conf << EOF
36
37 # disabled zeroconf support - we don't want to get an APIPA-address automatically
38 noipv4ll
39 EOF
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45 mmake -j1 \
46 CFLAGS="${CFLAGS}" \
47 LDFLAGS="${LDFLAGS}" \
48 DBDIR=/var/lib/dhcpcd \
49 LIBEXECDIR=/lib/dhcpcd \
50 || die
51 }
52
53 src_install()
54 {
55 cd ${SRCDIR}
56
57 # hookscripts to install
58 local hooks="50-ntp.conf 50-yp.conf 50-dhcpcd-compat"
59
60 mmake DESTDIR=${BINDIR} \
61 DBDIR=/var/lib/dhcpcd \
62 LIBEXECDIR=/lib/dhcpcd \
63 HOOKSCRIPTS="${hooks}"
64 install || die
65
66 minstalldocs ChangeLog || die
67 }

Properties

Name Value
svn:keywords Id