blob: 284e15eeeaa2e0da0c5c96857a964a4855eccde8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhcp
pkgver=4.1.0_p1
_realver=4.1.0p1
pkgrel=1
pkgdesc="ISC Dynamic Host Configuration Protocol (DHCP)"
url="https://www.isc.org/"
license="GPL"
depends=
makedepends=
install="dhcp.pre-install dhcp.pre-upgrade dhcp.post-upgrade"
subpackages="$pkgname-doc $pkgname-dev dhclient"
source="http://ftp.isc.org/isc/dhcp/$pkgname-$_realver.tar.gz
$install
dhcpd.confd
dhcpd.initd"
build() {
cd "$srcdir/$pkgname-$_realver"
./configure --prefix=/usr \
--sysconfdir=/etc/dhcp \
--with-cli-pid-file=/var/run/dhcp/dhclient.pid \
--with-cli-lease-file=/var/lib/dhcp/dhclient.leases \
--with-srv-pid-file=/var/run/dhcp/dhcpd.pid \
--with-srv-lease-file=/var/lib/dhcp/dhcpd.leases \
--with-relay-pid-file=/var/run/dhcp/dhcrelay.pid \
--enable-dhcpv6 \
--enable-paranoia \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/dhcpd.initd "$pkgdir"/etc/init.d/dhcpd
install -m644 -D "$srcdir"/dhcpd.confd "$pkgdir"/etc/conf.d/dhcpd
install -d "$pkgdir"/var/lib/dhcp
install -d "$pkgdir"/var/run/dhcp
}
dhclient() {
pkgdesc="ISC dhcp client"
install -d "$subpkgdir"/var/lib/dhcp
install -d "$subpkgdir"/var/run/dhcp
install -d "$subpkgdir"/usr/sbin
install -d "$subpkgdir"/etc/dhcp
mv "$pkgdir"/usr/sbin/dhclient "$subpkgdir"/usr/sbin/
mv "$pkgdir"/etc/dhcp/dhclient.conf "$subpkgdir"/etc/dhcp/
}
md5sums="325ff8338c5a21f89d5304ac13ffebdf dhcp-4.1.0p1.tar.gz
19b28380eaae7d26027c29b623aeee07 dhcp.pre-install
6cc49497f3c30ccd37fc7c032f7810c6 dhcp.pre-upgrade
36d562e5b0e55a36e4224fd7cb843f6a dhcp.post-upgrade
df32707f5bbe5363306420b5dc6e6b40 dhcpd.confd
6ed5ddba2b445ef60d27a8b7f5a0ee0b dhcpd.initd"
|