/[gentoo-x86]/net-misc/udhcp/udhcp-0.9.9_pre20041216-r3.ebuild
Gentoo

Contents of /net-misc/udhcp/udhcp-0.9.9_pre20041216-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed May 13 04:05:07 2009 UTC (10 years, 6 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
remove net-misc/udhcp with solar's ack since they are dead and provided via other means

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/udhcp/udhcp-0.9.9_pre20041216-r3.ebuild,v 1.10 2006/11/12 04:19:02 vapier Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="udhcp Server/Client Package"
8 HOMEPAGE="http://udhcp.busybox.net/"
9 SRC_URI="mirror://gentoo/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc sparc x86"
14 IUSE=""
15
16 DEPEND="virtual/libc"
17 PROVIDE="virtual/dhcpc"
18
19 S="${WORKDIR}/${PN}"
20
21 pkg_setup() {
22 enewgroup dhcp
23 enewuser dhcp -1 -1 /var/lib/dhcp dhcp
24 }
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 # This patch adds the --env,-e option to udhcpc so we can pass the dhcp
31 # client some environment variables to pass to the script. We do this so
32 # the script knows mertric and whether to setup DNS, NTP and routers.
33 epatch "${FILESDIR}/${P}"-env.patch
34 }
35
36 src_compile() {
37 emake \
38 CROSS_COMPILE=${CHOST}- \
39 STRIP=true \
40 UDHCP_SYSLOG=1 \
41 || die
42 }
43
44 src_install() {
45 make STRIP=true install DESTDIR="${D}" USRSBINDIR="${D}/sbin" || die
46 newinitd "${FILESDIR}"/udhcp.rc udhcp
47 insinto /etc
48 doins samples/udhcpd.conf
49 dodoc AUTHORS ChangeLog README* TODO
50 newdoc samples/README README.scripts
51
52 # udhcpc setup script - the supplied ones don't work
53 # This does it supports resolvconf, metrics and whether to setup
54 # dns, ntp and routers. Requires the --env patch above.
55 exeinto /lib/rcscripts/sh
56 newexe "${FILESDIR}"/udhcpc.sh udhcpc.sh
57 }

  ViewVC Help
Powered by ViewVC 1.1.20