Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31530 - (show annotations) (download)
Fri Nov 30 07:09:21 2018 UTC (5 years, 4 months ago) by niro
File size: 1475 byte(s)
auto added: ver bump to 7.0.8-r1
1 # $Id$
2
3 PNAME="dhcpcd"
4 PVER="7.0.8"
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.xz"
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}-[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 # fix /var/run -> /run
41 sed -i 's:/var/run:/run:g' \
42 hooks/50-yp.conf \
43 hooks/dhcpcd-run-hooks.in \
44 || die
45 }
46
47 src_compile()
48 {
49 cd ${SRCDIR}
50
51 mconfigure \
52 --libexecdir=/usr/lib/dhcpcd \
53 --localstatedir=/var \
54 --rundir=/run \
55 --dbdir=/var/lib/dhcpcd \
56 --with-hook=ntp.conf \
57 --with-hook=yp.conf \
58 --with-hook=dhcpcd-compat \
59 || die
60
61 mmake || die
62 }
63
64 src_install()
65 {
66 cd ${SRCDIR}
67 mmake DESTDIR=${BINDIR} install || die
68
69 # create dhcpcd status dir
70 mkeepdir /var/run/dhcpcd || die
71 mkeepdir /var/lib/dhcpcd || die
72
73 # create an empty ntp.conf to shutup warnings
74 memptyfile /etc/ntp.conf || die
75
76 minstalldocs ChangeLog || die
77 }