PKGBUILDs/core/dhcpcd/PKGBUILD

51 lines
1.5 KiB
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Tom Killian <tom.archlinux.org>
# Contributor: Judd Vinet <jvinet.zeroflux.org>
2009-09-26 15:21:59 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
pkgname=dhcpcd
pkgver=5.0.4
pkgrel=1
pkgdesc="RFC2131 compliant DHCP client daemon"
url="http://roy.marples.name/dhcpcd/"
arch=(arm)
license=('BSD')
#groups=('base')
2009-09-26 15:21:59 +00:00
depends=()
backup=('opt/etc/conf.d/dhcpcd' 'opt/etc/dhcpcd.conf')
options=('emptydirs')
2009-09-26 14:35:50 +00:00
source=("http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2" \
2009-09-26 18:58:38 +00:00
'dhcpcd.conf.d'
'Makefile')
2009-09-26 14:35:50 +00:00
md5sums=('0b920a8094ee3a8c16c973794561feef'
2009-09-26 18:58:38 +00:00
'372d33485556982b64a97f301e17c5dd'
'cc4f85ea0a4a59444c511d383792c813')
2009-09-26 14:35:50 +00:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# Build
2009-09-26 18:58:38 +00:00
rm Makefile
cp $srcdir/Makefile .
2009-09-26 14:35:50 +00:00
make || return 1
make DESTDIR=${pkgdir} install || return 1
# Create Binary Symlink
2009-09-26 15:21:59 +00:00
install -d ${pkgdir}/opt/sbin || return 1
# ln -sf opt/sbin/dhcpcd ${pkgdir}/opt/sbin/dhcpcd || return 1
2009-09-26 14:35:50 +00:00
# Install Configuration File used in /etc/rc.d/network
2009-09-26 15:21:59 +00:00
install -D -m644 ../dhcpcd.conf.d $pkgdir/opt/etc/conf.d/$pkgname || return 1
2009-09-26 14:35:50 +00:00
# Install License
2009-09-26 15:21:59 +00:00
install -d $pkgdir/opt/share/licenses/$pkgname || return 1
2009-09-26 14:35:50 +00:00
awk '{if(FNR<27)print $0}' ${srcdir}/${pkgname}-${pkgver}/config.h \
2009-09-26 15:21:59 +00:00
>> ${pkgdir}/opt/share/licenses/${pkgname}/LICENSE || return 1
2009-09-26 14:35:50 +00:00
# Make Man Pages FHS Compliant
2009-09-26 15:21:59 +00:00
mv -f ${pkgdir}/opt/man ${pkgdir}/opt/share/man || return 1
2009-09-26 14:35:50 +00:00
2009-09-26 15:21:59 +00:00
# Set Options in /opt/etc/dhcpcd.conf
echo noipv4ll >> ${pkgdir}/opt/etc/dhcpcd.conf || return 1
2009-09-26 14:35:50 +00:00
}