diff options
Diffstat (limited to 'sys-fs/owfs/files')
-rw-r--r-- | sys-fs/owfs/files/owfs-vendordir.patch | 30 | ||||
-rw-r--r-- | sys-fs/owfs/files/owfs.confd | 2 | ||||
-rwxr-xr-x | sys-fs/owfs/files/owfs.initd | 32 | ||||
-rw-r--r-- | sys-fs/owfs/files/owftpd.confd | 2 | ||||
-rwxr-xr-x | sys-fs/owfs/files/owftpd.initd | 32 | ||||
-rw-r--r-- | sys-fs/owfs/files/owhttpd.confd | 2 | ||||
-rwxr-xr-x | sys-fs/owfs/files/owhttpd.initd | 32 | ||||
-rw-r--r-- | sys-fs/owfs/files/owserver.confd | 2 | ||||
-rwxr-xr-x | sys-fs/owfs/files/owserver.initd | 32 |
9 files changed, 166 insertions, 0 deletions
diff --git a/sys-fs/owfs/files/owfs-vendordir.patch b/sys-fs/owfs/files/owfs-vendordir.patch new file mode 100644 index 000000000000..ac09e4f2fc79 --- /dev/null +++ b/sys-fs/owfs/files/owfs-vendordir.patch @@ -0,0 +1,30 @@ +diff -ruN owfs-2.7p21.orig/module/ownet/perl5/Makefile.am owfs-2.7p21/module/ownet/perl5/Makefile.am +--- owfs-2.7p21.orig/module/ownet/perl5/Makefile.am 2008-06-12 16:24:30.000000000 +0200 ++++ owfs-2.7p21/module/ownet/perl5/Makefile.am 2012-05-20 15:45:07.340529762 +0200 +@@ -7,9 +7,9 @@ + # Can't really install the perl-modules under prefix-directory.. it should be site-global. + OWNet/Makefile: OWNet/Makefile.PL + if HAVE_DEBIAN +- ( cd OWNet; $(PERL) Makefile.PL PREFIX=@prefix@ ) ++ ( cd OWNet; $(PERL) Makefile.PL PREFIX=@prefix@ INSTALLDIRS=vendor ) + else +- ( cd OWNet; $(PERL) Makefile.PL ) ++ ( cd OWNet; $(PERL) Makefile.PL INSTALLDIRS=vendor ) + endif + + install-data-local: OWNet/Makefile +diff -ruN owfs-2.7p21.orig/module/swig/perl5/Makefile.am owfs-2.7p21/module/swig/perl5/Makefile.am +--- owfs-2.7p21.orig/module/swig/perl5/Makefile.am 2008-06-12 16:24:30.000000000 +0200 ++++ owfs-2.7p21/module/swig/perl5/Makefile.am 2012-05-20 15:44:04.519526274 +0200 +@@ -17,9 +17,9 @@ + ( cd OW; $(PERL) Makefile.PL ) + else + if HAVE_DEBIAN +- ( cd OW; $(PERL) Makefile.PL PREFIX=@prefix@ ) ++ ( cd OW; $(PERL) Makefile.PL PREFIX=@prefix@ INSTALLDIRS=vendor ) + else +- ( cd OW; $(PERL) Makefile.PL ) ++ ( cd OW; $(PERL) Makefile.PL INSTALLDIRS=vendor ) + endif + endif + diff --git a/sys-fs/owfs/files/owfs.confd b/sys-fs/owfs/files/owfs.confd new file mode 100644 index 000000000000..f85d25e74f22 --- /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:4304" diff --git a/sys-fs/owfs/files/owfs.initd b/sys-fs/owfs/files/owfs.initd new file mode 100755 index 000000000000..7ed8a51bea1a --- /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 +# $Id$ + +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 \ + ${OWFS_OPTS:--m /var/lib/owfs/mnt --allow_other -s 127.0.0.1:4304} + 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.confd b/sys-fs/owfs/files/owftpd.confd new file mode 100644 index 000000000000..fc93d2fd7195 --- /dev/null +++ b/sys-fs/owfs/files/owftpd.confd @@ -0,0 +1,2 @@ +# owfs owftpd configuration +OWFTPD_OPTS="--nozero -p 127.0.0.1:4381 -s 127.0.0.1:4304 --max_clients 5 --timeout_ftp 600" diff --git a/sys-fs/owfs/files/owftpd.initd b/sys-fs/owfs/files/owftpd.initd new file mode 100755 index 000000000000..eae2782f92f3 --- /dev/null +++ b/sys-fs/owfs/files/owftpd.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 +# $Id$ + +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 \ + ${OWFTPD_OPTS:---nozero -p 127.0.0.1:4381 -s 127.0.0.1:4304 --max_clients 5 --timeout_ftp 600} + 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/owhttpd.confd b/sys-fs/owfs/files/owhttpd.confd new file mode 100644 index 000000000000..2a5200c31118 --- /dev/null +++ b/sys-fs/owfs/files/owhttpd.confd @@ -0,0 +1,2 @@ +# owfs owhttpd configuration +OWHTTPD_OPTS="--nozero -p 127.0.0.1:4380 -s 127.0.0.1:4304" diff --git a/sys-fs/owfs/files/owhttpd.initd b/sys-fs/owfs/files/owhttpd.initd new file mode 100755 index 000000000000..a05f5dce295a --- /dev/null +++ b/sys-fs/owfs/files/owhttpd.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 +# $Id$ + +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:---nozero -p 127.0.0.1:4380 -s 127.0.0.1:4304} + 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/owserver.confd b/sys-fs/owfs/files/owserver.confd new file mode 100644 index 000000000000..e764e2df10ec --- /dev/null +++ b/sys-fs/owfs/files/owserver.confd @@ -0,0 +1,2 @@ +# owfs owserver configuration +OWSERVER_OPTS="--nozero -p 127.0.0.1:4304 -d /dev/ttyS0 --timeout_volatile 5" diff --git a/sys-fs/owfs/files/owserver.initd b/sys-fs/owfs/files/owserver.initd new file mode 100755 index 000000000000..0ddfbd2f81c9 --- /dev/null +++ b/sys-fs/owfs/files/owserver.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 +# $Id$ + +INSTANCE=${SVCNAME#*.} +PROGRAM=${SVCNAME%%.*} +PIDFILE=${PIDFILE:-/var/run/owfs/${PROGRAM}.pid} +OWUID=${OWUID:-owfs} +OWGID=${OWGID:-owfs} + +depend() { + need net + use logger +} + +start() { + 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:4304 -d /dev/ttyS0} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ + --pidfile ${PIDFILE} -u ${OWUID} + eend $? +} |