[arch-commits] Commit in smbnetfs/repos (18 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 10:38:02 EDT 2013


    Date: Monday, May 13, 2013 @ 16:38:02
  Author: spupykin
Revision: 90723

archrelease: copy trunk to community-i686, community-x86_64

Added:
  smbnetfs/repos/community-i686/PKGBUILD
    (from rev 90722, smbnetfs/trunk/PKGBUILD)
  smbnetfs/repos/community-i686/conf-smbnetfs
    (from rev 90722, smbnetfs/trunk/conf-smbnetfs)
  smbnetfs/repos/community-i686/smbnetfs.install
    (from rev 90722, smbnetfs/trunk/smbnetfs.install)
  smbnetfs/repos/community-i686/smbnetfs.service
    (from rev 90722, smbnetfs/trunk/smbnetfs.service)
  smbnetfs/repos/community-x86_64/PKGBUILD
    (from rev 90722, smbnetfs/trunk/PKGBUILD)
  smbnetfs/repos/community-x86_64/conf-smbnetfs
    (from rev 90722, smbnetfs/trunk/conf-smbnetfs)
  smbnetfs/repos/community-x86_64/smbnetfs.install
    (from rev 90722, smbnetfs/trunk/smbnetfs.install)
  smbnetfs/repos/community-x86_64/smbnetfs.service
    (from rev 90722, smbnetfs/trunk/smbnetfs.service)
Deleted:
  smbnetfs/repos/community-i686/PKGBUILD
  smbnetfs/repos/community-i686/conf-smbnetfs
  smbnetfs/repos/community-i686/rc-smbnetfs
  smbnetfs/repos/community-i686/smbnetfs.install
  smbnetfs/repos/community-i686/smbnetfs.service
  smbnetfs/repos/community-x86_64/PKGBUILD
  smbnetfs/repos/community-x86_64/conf-smbnetfs
  smbnetfs/repos/community-x86_64/rc-smbnetfs
  smbnetfs/repos/community-x86_64/smbnetfs.install
  smbnetfs/repos/community-x86_64/smbnetfs.service

-----------------------------------+
 /PKGBUILD                         |   94 ++++++++++++++++++++++++++++++++++++
 /conf-smbnetfs                    |    2 
 /smbnetfs.install                 |   48 ++++++++++++++++++
 /smbnetfs.service                 |   26 +++++++++
 community-i686/PKGBUILD           |   44 ----------------
 community-i686/conf-smbnetfs      |    1 
 community-i686/rc-smbnetfs        |   52 -------------------
 community-i686/smbnetfs.install   |   24 ---------
 community-i686/smbnetfs.service   |   13 ----
 community-x86_64/PKGBUILD         |   44 ----------------
 community-x86_64/conf-smbnetfs    |    1 
 community-x86_64/rc-smbnetfs      |   52 -------------------
 community-x86_64/smbnetfs.install |   24 ---------
 community-x86_64/smbnetfs.service |   13 ----
 14 files changed, 170 insertions(+), 268 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-i686/PKGBUILD	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=smbnetfs
-pkgver=0.5.3a
-pkgrel=5
-pkgdesc="small C program that mounts Microsoft network neighborhood in single directory."
-arch=('i686' 'x86_64')
-url="http://smbnetfs.sourceforge.net/"
-license=('GPL')
-depends=('fuse' 'smbclient')
-backup=('etc/smbnetfs/.smb/smb.conf'
-	'etc/smbnetfs/.smb/smbnetfs.conf'
-	'etc/smbnetfs/.smb/smbnetfs.auth'
-	'etc/smbnetfs/.smb/smbnetfs.host')
-install=smbnetfs.install
-options=(docs)
-source=(http://downloads.sourceforge.net/smbnetfs/$pkgname-$pkgver.tar.bz2
-	rc-smbnetfs
-	conf-smbnetfs
-	smbnetfs.service)
-md5sums=('66d1477ca981f5a07b4b21c6bdbdc442'
-         'b6cff0ee75cafd739ad44216236b5e28'
-         'e150c4cd894cc6ade11b94c95cf17ec4'
-         '0fdd0dbaa5f16b1ecd00ec1ddcdfc223')
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --docdir=/usr/share/doc/smbnetfs --with-gnome-keyring=no
-  make
-  make DESTDIR=$pkgdir install
-
-  mv $pkgdir/usr/share/doc/smbnetfs* $pkgdir/usr/share/doc/smbnetfs
-
-  mkdir -p $pkgdir/etc/smbnetfs/.smb
-  install -m0644 $srcdir/$pkgname-$pkgver/conf/* $pkgdir/etc/smbnetfs/.smb/
-  install -Dm0644 $srcdir/$pkgname-$pkgver/README $pkgdir/usr/share/doc/smbnetfs/README
-  install -Dm0755 $srcdir/rc-smbnetfs $pkgdir/etc/rc.d/smbnetfs
-  install -Dm0644 $srcdir/conf-smbnetfs $pkgdir/etc/conf.d/smbnetfs
-  install -Dm0644 $srcdir/smbnetfs.service $pkgdir/usr/lib/systemd/system/smbnetfs.service
-  touch $pkgdir/etc/smbnetfs/.smb/smb.conf
-}

Copied: smbnetfs/repos/community-i686/PKGBUILD (from rev 90722, smbnetfs/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-05-13 14:38:02 UTC (rev 90723)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=smbnetfs
+pkgver=0.5.3a
+pkgrel=6
+pkgdesc="small C program that mounts Microsoft network neighborhood in single directory."
+arch=('i686' 'x86_64')
+url="http://smbnetfs.sourceforge.net/"
+license=('GPL')
+depends=('fuse' 'smbclient')
+backup=('etc/smbnetfs/.smb/smb.conf'
+	'etc/smbnetfs/.smb/smbnetfs.conf'
+	'etc/smbnetfs/.smb/smbnetfs.auth'
+	'etc/smbnetfs/.smb/smbnetfs.host')
+install=smbnetfs.install
+options=(docs)
+source=(http://downloads.sourceforge.net/smbnetfs/$pkgname-$pkgver.tar.bz2
+	conf-smbnetfs
+	smbnetfs.service)
+md5sums=('66d1477ca981f5a07b4b21c6bdbdc442'
+         'e150c4cd894cc6ade11b94c95cf17ec4'
+         '0fdd0dbaa5f16b1ecd00ec1ddcdfc223')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  sed -i 's|libsmbclient.h|samba-4.0/libsmbclient.h|g' \
+    src/smb_conn_srv.c src/smb_conn_proto.h src/function.c src/main.c src/event.c
+  [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --docdir=/usr/share/doc/smbnetfs --with-gnome-keyring=no
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+
+  make DESTDIR=$pkgdir install
+
+  mv $pkgdir/usr/share/doc/smbnetfs* $pkgdir/usr/share/doc/smbnetfs
+
+  mkdir -p $pkgdir/etc/smbnetfs/.smb
+  install -m0644 $srcdir/$pkgname-$pkgver/conf/* $pkgdir/etc/smbnetfs/.smb/
+  install -Dm0644 $srcdir/$pkgname-$pkgver/README $pkgdir/usr/share/doc/smbnetfs/README
+  install -Dm0644 $srcdir/conf-smbnetfs $pkgdir/etc/conf.d/smbnetfs
+  install -Dm0644 $srcdir/smbnetfs.service $pkgdir/usr/lib/systemd/system/smbnetfs.service
+  touch $pkgdir/etc/smbnetfs/.smb/smb.conf
+}

Deleted: community-i686/conf-smbnetfs
===================================================================
--- community-i686/conf-smbnetfs	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-i686/conf-smbnetfs	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1 +0,0 @@
-SMBNETFS_MOUNT_POINT=/mnt/smbnet

Copied: smbnetfs/repos/community-i686/conf-smbnetfs (from rev 90722, smbnetfs/trunk/conf-smbnetfs)
===================================================================
--- community-i686/conf-smbnetfs	                        (rev 0)
+++ community-i686/conf-smbnetfs	2013-05-13 14:38:02 UTC (rev 90723)
@@ -0,0 +1 @@
+SMBNETFS_MOUNT_POINT=/mnt/smbnet

Deleted: community-i686/rc-smbnetfs
===================================================================
--- community-i686/rc-smbnetfs	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-i686/rc-smbnetfs	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-. /etc/conf.d/smbnetfs
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
-	echo `pidof smbnetfs`
-}
-
-case "$1" in
-  start)
-    stat_busy "Starting smbnetfs"
-
-    [ -f /var/run/smbnetfs.pid ] && rm -f /var/run/smbnetfs.pid
-    PID=`get_pid`
-    if [ -z "$PID" ]; then
-      cd /tmp && \
-	[ -d $SMBNETFS_MOUNT_POINT ] && \
-	su - nobody -s /bin/bash -c "HOME=/etc/smbnetfs exec smbnetfs -o allow_other $SMBNETFS_MOUNT_POINT" &>/dev/null
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      else
-        echo `get_pid` > /var/run/smbnetfs.pid
-        add_daemon smbnetfs
-        stat_done
-      fi
-    else
-      stat_fail
-      exit 1
-    fi
-    ;;
-
-  stop)
-    stat_busy "Stopping smbnetfs"
-
-    fusermount -u $SMBNETFS_MOUNT_POINT &> /dev/null
-    rm -f /var/run/smbnetfs.pid &> /dev/null
-    rm_daemon smbnetfs
-    stat_done
-    ;;
-
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac
-exit 0

Deleted: community-i686/smbnetfs.install
===================================================================
--- community-i686/smbnetfs.install	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-i686/smbnetfs.install	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1,24 +0,0 @@
-post_install() {
-  echo "-- To use rc-script you should:"
-  echo "--   * set user_allow_other option in /etc/fuse.conf"
-
-  chown -R nobody.nobody /etc/smbnetfs/.smb && \
-  mkdir -p /mnt/smbnet && \
-  chown nobody.nobody /mnt/smbnet && \
-  chmod 0777 /mnt/smbnet
-}
-
-pre_upgrade() {
-  /etc/rc.d/smbnetfs stop 2>/dev/null 1>/dev/null
-  /bin/true
-}
-
-post_upgrade() {
-  echo "-- You should set user_allow_other option in /etc/fuse.conf to use rc-script"
-  echo "--   * set user_allow_other option in /etc/fuse.conf"
-
-  chown -R nobody.nobody /etc/smbnetfs/.smb && \
-  mkdir -p /mnt/smbnet && \
-  chown nobody.nobody /mnt/smbnet && \
-  chmod 0777 /mnt/smbnet
-}

Copied: smbnetfs/repos/community-i686/smbnetfs.install (from rev 90722, smbnetfs/trunk/smbnetfs.install)
===================================================================
--- community-i686/smbnetfs.install	                        (rev 0)
+++ community-i686/smbnetfs.install	2013-05-13 14:38:02 UTC (rev 90723)
@@ -0,0 +1,24 @@
+post_install() {
+  echo "-- To use rc-script you should:"
+  echo "--   * set user_allow_other option in /etc/fuse.conf"
+
+  chown -R nobody.nobody /etc/smbnetfs/.smb && \
+  mkdir -p /mnt/smbnet && \
+  chown nobody.nobody /mnt/smbnet && \
+  chmod 0777 /mnt/smbnet
+}
+
+pre_upgrade() {
+  /etc/rc.d/smbnetfs stop 2>/dev/null 1>/dev/null
+  /bin/true
+}
+
+post_upgrade() {
+  echo "-- You should set user_allow_other option in /etc/fuse.conf to use rc-script"
+  echo "--   * set user_allow_other option in /etc/fuse.conf"
+
+  chown -R nobody.nobody /etc/smbnetfs/.smb && \
+  mkdir -p /mnt/smbnet && \
+  chown nobody.nobody /mnt/smbnet && \
+  chmod 0777 /mnt/smbnet
+}

Deleted: community-i686/smbnetfs.service
===================================================================
--- community-i686/smbnetfs.service	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-i686/smbnetfs.service	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1,13 +0,0 @@
-[Unit]
-Description=Mount Samba Shares
-After=network.target
-
-[Service]
-Environment=HOME=/etc/smbnetfs SMBNETFS_MOUNT_POINT=/mnt/smbnet
-EnvironmentFile=/etc/conf.d/smbnetfs
-User=nobody
-ExecStart=/usr/bin/smbnetfs -f -o allow_other $SMBNETFS_MOUNT_POINT
-ExecStop=/bin/fusermount -u $SMBNETFS_MOUNT_POINT
-
-[Install]
-WantedBy=multi-user.target

Copied: smbnetfs/repos/community-i686/smbnetfs.service (from rev 90722, smbnetfs/trunk/smbnetfs.service)
===================================================================
--- community-i686/smbnetfs.service	                        (rev 0)
+++ community-i686/smbnetfs.service	2013-05-13 14:38:02 UTC (rev 90723)
@@ -0,0 +1,13 @@
+[Unit]
+Description=Mount Samba Shares
+After=network.target
+
+[Service]
+Environment=HOME=/etc/smbnetfs SMBNETFS_MOUNT_POINT=/mnt/smbnet
+EnvironmentFile=/etc/conf.d/smbnetfs
+User=nobody
+ExecStart=/usr/bin/smbnetfs -f -o allow_other $SMBNETFS_MOUNT_POINT
+ExecStop=/bin/fusermount -u $SMBNETFS_MOUNT_POINT
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-x86_64/PKGBUILD	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=smbnetfs
-pkgver=0.5.3a
-pkgrel=5
-pkgdesc="small C program that mounts Microsoft network neighborhood in single directory."
-arch=('i686' 'x86_64')
-url="http://smbnetfs.sourceforge.net/"
-license=('GPL')
-depends=('fuse' 'smbclient')
-backup=('etc/smbnetfs/.smb/smb.conf'
-	'etc/smbnetfs/.smb/smbnetfs.conf'
-	'etc/smbnetfs/.smb/smbnetfs.auth'
-	'etc/smbnetfs/.smb/smbnetfs.host')
-install=smbnetfs.install
-options=(docs)
-source=(http://downloads.sourceforge.net/smbnetfs/$pkgname-$pkgver.tar.bz2
-	rc-smbnetfs
-	conf-smbnetfs
-	smbnetfs.service)
-md5sums=('66d1477ca981f5a07b4b21c6bdbdc442'
-         'b6cff0ee75cafd739ad44216236b5e28'
-         'e150c4cd894cc6ade11b94c95cf17ec4'
-         '0fdd0dbaa5f16b1ecd00ec1ddcdfc223')
-
-build() {
-  cd $srcdir/$pkgname-$pkgver
-
-  [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --docdir=/usr/share/doc/smbnetfs --with-gnome-keyring=no
-  make
-  make DESTDIR=$pkgdir install
-
-  mv $pkgdir/usr/share/doc/smbnetfs* $pkgdir/usr/share/doc/smbnetfs
-
-  mkdir -p $pkgdir/etc/smbnetfs/.smb
-  install -m0644 $srcdir/$pkgname-$pkgver/conf/* $pkgdir/etc/smbnetfs/.smb/
-  install -Dm0644 $srcdir/$pkgname-$pkgver/README $pkgdir/usr/share/doc/smbnetfs/README
-  install -Dm0755 $srcdir/rc-smbnetfs $pkgdir/etc/rc.d/smbnetfs
-  install -Dm0644 $srcdir/conf-smbnetfs $pkgdir/etc/conf.d/smbnetfs
-  install -Dm0644 $srcdir/smbnetfs.service $pkgdir/usr/lib/systemd/system/smbnetfs.service
-  touch $pkgdir/etc/smbnetfs/.smb/smb.conf
-}

Copied: smbnetfs/repos/community-x86_64/PKGBUILD (from rev 90722, smbnetfs/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-05-13 14:38:02 UTC (rev 90723)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=smbnetfs
+pkgver=0.5.3a
+pkgrel=6
+pkgdesc="small C program that mounts Microsoft network neighborhood in single directory."
+arch=('i686' 'x86_64')
+url="http://smbnetfs.sourceforge.net/"
+license=('GPL')
+depends=('fuse' 'smbclient')
+backup=('etc/smbnetfs/.smb/smb.conf'
+	'etc/smbnetfs/.smb/smbnetfs.conf'
+	'etc/smbnetfs/.smb/smbnetfs.auth'
+	'etc/smbnetfs/.smb/smbnetfs.host')
+install=smbnetfs.install
+options=(docs)
+source=(http://downloads.sourceforge.net/smbnetfs/$pkgname-$pkgver.tar.bz2
+	conf-smbnetfs
+	smbnetfs.service)
+md5sums=('66d1477ca981f5a07b4b21c6bdbdc442'
+         'e150c4cd894cc6ade11b94c95cf17ec4'
+         '0fdd0dbaa5f16b1ecd00ec1ddcdfc223')
+
+build() {
+  cd $srcdir/$pkgname-$pkgver
+  sed -i 's|libsmbclient.h|samba-4.0/libsmbclient.h|g' \
+    src/smb_conn_srv.c src/smb_conn_proto.h src/function.c src/main.c src/event.c
+  [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --docdir=/usr/share/doc/smbnetfs --with-gnome-keyring=no
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+
+  make DESTDIR=$pkgdir install
+
+  mv $pkgdir/usr/share/doc/smbnetfs* $pkgdir/usr/share/doc/smbnetfs
+
+  mkdir -p $pkgdir/etc/smbnetfs/.smb
+  install -m0644 $srcdir/$pkgname-$pkgver/conf/* $pkgdir/etc/smbnetfs/.smb/
+  install -Dm0644 $srcdir/$pkgname-$pkgver/README $pkgdir/usr/share/doc/smbnetfs/README
+  install -Dm0644 $srcdir/conf-smbnetfs $pkgdir/etc/conf.d/smbnetfs
+  install -Dm0644 $srcdir/smbnetfs.service $pkgdir/usr/lib/systemd/system/smbnetfs.service
+  touch $pkgdir/etc/smbnetfs/.smb/smb.conf
+}

Deleted: community-x86_64/conf-smbnetfs
===================================================================
--- community-x86_64/conf-smbnetfs	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-x86_64/conf-smbnetfs	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1 +0,0 @@
-SMBNETFS_MOUNT_POINT=/mnt/smbnet

Copied: smbnetfs/repos/community-x86_64/conf-smbnetfs (from rev 90722, smbnetfs/trunk/conf-smbnetfs)
===================================================================
--- community-x86_64/conf-smbnetfs	                        (rev 0)
+++ community-x86_64/conf-smbnetfs	2013-05-13 14:38:02 UTC (rev 90723)
@@ -0,0 +1 @@
+SMBNETFS_MOUNT_POINT=/mnt/smbnet

Deleted: community-x86_64/rc-smbnetfs
===================================================================
--- community-x86_64/rc-smbnetfs	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-x86_64/rc-smbnetfs	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-. /etc/conf.d/smbnetfs
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
-	echo `pidof smbnetfs`
-}
-
-case "$1" in
-  start)
-    stat_busy "Starting smbnetfs"
-
-    [ -f /var/run/smbnetfs.pid ] && rm -f /var/run/smbnetfs.pid
-    PID=`get_pid`
-    if [ -z "$PID" ]; then
-      cd /tmp && \
-	[ -d $SMBNETFS_MOUNT_POINT ] && \
-	su - nobody -s /bin/bash -c "HOME=/etc/smbnetfs exec smbnetfs -o allow_other $SMBNETFS_MOUNT_POINT" &>/dev/null
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      else
-        echo `get_pid` > /var/run/smbnetfs.pid
-        add_daemon smbnetfs
-        stat_done
-      fi
-    else
-      stat_fail
-      exit 1
-    fi
-    ;;
-
-  stop)
-    stat_busy "Stopping smbnetfs"
-
-    fusermount -u $SMBNETFS_MOUNT_POINT &> /dev/null
-    rm -f /var/run/smbnetfs.pid &> /dev/null
-    rm_daemon smbnetfs
-    stat_done
-    ;;
-
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac
-exit 0

Deleted: community-x86_64/smbnetfs.install
===================================================================
--- community-x86_64/smbnetfs.install	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-x86_64/smbnetfs.install	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1,24 +0,0 @@
-post_install() {
-  echo "-- To use rc-script you should:"
-  echo "--   * set user_allow_other option in /etc/fuse.conf"
-
-  chown -R nobody.nobody /etc/smbnetfs/.smb && \
-  mkdir -p /mnt/smbnet && \
-  chown nobody.nobody /mnt/smbnet && \
-  chmod 0777 /mnt/smbnet
-}
-
-pre_upgrade() {
-  /etc/rc.d/smbnetfs stop 2>/dev/null 1>/dev/null
-  /bin/true
-}
-
-post_upgrade() {
-  echo "-- You should set user_allow_other option in /etc/fuse.conf to use rc-script"
-  echo "--   * set user_allow_other option in /etc/fuse.conf"
-
-  chown -R nobody.nobody /etc/smbnetfs/.smb && \
-  mkdir -p /mnt/smbnet && \
-  chown nobody.nobody /mnt/smbnet && \
-  chmod 0777 /mnt/smbnet
-}

Copied: smbnetfs/repos/community-x86_64/smbnetfs.install (from rev 90722, smbnetfs/trunk/smbnetfs.install)
===================================================================
--- community-x86_64/smbnetfs.install	                        (rev 0)
+++ community-x86_64/smbnetfs.install	2013-05-13 14:38:02 UTC (rev 90723)
@@ -0,0 +1,24 @@
+post_install() {
+  echo "-- To use rc-script you should:"
+  echo "--   * set user_allow_other option in /etc/fuse.conf"
+
+  chown -R nobody.nobody /etc/smbnetfs/.smb && \
+  mkdir -p /mnt/smbnet && \
+  chown nobody.nobody /mnt/smbnet && \
+  chmod 0777 /mnt/smbnet
+}
+
+pre_upgrade() {
+  /etc/rc.d/smbnetfs stop 2>/dev/null 1>/dev/null
+  /bin/true
+}
+
+post_upgrade() {
+  echo "-- You should set user_allow_other option in /etc/fuse.conf to use rc-script"
+  echo "--   * set user_allow_other option in /etc/fuse.conf"
+
+  chown -R nobody.nobody /etc/smbnetfs/.smb && \
+  mkdir -p /mnt/smbnet && \
+  chown nobody.nobody /mnt/smbnet && \
+  chmod 0777 /mnt/smbnet
+}

Deleted: community-x86_64/smbnetfs.service
===================================================================
--- community-x86_64/smbnetfs.service	2013-05-13 14:37:35 UTC (rev 90722)
+++ community-x86_64/smbnetfs.service	2013-05-13 14:38:02 UTC (rev 90723)
@@ -1,13 +0,0 @@
-[Unit]
-Description=Mount Samba Shares
-After=network.target
-
-[Service]
-Environment=HOME=/etc/smbnetfs SMBNETFS_MOUNT_POINT=/mnt/smbnet
-EnvironmentFile=/etc/conf.d/smbnetfs
-User=nobody
-ExecStart=/usr/bin/smbnetfs -f -o allow_other $SMBNETFS_MOUNT_POINT
-ExecStop=/bin/fusermount -u $SMBNETFS_MOUNT_POINT
-
-[Install]
-WantedBy=multi-user.target

Copied: smbnetfs/repos/community-x86_64/smbnetfs.service (from rev 90722, smbnetfs/trunk/smbnetfs.service)
===================================================================
--- community-x86_64/smbnetfs.service	                        (rev 0)
+++ community-x86_64/smbnetfs.service	2013-05-13 14:38:02 UTC (rev 90723)
@@ -0,0 +1,13 @@
+[Unit]
+Description=Mount Samba Shares
+After=network.target
+
+[Service]
+Environment=HOME=/etc/smbnetfs SMBNETFS_MOUNT_POINT=/mnt/smbnet
+EnvironmentFile=/etc/conf.d/smbnetfs
+User=nobody
+ExecStart=/usr/bin/smbnetfs -f -o allow_other $SMBNETFS_MOUNT_POINT
+ExecStop=/bin/fusermount -u $SMBNETFS_MOUNT_POINT
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list