summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/etcnet
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-01-26 21:24:08 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-01-26 21:24:08 (GMT)
commit4823e05ad1b2c8adfc191f31d3fe535df1326571 (patch)
tree2908302bfb3ed915c9ef009fb078320251a6f049 /abs/core-testing/etcnet
parent4c9c4297f2f3fe5275ac24239cb8bfb3fb294923 (diff)
downloadlinhes_pkgbuild-4823e05ad1b2c8adfc191f31d3fe535df1326571.zip
linhes_pkgbuild-4823e05ad1b2c8adfc191f31d3fe535df1326571.tar.gz
linhes_pkgbuild-4823e05ad1b2c8adfc191f31d3fe535df1326571.tar.bz2
Create /var/locl/subsys for etcnet
Diffstat (limited to 'abs/core-testing/etcnet')
-rwxr-xr-xabs/core-testing/etcnet/PKGBUILD2
-rwxr-xr-xabs/core-testing/etcnet/etcnet.install11
2 files changed, 10 insertions, 3 deletions
diff --git a/abs/core-testing/etcnet/PKGBUILD b/abs/core-testing/etcnet/PKGBUILD
index 7d3ce37..37e9f33 100755
--- a/abs/core-testing/etcnet/PKGBUILD
+++ b/abs/core-testing/etcnet/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=etcnet
pkgver=0.9.7
-pkgrel=3
+pkgrel=5
pkgdesc="/etc/net network configuration subsystem"
url="http://etcnet.org/"
depends=('bash' 'grep' 'sed' 'iproute' 'wireless_tools' 'iptables' 'dhcpcd')
diff --git a/abs/core-testing/etcnet/etcnet.install b/abs/core-testing/etcnet/etcnet.install
index 2605e95..a8b8b17 100755
--- a/abs/core-testing/etcnet/etcnet.install
+++ b/abs/core-testing/etcnet/etcnet.install
@@ -4,7 +4,11 @@
# arg 1: the new package version
pre_install() {
/bin/cp -Rf /etc/net /etc/net.pacsave >/dev/null 2>&1
- /bin/true
+ if [ ! -d /var/lock/subsys ]
+ then
+ mkdir -p /var/lock/subsys
+ fi
+
}
# arg 1: the new package version
@@ -17,7 +21,10 @@ post_install() {
# arg 2: the old package version
pre_upgrade() {
/bin/cp -Rf /etc/net /etc/net.pacsave >/dev/null 2>&1
- /bin/true
+ if [ ! -d /var/lock/subsys ]
+ then
+ mkdir -p /var/lock/subsys
+ fi
}
# arg 1: the new package version