diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2007-12-17 17:26:36 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2007-12-17 17:26:36 +0000 |
commit | 139d0072b7cebc276899f9d0759388e39ff57e3d (patch) | |
tree | 81c90b0e723695b71126066156affd775c9c654c /sys-fs/owfs/files | |
parent | amd64 stable (diff) | |
download | gentoo-2-139d0072b7cebc276899f9d0759388e39ff57e3d.tar.gz gentoo-2-139d0072b7cebc276899f9d0759388e39ff57e3d.tar.bz2 gentoo-2-139d0072b7cebc276899f9d0759388e39ff57e3d.zip |
added owfs FUSE daemon support, small fixup for init scripts
(Portage version: 2.1.4_rc9)
Diffstat (limited to 'sys-fs/owfs/files')
-rw-r--r-- | sys-fs/owfs/files/digest-owfs-2.7_p0-r2 | 3 | ||||
-rw-r--r-- | sys-fs/owfs/files/owfs.confd | 2 | ||||
-rwxr-xr-x | sys-fs/owfs/files/owfs.initd | 32 | ||||
-rwxr-xr-x | sys-fs/owfs/files/owftpd.initd | 18 | ||||
-rwxr-xr-x | sys-fs/owfs/files/owhttpd.initd | 18 | ||||
-rwxr-xr-x | sys-fs/owfs/files/owserver.initd | 18 |
6 files changed, 64 insertions, 27 deletions
diff --git a/sys-fs/owfs/files/digest-owfs-2.7_p0-r2 b/sys-fs/owfs/files/digest-owfs-2.7_p0-r2 new file mode 100644 index 000000000000..6e4364d3b0c7 --- /dev/null +++ b/sys-fs/owfs/files/digest-owfs-2.7_p0-r2 @@ -0,0 +1,3 @@ +MD5 07ee9ad9973c47b3ab6da923c97fa5eb owfs-2.7p0.tar.gz 1058362 +RMD160 734d385b93611e988499f47f805c4af090ad5bb8 owfs-2.7p0.tar.gz 1058362 +SHA256 dc1f7fe5cad844070eabe98149978c513c625a5a072987857bf1bc42eca42f8a owfs-2.7p0.tar.gz 1058362 diff --git a/sys-fs/owfs/files/owfs.confd b/sys-fs/owfs/files/owfs.confd new file mode 100644 index 000000000000..5cf48895adc5 --- /dev/null +++ b/sys-fs/owfs/files/owfs.confd @@ -0,0 +1,2 @@ +# owfs configuration +OWFS_OPTS="-m /var/lib/owfs/mnt --allow_other -s 127.0.0.1:9300" diff --git a/sys-fs/owfs/files/owfs.initd b/sys-fs/owfs/files/owfs.initd new file mode 100755 index 000000000000..c8174110f1cf --- /dev/null +++ b/sys-fs/owfs/files/owfs.initd @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owfs.initd,v 1.1 2007/12/17 17:26:35 wschlich Exp $ + +INSTANCE=${SVCNAME#*.} +PROGRAM=${SVCNAME%%.*} +PIDFILE=${PIDFILE:-/var/run/owfs/${PROGRAM}.pid} +OWUID=${OWUID:-owfs} +OWGID=${OWGID:-owfs} + +depend() { + need net + use logger owserver +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ + --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \ + --pid_file ${PIDFILE} \ + --background --error_print 1 \ + ${OWHTTPD_OPTS:--m /var/lib/owfs/mnt --allow_other -s 127.0.0.1:9300} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ + --pidfile ${PIDFILE} -u ${OWUID} + eend $? +} diff --git a/sys-fs/owfs/files/owftpd.initd b/sys-fs/owfs/files/owftpd.initd index 30c70eb8a3b6..664f5351f557 100755 --- a/sys-fs/owfs/files/owftpd.initd +++ b/sys-fs/owfs/files/owftpd.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owftpd.initd,v 1.1 2007/12/15 16:10:07 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owftpd.initd,v 1.2 2007/12/17 17:26:35 wschlich Exp $ INSTANCE=${SVCNAME#*.} PROGRAM=${SVCNAME%%.*} @@ -10,23 +10,23 @@ OWUID=${OWUID:-owfs} OWGID=${OWGID:-owfs} depend() { - need net - use logger owserver + need net + use logger owserver } start() { - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \ --pid_file ${PIDFILE} \ --background --error_print 1 \ ${OWFTPD_OPTS:---nozero -p 127.0.0.1:9321 -s 127.0.0.1:9300 --max_clients 5 --timeout_ftp 600} - eend $? + eend $? } stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ --pidfile ${PIDFILE} -u ${OWUID} - eend $? + eend $? } diff --git a/sys-fs/owfs/files/owhttpd.initd b/sys-fs/owfs/files/owhttpd.initd index 24b40783e471..614e1391a58e 100755 --- a/sys-fs/owfs/files/owhttpd.initd +++ b/sys-fs/owfs/files/owhttpd.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owhttpd.initd,v 1.1 2007/12/15 16:10:07 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owhttpd.initd,v 1.2 2007/12/17 17:26:35 wschlich Exp $ INSTANCE=${SVCNAME#*.} PROGRAM=${SVCNAME%%.*} @@ -10,23 +10,23 @@ OWUID=${OWUID:-owfs} OWGID=${OWGID:-owfs} depend() { - need net - use logger owserver + need net + use logger owserver } start() { - ebegin "Starting owhttpd" - start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \ --pid_file ${PIDFILE} \ --background --error_print 1 \ ${OWHTTPD_OPTS:---nozero -p 127.0.0.1:9380 -s 127.0.0.1:9300} - eend $? + eend $? } stop() { - ebegin "Stopping owhttpd" - start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ --pidfile ${PIDFILE} -u ${OWUID} - eend $? + eend $? } diff --git a/sys-fs/owfs/files/owserver.initd b/sys-fs/owfs/files/owserver.initd index 402e319ce40c..c46044b05858 100755 --- a/sys-fs/owfs/files/owserver.initd +++ b/sys-fs/owfs/files/owserver.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owserver.initd,v 1.1 2007/12/15 16:10:07 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/owfs/files/owserver.initd,v 1.2 2007/12/17 17:26:35 wschlich Exp $ INSTANCE=${SVCNAME#*.} PROGRAM=${SVCNAME%%.*} @@ -10,23 +10,23 @@ OWUID=${OWUID:-owfs} OWGID=${OWGID:-owfs} depend() { - need net - use logger + need net + use logger } start() { - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ --pidfile ${PIDFILE} -c ${OWUID}:${OWGID} -- \ --pid_file ${PIDFILE} \ --background --error_print 1 \ ${OWSERVER_OPTS:---nozero -p 127.0.0.1:9300 -d /dev/ttyS0} - eend $? + eend $? } stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ --pidfile ${PIDFILE} -u ${OWUID} - eend $? + eend $? } |