Magellan Linux

Annotation of /trunk/core/dhcpcd/dhcpcd-7.0.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30475 - (hide annotations) (download)
Wed Jan 24 14:06:39 2018 UTC (6 years, 3 months ago) by niro
File size: 1492 byte(s)
auto added: ver bump to 7.0.0-r1
1 niro 30475 # $Id$
2    
3     PNAME="dhcpcd"
4     PVER="7.0.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.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     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     }