Contents of /trunk/core/dhcpcd/dhcpcd-5.2.12-r1.smage2
Parent Directory
|
Revision Log
Revision 10114 -
(show annotations)
(download)
Mon Jan 16 22:04:56 2012 UTC (12 years, 5 months ago) by niro
File size: 1313 byte(s)
Mon Jan 16 22:04:56 2012 UTC (12 years, 5 months ago) by niro
File size: 1313 byte(s)
-import from magellan-next
1 | # $Id$ |
2 | |
3 | PNAME="dhcpcd" |
4 | PVER="5.2.12" |
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/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 | |
40 | src_compile() |
41 | { |
42 | cd ${SRCDIR} |
43 | |
44 | mconfigure \ |
45 | --prefix= \ |
46 | --libexecdir=/lib/dhcpcd \ |
47 | --localstatedir=/var \ |
48 | --dbdir=/var/lib/dhcpcd \ |
49 | --with-hook=ntp.conf \ |
50 | --with-hook=yp.conf \ |
51 | --with-hook=dhcpcd-compat \ |
52 | || die |
53 | |
54 | mmake || die |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd ${SRCDIR} |
60 | mmake DESTDIR=${BINDIR} install || die |
61 | |
62 | # create dhcpcd status dir |
63 | mkeepdir /var/run/dhcpcd || die |
64 | mkeepdir /var/lib/dhcpcd || die |
65 | |
66 | # create an empty ntp.conf to shutup warnings |
67 | memptyfile /etc/ntp.conf || die |
68 | |
69 | minstalldocs ChangeLog || die |
70 | } |