Contents of /branches/R11-unstable/core/dhcpcd/dhcpcd-6.9.0-r1.smage2
Parent Directory | Revision Log
Revision 24944 -
(show annotations)
(download)
Tue Nov 25 02:41:23 2014 UTC (9 years, 10 months ago) by niro
File size: 1485 byte(s)
Tue Nov 25 02:41:23 2014 UTC (9 years, 10 months ago) by niro
File size: 1485 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="dhcpcd" |
4 | PVER="6.9.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="net-misc" |
8 | |
9 | DESCRIPTION="dhcpcd is an implementation of the DHCP client specified in RFC2131." |
10 | HOMEPAGE="http://roy.marples.name/projects/dhcpcd/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | PROVIDE="virtual/dhcp" |
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 http://roy.marples.name/downloads/${PNAME}/ | grep '${PNAME}-' | highesttarball" |
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 | # fix /var/run -> /run |
41 | sed -i 's:/var/run:/run:g' \ |
42 | dhcpcd-hooks/50-yp.conf \ |
43 | dhcpcd-run-hooks.in \ |
44 | dhcpcd.8.in \ |
45 | || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | |
52 | mconfigure \ |
53 | --libexecdir=/usr/lib/dhcpcd \ |
54 | --localstatedir=/var \ |
55 | --rundir=/run \ |
56 | --dbdir=/var/lib/dhcpcd \ |
57 | --with-hook=ntp.conf \ |
58 | --with-hook=yp.conf \ |
59 | --with-hook=dhcpcd-compat \ |
60 | || die |
61 | |
62 | mmake || die |
63 | } |
64 | |
65 | src_install() |
66 | { |
67 | cd ${SRCDIR} |
68 | mmake DESTDIR=${BINDIR} install || die |
69 | |
70 | # create dhcpcd status dir |
71 | mkeepdir /var/run/dhcpcd || die |
72 | mkeepdir /var/lib/dhcpcd || die |
73 | |
74 | # create an empty ntp.conf to shutup warnings |
75 | memptyfile /etc/ntp.conf || die |
76 | |
77 | minstalldocs ChangeLog || die |
78 | } |