summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2010-07-08 16:56:34 (GMT)
committerBritney Fransen <brfransen@gmail.com>2010-07-08 16:56:34 (GMT)
commit857cd6061fd90c5a282ac466eea68e629b126650 (patch)
tree862606835a7c7031dfcda2405ffdacb9a2983cc4 /abs
parent6d858ed1e73247459a32ca4360e3aa47e63a04a5 (diff)
downloadlinhes_pkgbuild-857cd6061fd90c5a282ac466eea68e629b126650.zip
linhes_pkgbuild-857cd6061fd90c5a282ac466eea68e629b126650.tar.gz
linhes_pkgbuild-857cd6061fd90c5a282ac466eea68e629b126650.tar.bz2
autofs: add finish file to unload autofs4 kernel module and add stat msgs to run file
Diffstat (limited to 'abs')
-rwxr-xr-xabs/extra-testing/autofs/PKGBUILD10
-rwxr-xr-xabs/extra-testing/autofs/finish5
-rwxr-xr-xabs/extra-testing/autofs/run8
3 files changed, 18 insertions, 5 deletions
diff --git a/abs/extra-testing/autofs/PKGBUILD b/abs/extra-testing/autofs/PKGBUILD
index a06e83d..2eb0592 100755
--- a/abs/extra-testing/autofs/PKGBUILD
+++ b/abs/extra-testing/autofs/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=autofs
pkgver=5.0.4
-pkgrel=6
+pkgrel=7
pkgdesc="A kernel-based automounter for Linux."
arch=('i686' 'x86_64')
url="http://wiki.autofs.net/FrontPage"
@@ -15,7 +15,7 @@ backup=(etc/autofs/auto.master etc/autofs/auto.misc etc/conf.d/autofs)
install=autofs.install
source=("http://www.kernel.org/pub/linux/daemons/${pkgname}/v5/${pkgname}-${pkgver}.tar.bz2"
'autofs.conf.d' 'auto.master' 'auto.misc'
- 'heimdal.patch' 'run' 'log.run')
+ 'heimdal.patch' 'run' 'log.run' 'finish')
build() {
export MAKEFLAGS="-j1"
@@ -41,6 +41,7 @@ build() {
mkdir -p ${pkgdir}/etc/sv/autofs/supervise
mkdir -p ${pkgdir}/etc/sv/autofs/log/supervise
install -D -m 744 ${srcdir}/run ${pkgdir}/etc/sv/autofs
+ install -D -m 744 ${srcdir}/finish ${pkgdir}/etc/sv/autofs
install -D -m 744 ${srcdir}/log.run ${pkgdir}/etc/sv/autofs/log/run
}
# vim: ts=2 sw=2 et ft=sh
@@ -50,5 +51,6 @@ md5sums=('2646dde61edd08dd952255558c733c08'
'a6cefb591e77b31b79dbb7243646c96b'
'd8a15ec9186c5c0b36e5cea1e2739e8a'
'1ee4825e26ad72bfe86acec3d3da5d2a'
- 'de5341a56e0c6c5ec89ed361f9107b3b'
- '518e277f960a1af837ba6c5cca13c615')
+ 'b3753d1611467ea212d1aa4df82cfd80'
+ '518e277f960a1af837ba6c5cca13c615'
+ '428ebd2972001dc92f5b479089a5dc53')
diff --git a/abs/extra-testing/autofs/finish b/abs/extra-testing/autofs/finish
new file mode 100755
index 0000000..db1dee6
--- /dev/null
+++ b/abs/extra-testing/autofs/finish
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+
+set -e # barf if modprobe fails
+/sbin/modprobe -r autofs4
diff --git a/abs/extra-testing/autofs/run b/abs/extra-testing/autofs/run
index 7d146fc..e394e5f 100755
--- a/abs/extra-testing/autofs/run
+++ b/abs/extra-testing/autofs/run
@@ -1,8 +1,14 @@
#!/bin/sh
exec 2>&1
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+stat_runit "Starting autofs4 kernel module"
set -e # barf if modprobe fails
/sbin/modprobe autofs4
-#exec /etc/rc.d/autofs start
+
+stat_runit "Starting autofs automount"
# source application-specific settings
[ -f /etc/conf.d/autofs ] && . /etc/conf.d/autofs