wok-next rev 7323

autofs: add /etc/init.d/autofs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 18 09:56:09 2010 +0100 (2010-11-18)
parents 117d9c496784
children bea570b9faaa
files autofs/receipt autofs/stuff/etc/auto.master autofs/stuff/etc/auto.misc autofs/stuff/etc/init.d/autofs linux-autofs/receipt linux/stuff/linux-2.6.36-slitaz.config
line diff
     1.1 --- a/autofs/receipt	Thu Nov 18 01:05:32 2010 +0000
     1.2 +++ b/autofs/receipt	Thu Nov 18 09:56:09 2010 +0100
     1.3 @@ -8,6 +8,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.5  WEB_SITE="http://www.kernel.org/pub/linux/daemons/autofs/v5"
     1.6  WGET_URL="$WEB_SITE/$TARBALL"
     1.7 +DEPENDS="linux-autofs"
     1.8  TAGS="filesystem"
     1.9  
    1.10  # Rules to configure and make the package.
    1.11 @@ -29,3 +30,9 @@
    1.12  	cp -a $_pkg/usr/sbin $fs/usr
    1.13  	cp -a $_pkg/usr/lib $fs/usr
    1.14  }
    1.15 +
    1.16 +# Pre and post install commands for Tazpkg.
    1.17 +post_install()
    1.18 +{
    1.19 +	mkdir -p $1/mnt/auto 2> /dev/null
    1.20 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/autofs/stuff/etc/auto.master	Thu Nov 18 09:56:09 2010 +0100
     2.3 @@ -0,0 +1,1 @@
     2.4 +/mnt/auto   /etc/auto.misc  --timeout=60
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/autofs/stuff/etc/auto.misc	Thu Nov 18 09:56:09 2010 +0100
     3.3 @@ -0,0 +1,2 @@
     3.4 +floppy	-fstype=auto,rw,sync	:/dev/fd0
     3.5 +cdrom	-fstype=iso9660,ro	:/dev/cdrom
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/autofs/stuff/etc/init.d/autofs	Thu Nov 18 09:56:09 2010 +0100
     4.3 @@ -0,0 +1,57 @@
     4.4 +#!/bin/sh
     4.5 +# /etc/init.d/autofs : Start, stop and restart automounter on SliTaz, at 
     4.6 +# boot time or with the command line.
     4.7 +#
     4.8 +# To start automounter at boot time, just put dropbear in the $RUN_DAEMONS
     4.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf
    4.10 +#
    4.11 +. /etc/init.d/rc.functions
    4.12 +. /etc/daemons.conf
    4.13 +
    4.14 +NAME=Automount
    4.15 +DESC="Automount server"
    4.16 +DAEMON=/usr/sbin/automount
    4.17 +OPTIONS=$AUTOMOUNT_OPTIONS
    4.18 +PIDFILE=/var/run/automount.pid
    4.19 +
    4.20 +case "$1" in
    4.21 +  start)
    4.22 +    if active_pidfile $PIDFILE automount ; then
    4.23 +      echo "$NAME already running."
    4.24 +      exit 1
    4.25 +    fi
    4.26 +    echo -n "Starting $DESC: $NAME... "
    4.27 +    modprobe autofs4
    4.28 +    $DAEMON $OPTIONS
    4.29 +    status
    4.30 +    ;;
    4.31 +  stop)
    4.32 +    if ! active_pidfile $PIDFILE automount ; then
    4.33 +      echo "$NAME is not running."
    4.34 +      exit 1
    4.35 +    fi
    4.36 +    echo -n "Stopping $DESC: $NAME... "
    4.37 +    kill `cat $PIDFILE`
    4.38 +    rmmod autofs4
    4.39 +    status
    4.40 +    ;;
    4.41 +  restart)
    4.42 +    if ! active_pidfile $PIDFILE automount ; then
    4.43 +      echo "$NAME is not running."
    4.44 +      exit 1
    4.45 +    fi
    4.46 +    echo -n "Restarting $DESC: $NAME... "
    4.47 +    kill `cat $PIDFILE`
    4.48 +    sleep 2
    4.49 +    $DAEMON $OPTIONS
    4.50 +    status
    4.51 +    ;;
    4.52 +  *)
    4.53 +    echo ""
    4.54 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    4.55 +    echo ""
    4.56 +    exit 1
    4.57 +    ;;
    4.58 +esac
    4.59 +
    4.60 +exit 0
     5.1 --- a/linux-autofs/receipt	Thu Nov 18 01:05:32 2010 +0000
     5.2 +++ b/linux-autofs/receipt	Thu Nov 18 09:56:09 2010 +0100
     5.3 @@ -18,7 +18,7 @@
     5.4      mkdir -p $fs/$path $fs/etc
     5.5      export src
     5.6      export _pkg
     5.7 -    $src/slitaz/list_modules.sh fs/autofs | while read module; do
     5.8 +    $src/slitaz/list_modules.sh fs/autofs4 | while read module; do
     5.9      	dir=$path/$(dirname $module)
    5.10      	[ -d $fs/$dir ] || mkdir -p $fs/$dir
    5.11          cp -a $_pkg/$path/$module $fs/$dir
     6.1 --- a/linux/stuff/linux-2.6.36-slitaz.config	Thu Nov 18 01:05:32 2010 +0000
     6.2 +++ b/linux/stuff/linux-2.6.36-slitaz.config	Thu Nov 18 09:56:09 2010 +0100
     6.3 @@ -3185,7 +3185,7 @@
     6.4  # CONFIG_JFS_STATISTICS is not set
     6.5  CONFIG_FS_POSIX_ACL=y
     6.6  CONFIG_XFS_FS=y
     6.7 -# CONFIG_XFS_QUOTA is not set
     6.8 +CONFIG_XFS_QUOTA=y
     6.9  CONFIG_XFS_POSIX_ACL=y
    6.10  # CONFIG_XFS_RT is not set
    6.11  # CONFIG_XFS_DEBUG is not set
    6.12 @@ -3206,8 +3206,8 @@
    6.13  # CONFIG_QFMT_V1 is not set
    6.14  # CONFIG_QFMT_V2 is not set
    6.15  CONFIG_QUOTACTL=y
    6.16 -CONFIG_AUTOFS_FS=m
    6.17 -# CONFIG_AUTOFS4_FS is not set
    6.18 +# CONFIG_AUTOFS_FS is not set
    6.19 +CONFIG_AUTOFS4_FS=m
    6.20  CONFIG_FUSE_FS=y
    6.21  CONFIG_CUSE=m
    6.22  
    6.23 @@ -3304,7 +3304,8 @@
    6.24  CONFIG_NFS_ACL_SUPPORT=y
    6.25  CONFIG_NFS_COMMON=y
    6.26  CONFIG_SUNRPC=y
    6.27 -# CONFIG_RPCSEC_GSS_KRB5 is not set
    6.28 +CONFIG_SUNRPC_GSS=m
    6.29 +CONFIG_RPCSEC_GSS_KRB5=m
    6.30  # CONFIG_RPCSEC_GSS_SPKM3 is not set
    6.31  # CONFIG_SMB_FS is not set
    6.32  # CONFIG_CEPH_FS is not set