Contents of /smage/branches/alx-0_6_0/core/dhcpcd/dhcpcd-6.9.4-r2.smage2
Parent Directory
|
Revision Log
Revision 8036 -
(show annotations)
(download)
Tue Dec 29 16:04:22 2015 UTC (8 years, 5 months ago) by niro
File size: 1400 byte(s)
Tue Dec 29 16:04:22 2015 UTC (8 years, 5 months ago) by niro
File size: 1400 byte(s)
-fixed some directories
1 | # $Id$ |
2 | |
3 | PNAME="dhcpcd" |
4 | PVER="6.9.4" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="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.xz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools alx-split |
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}-[0-9]' | highesttarball xz" |
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 | |
41 | src_compile() |
42 | { |
43 | cd ${SRCDIR} |
44 | |
45 | mconfigure \ |
46 | --sbindir=/sbin \ |
47 | --libexecdir=/usr/lib/dhcpcd \ |
48 | --localstatedir=/var \ |
49 | --rundir=/var/run \ |
50 | --dbdir=/var/lib/dhcpcd \ |
51 | --with-hook=ntp.conf \ |
52 | --with-hook=yp.conf \ |
53 | --with-hook=dhcpcd-compat \ |
54 | || die |
55 | |
56 | mmake || die |
57 | } |
58 | |
59 | src_install() |
60 | { |
61 | cd ${SRCDIR} |
62 | mmake DESTDIR=${BINDIR} install || die |
63 | |
64 | # create dhcpcd status dir |
65 | mkeepdir /var/run/dhcpcd || die |
66 | mkeepdir /var/lib/dhcpcd || die |
67 | |
68 | # create an empty ntp.conf to shutup warnings |
69 | memptyfile /etc/ntp.conf || die |
70 | |
71 | minstalldocs ChangeLog || die |
72 | } |