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

Contents of /net-misc/dhcp/dhcp-3.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Dec 29 23:55:38 2002 UTC (16 years, 11 months ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
New 3.0_p1 version (just a rename of 3.0-r4 to fix version to proper name) and cleanups

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

  ViewVC Help
Powered by ViewVC 1.1.20