diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/etcnet/PKGBUILD | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/core/etcnet/PKGBUILD')
-rwxr-xr-x | abs/core/etcnet/PKGBUILD | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/abs/core/etcnet/PKGBUILD b/abs/core/etcnet/PKGBUILD index 798213e..e9ac4f4 100755 --- a/abs/core/etcnet/PKGBUILD +++ b/abs/core/etcnet/PKGBUILD @@ -1,39 +1,37 @@ pkgname=etcnet -pkgver=0.9.7 -pkgrel=2 +pkgver=0.9.8 +pkgrel=13 pkgdesc="/etc/net network configuration subsystem" url="http://etcnet.org/" -depends=('bash' 'grep' 'sed' 'iproute' 'wireless_tools' 'iptables' 'dhcpcd') +depends=('bash' 'grep' 'sed' 'iproute2' 'wireless_tools' 'iptables' 'dhcpcd') arch=i686 install=etcnet.install source=(http://etcnet.org/files/$pkgname-$pkgver.tar.gz 10-defaults network functions.patch options ipv4route ipv4address ) +#backup=(etc/net/ifaces/eth0/options etc/net/ifaces/eth0/ipv4route etc/net/ifaces/eth0/ipv4address) build() { cd $startdir/src/$pkgname-$pkgver mkdir -p $startdir/pkg/var/lib/etcnet mkdir -p $startdir/pkg/etc/sysconfig - - - - - - #cp $startdir/src/functions.patch ./etc/net cd etc/net - patch -p0 < $startdir/src/functions.patch - - - install -D -m 644 $startdir/src/10-defaults $startdir/pkg/etc/net/options.d/10-defaults - install -D -m 644 $startdir/src/network $startdir/pkg/etc/sysconfig/network -# install -D -m 644 ../options $startdir/pkg/etc/net/ifaces/default/options + patch -p0 < $startdir/src/functions.patch || return 1 + + install -D -m 644 $startdir/src/10-defaults $startdir/pkg/etc/net/options.d/10-defaults + install -D -m 644 $startdir/src/network $startdir/pkg/etc/sysconfig/network + cp -rp $startdir/src/$pkgname-$pkgver/docs $startdir/pkg/etc/net + cp -rp $startdir/src/$pkgname-$pkgver/examples $startdir/pkg/etc/net -#setup default for eth0 + #setup default for eth0 mkdir -p $startdir/pkg/etc/net/ifaces/eth0 - cp $startdir/src/options $startdir/pkg/etc/net/ifaces/eth0/options - cp $startdir/src/ipv4route $startdir/pkg/etc/net/ifaces/eth0/ipv4route - cp $startdir/src/ipv4address $startdir/pkg/etc/net/ifaces/eth0/ipv4address +# cp $startdir/src/options $startdir/pkg/etc/net/ifaces/eth0/options +# cp $startdir/src/ipv4route $startdir/pkg/etc/net/ifaces/eth0/ipv4route +# cp $startdir/src/ipv4address $startdir/pkg/etc/net/ifaces/eth0/ipv4address cd $startdir/src/$pkgname-$pkgver rm -Rf etc/sysconfig etc/net/{README.ALT,TODO,ChangeLog,ifaces/unknown} cp -Rf etc $startdir/pkg + cd $startdir/pkg/etc/net/scripts + ln -s ifup-ifplugd ifup-wireless + ln -s ifdown-ifplugd ifdown-wireless } |