summaryrefslogtreecommitdiff
path: root/cifs-utils
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2013-01-21 16:37:31 +0100
committerJuergen Daubert <jue@jue.li>2013-01-21 16:37:31 +0100
commit96f0425c1a32635ef04dd18d2da853b0e6e7ec20 (patch)
tree6451edc3fc2f6693f2c9d8a966a412b34bb52854 /cifs-utils
parent971004751b6d9f25dad7747b9a29f6bd8552b162 (diff)
downloadopt-96f0425c1a32635ef04dd18d2da853b0e6e7ec20.tar.gz
opt-96f0425c1a32635ef04dd18d2da853b0e6e7ec20.tar.xz
cifs-utils: add rc script
Diffstat (limited to 'cifs-utils')
-rw-r--r--cifs-utils/.footprint3
-rw-r--r--cifs-utils/.md5sum1
-rw-r--r--cifs-utils/Pkgfile5
-rw-r--r--cifs-utils/cifs23
4 files changed, 30 insertions, 2 deletions
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

Generated by cgit