Magellan Linux

Annotation of /branches/magellan-next/core/dhcpcd/dhcpcd-5.1.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5609 - (hide annotations) (download)
Tue Jul 13 07:15:00 2010 UTC (13 years, 10 months ago) by niro
Original Path: trunk/core/dhcpcd/dhcpcd-5.1.5-r1.smage2
File size: 1335 byte(s)
-ver bump to 5.1.5-r1; fixes bind issues with bridges
1 niro 5609 # $Id$
2    
3     PNAME="dhcpcd"
4     PVER="5.1.5"
5     PBUILD="r1"
6    
7     PCATEGORIE="net-misc"
8     STATE="unstable"
9    
10     DESCRIPTION="dhcpcd is an implementation of the DHCP client specified in RFC2131."
11     HOMEPAGE="http://roy.marples.name/dhcpcd"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.bz2"
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 ${HOMEPAGE}/wiki/DhcpcdDownload | grep 'Stable release' | sed 's/.* \(.*\)/\1/'"
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     --prefix= \
47     --libexecdir=/lib/dhcpcd \
48     --localstatedir=/var \
49     --dbdir=/var/lib/dhcpcd \
50     --with-hook=ntp.conf \
51     --with-hook=yp.conf \
52     --with-hook=dhcpcd-compat \
53     || die
54    
55     mmake || die
56     }
57    
58     src_install()
59     {
60     cd ${SRCDIR}
61     mmake DESTDIR=${BINDIR} install || die
62    
63     # create dhcpcd status dir
64     mkeepdir /var/run/dhcpcd || die
65     mkeepdir /var/lib/dhcpcd || die
66    
67     # create an empty ntp.conf to shutup warnings
68     memptyfile /etc/ntp.conf || die
69    
70     minstalldocs ChangeLog || die
71     }

Properties

Name Value
svn:keywords Id