/[gentoo-x86]/net-misc/dhcp/dhcp-3.0_rc12-r6.ebuild
Gentoo

Contents of /net-misc/dhcp/dhcp-3.0_rc12-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Feb 14 18:58:48 2002 UTC (17 years, 9 months ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
new dhcp release.

1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author Achim Gottinger <achim@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/net-misc/dhcp/dhcp-3.0_rc12-r6.ebuild,v 1.1 2001/09/09 09:09:08 woodchip Exp $
5
6 P=dhcp-3.0rc12
7 A=${P}.tar.gz
8 S=${WORKDIR}/${P}
9 DESCRIPTION="ISC Dynamic Host Configuration Protocol"
10 SRC_URI="ftp://ftp.isc.org/isc/dhcp/${A}"
11 HOMEPAGE="http://www.isc.org/products/DHCP"
12
13 DEPEND="virtual/glibc sys-apps/groff"
14 RDEPEND="virtual/glibc"
15
16 src_unpack() {
17
18 unpack ${A}
19 cd ${S}/includes
20 cat <<- END >> site.h
21 #define _PATH_DHCPD_CONF "/etc/dhcp/dhcpd.conf"
22 #define _PATH_DHCLIENT_DB "/var/lib/dhcp/dhclient.leases"
23 #define _PATH_DHCPD_DB "/var/lib/dhcp/dhcpd.leases"
24 END
25 }
26
27 src_compile() {
28
29 cat <<- END > site.conf
30 CC = gcc ${CFLAGS}
31 ETC = /etc/dhcp
32 VARDB = /var/lib/dhcp
33 ADMMANDIR = /usr/share/man/man8
34 FFMANDIR = /usr/share/man/man5
35 LIBMANDIR = /usr/share/man/man3
36 END
37
38 ./configure --with-nsupdate || die
39 make || die
40 }
41
42 src_install2() {
43
44 # hmm is this misbehaving outside of the tempdir?
45 try make DESTDIR=${D} install
46 }
47
48 src_install() {
49
50 dodir /var/lib/dhcp
51
52 cd ${S}/work.linux-2.2/client
53 into / ; dosbin dhclient
54 into /usr ; doman *.5 *.8
55
56 cd ../dhcpctl ; dolib libdhcpctl.a ; doman *.3
57 insinto /usr/include ; doins dhcpctl.h
58
59 cd ../omapip ; dolib libomapi.a ; doman *.3
60 cd ../relay ; dosbin dhcrelay ; doman *.8
61 cd ../common ; doman *.5
62 cd ../server ; dosbin dhcpd ; doman *.5 *.8
63
64 cd ${S}/client
65 # admins might wanna edit dhclient-script, so /etc is proper for it.
66 dosed "s:/etc/dhclient-script:/etc/dhcp/dhclient-script:" dhclient.conf
67 insinto /etc/dhcp ; newins dhclient.conf dhclient.conf.sample
68 exeinto /etc/dhcp ; newexe scripts/linux dhclient-script.sample
69
70 cd ${S}/server
71 insinto /etc/dhcp ; newins dhcpd.conf dhcpd.conf.sample
72
73 cd ${S}/includes/omapip
74 insinto /usr/include/omapip ; doins alloc.h buffer.h omapip.h
75
76 cd ${S}/includes/isc-dhcp
77 insinto /usr/include/isc-dhcp
78 doins boolean.h dst.h int.h lang.h list.h result.h types.h
79
80 cd ${S}
81 dodoc ANONCVS CHANGES COPYRIGHT README RELNOTES
82 newdoc client/dhclient.conf dhclient.conf.sample
83 newdoc client/scripts/linux dhclient-script.sample
84 newdoc server/dhcpd.conf dhcpd.conf.sample
85 docinto doc ; dodoc doc/*
86
87 exeinto /etc/init.d
88 newexe ${FILESDIR}/dhcp.rc6 dhcp
89 }

  ViewVC Help
Powered by ViewVC 1.1.20