From 96f0425c1a32635ef04dd18d2da853b0e6e7ec20 Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Mon, 21 Jan 2013 16:37:31 +0100 Subject: [PATCH] cifs-utils: add rc script --- cifs-utils/.footprint | 3 +++ cifs-utils/.md5sum | 1 + cifs-utils/Pkgfile | 5 +++-- cifs-utils/cifs | 23 +++++++++++++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 cifs-utils/cifs diff --git a/cifs-utils/.footprint b/cifs-utils/.footprint index ea3635a2e..d54e449d5 100644 --- a/cifs-utils/.footprint +++ b/cifs-utils/.footprint @@ -1,3 +1,6 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/cifs drwxr-xr-x root/root sbin/ -rwxr-xr-x root/root sbin/mount.cifs drwxr-xr-x root/root usr/ diff --git a/cifs-utils/.md5sum b/cifs-utils/.md5sum index ee1d6cf04..bda7b9647 100644 --- a/cifs-utils/.md5sum +++ b/cifs-utils/.md5sum @@ -1,2 +1,3 @@ +24c6eded8b4023e946223862709baf6c cifs 53d12c13345008e6252017c2735b18e5 cifs-utils-5.9-got_user.patch 7164ad6f7963a31fcbffbe4f14a7cfc6 cifs-utils-5.9.tar.bz2 diff --git a/cifs-utils/Pkgfile b/cifs-utils/Pkgfile index e93bb399b..f3e590317 100644 --- a/cifs-utils/Pkgfile +++ b/cifs-utils/Pkgfile @@ -5,9 +5,9 @@ name=cifs-utils version=5.9 -release=2 +release=3 source=(ftp://ftp.samba.org/pub/linux-cifs/$name/$name-$version.tar.bz2 - $name-$version-got_user.patch) + cifs $name-$version-got_user.patch) build () { cd $name-$version @@ -15,4 +15,5 @@ build () { ./configure --prefix=/usr --mandir=/usr/man make make DESTDIR=$PKG install + install -D -m 0755 $SRC/cifs $PKG/etc/rc.d/cifs } diff --git a/cifs-utils/cifs b/cifs-utils/cifs new file mode 100644 index 000000000..b7c187b84 --- /dev/null +++ b/cifs-utils/cifs @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/cifs: mount/umount cifs filesystems +# + +case $1 in +start) + /bin/mount -a -t cifs + ;; +stop) + /bin/umount -a -t cifs + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file