Contents of /trunk/core/dhcpcd/dhcpcd-5.2.12-r2.smage2
Parent Directory | Revision Log
Revision 10130 -
(show annotations)
(download)
Tue Jan 17 12:45:09 2012 UTC (12 years, 5 months ago) by niro
File size: 1463 byte(s)
Tue Jan 17 12:45:09 2012 UTC (12 years, 5 months ago) by niro
File size: 1463 byte(s)
-fixed /run in provided hooks and man-pages
1 | # $Id$ |
2 | |
3 | PNAME="dhcpcd" |
4 | PVER="5.2.12" |
5 | PBUILD="r2" |
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/dhcpcd" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mtools |
18 | |
19 | SRC_URI=( |
20 | http://roy.marples.name/downloads/${PNAME}/${SRCFILE} |
21 | mirror://${PNAME}/${SRCFILE} |
22 | ) |
23 | |
24 | UP2DATE="updatecmd ${HOMEPAGE}/wiki/DhcpcdDownload | grep 'Stable release' | sed 's/.* \(.*\)/\1/'" |
25 | |
26 | src_prepare() |
27 | { |
28 | munpack ${SRCFILE} || die |
29 | cd ${SRCDIR} |
30 | |
31 | # disable zeroconf support |
32 | # we don't want get an automatic ip, only if really requested |
33 | cat >> dhcpcd.conf << EOF |
34 | |
35 | # disabled zeroconf support - we don't want to get an APIPA-address automatically |
36 | noipv4ll |
37 | EOF |
38 | |
39 | # fix /var/run -> /run |
40 | sed -i 's:/var/run:/run:g' \ |
41 | dhcpcd-hooks/50-yp.conf \ |
42 | dhcpcd-run-hooks.in \ |
43 | dhcpcd.8.in \ |
44 | || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | |
51 | mconfigure \ |
52 | --prefix= \ |
53 | --libexecdir=/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 | } |