Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 286 - (show annotations) (download)
Thu Dec 18 22:28:28 2008 UTC (15 years, 4 months ago) by niro
File size: 1033 byte(s)
-fixed UP2DATE Uri
1 # $Header: /magellan-cvs/smage/dhcpcd/dhcpcd-3.2.1-r1.smage2,v 1.5 2008/02/10 16:36:58 niro Exp $
2
3 PNAME="dhcpcd"
4 PVER="4.0.1"
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 SRC_URI=(
19 http://roy.marples.name/downloads/${PNAME}/${SRCFILE}
20 mirror://${PNAME}/${SRCFILE}
21 )
22
23 UP2DATE="updatecmd ${HOMEPAGE}/wiki/DhcpcdDownload | grep 'Latest stable' | sed 's/.* \(.*\)/\1/'"
24
25 src_prepare()
26 {
27 munpack ${SRCFILE} || die
28 cd ${SRCDIR}
29
30 # redefine the location of the driftfile to meet fhs specs
31 sed -i "s:^\(#define NTPDRIFTFILE\).*:\1 \"/var/lib/ntp/ntp.drift\":" config.h || die
32
33 }
34
35 src_compile()
36 {
37 cd ${SRCDIR}
38 mmake -j1 CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" INFODIR=/var/lib/dhcpcd || die
39 }
40
41 src_install()
42 {
43 cd ${SRCDIR}
44
45 mmake DESTDIR=${BINDIR} install || die
46 minstalldocs ChangeLog || die
47 }

Properties

Name Value
svn:keywords Id