diff options
author | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
---|---|---|
committer | James Meyer <James.meyer@operamail.com> | 2008-10-02 03:19:12 (GMT) |
commit | 0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch) | |
tree | c0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core-testing/etcnet/PKGBUILD | |
download | linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2 |
initial import
Diffstat (limited to 'abs/core-testing/etcnet/PKGBUILD')
-rwxr-xr-x | abs/core-testing/etcnet/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/abs/core-testing/etcnet/PKGBUILD b/abs/core-testing/etcnet/PKGBUILD new file mode 100755 index 0000000..798213e --- /dev/null +++ b/abs/core-testing/etcnet/PKGBUILD @@ -0,0 +1,39 @@ +pkgname=etcnet +pkgver=0.9.7 +pkgrel=2 +pkgdesc="/etc/net network configuration subsystem" +url="http://etcnet.org/" +depends=('bash' 'grep' 'sed' 'iproute' '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 ) + +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 + +#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 + + cd $startdir/src/$pkgname-$pkgver + rm -Rf etc/sysconfig etc/net/{README.ALT,TODO,ChangeLog,ifaces/unknown} + cp -Rf etc $startdir/pkg + +} |