Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1743 - (show annotations) (download)
Sat May 23 21:56:57 2009 UTC (15 years ago) by niro
File size: 1558 byte(s)
auto added: ver bump to 5.0.4-r1
1 # $Id$
2
3 PNAME="dhcpcd"
4 PVER="5.0.4"
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 'Latest stable' | sed 's/.* \(.*\)/\1/'"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # redefine the location of the driftfile to meet fhs specs
33 sed -i "s:^\(#define NTPDRIFTFILE\).*:\1 \"/var/lib/ntp/ntp.drift\":" config.h || die
34
35 # disable zeroconf support
36 # we don't want get an automatic ip, only if really requested
37 cat >> dhcpcd.conf << EOF
38
39 # disabled zeroconf support - we don't want to get an APIPA-address automatically
40 noipv4ll
41 EOF
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47 mmake -j1 \
48 CFLAGS="${CFLAGS}" \
49 LDFLAGS="${LDFLAGS}" \
50 DBDIR=/var/lib/dhcpcd \
51 LIBEXECDIR=/lib/dhcpcd \
52 || die
53 }
54
55 src_install()
56 {
57 cd ${SRCDIR}
58
59 # hookscripts to install
60 local hooks="50-ntp.conf 50-yp.conf 50-dhcpcd-compat"
61
62 mmake DESTDIR=${BINDIR} \
63 DBDIR=/var/lib/dhcpcd \
64 LIBEXECDIR=/lib/dhcpcd \
65 HOOKSCRIPTS="${hooks}" \
66 install || die
67
68 # create dhcpcd status dir
69 mkeepdir /var/run/dhcpcd || die
70 mkeepdir /var/lib/dhcpcd || die
71
72 # create an empty ntp.conf to shutup warnings
73 memptyfile /etc/ntp.conf || die
74
75 minstalldocs ChangeLog || die
76 }

Properties

Name Value
svn:keywords Id