diff options
-rwxr-xr-x | abs/extra-testing/autofs/PKGBUILD | 10 | ||||
-rwxr-xr-x | abs/extra-testing/autofs/finish | 5 | ||||
-rwxr-xr-x | abs/extra-testing/autofs/run | 8 |
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 |