diff options
author | Thomas D <whissi@whissi.de> | 2016-02-18 22:20:35 +0100 |
---|---|---|
committer | Thomas D <whissi@whissi.de> | 2016-02-19 03:19:37 +0100 |
commit | e788d1233936b0c24d52abd74c43fc6a4a6e09cf (patch) | |
tree | f49ad27b20b26891b11c309124776bbb1cbbc60c /sys-fs/owfs/files | |
parent | dev-python/datashape: Bump (diff) | |
download | gentoo-e788d1233936b0c24d52abd74c43fc6a4a6e09cf.tar.gz gentoo-e788d1233936b0c24d52abd74c43fc6a4a6e09cf.tar.bz2 gentoo-e788d1233936b0c24d52abd74c43fc6a4a6e09cf.zip |
sys-fs/owfs: Bumped to v3.1p1
Changes:
* Bumped to upstream v3.1p1 (Closes #572004)
* Bumped to EAPI=6
* Added ewarn to tell user that they maybe have to install a custom UDEV
rule (Closes #315935)
* Various runscript fixes
- Services were misusing "need net" (See #439092)
- start_pre added to fix problems caused by non-existing pidfile dir
(Closes #553418)
Package-Manager: portage-2.2.27
Diffstat (limited to 'sys-fs/owfs/files')
-rw-r--r-- | sys-fs/owfs/files/owfs-3.1-vendordir.patch | 26 | ||||
-rw-r--r-- | sys-fs/owfs/files/owfs.initd-r1 | 36 | ||||
-rw-r--r-- | sys-fs/owfs/files/owftpd.initd-r1 | 36 | ||||
-rw-r--r-- | sys-fs/owfs/files/owhttpd.initd-r1 | 36 | ||||
-rw-r--r-- | sys-fs/owfs/files/owserver.initd-r1 | 35 |
5 files changed, 169 insertions, 0 deletions
diff --git a/sys-fs/owfs/files/owfs-3.1-vendordir.patch b/sys-fs/owfs/files/owfs-3.1-vendordir.patch new file mode 100644 index 000000000000..2592e8ad0fd7 --- /dev/null +++ b/sys-fs/owfs/files/owfs-3.1-vendordir.patch @@ -0,0 +1,26 @@ +diff --git a/module/ownet/perl5/Makefile.am b/module/ownet/perl5/Makefile.am +index 5823f4b..cebe1e6 100644 +--- a/module/ownet/perl5/Makefile.am ++++ b/module/ownet/perl5/Makefile.am +@@ -8,7 +8,7 @@ OWNet/Makefile: OWNet/Makefile.PL + if HAVE_DEBIAN + cd OWNet; $(PERL) Makefile.PL INSTALLDIRS=vendor + else +- cd OWNet; $(PERL) Makefile.PL ++ cd OWNet; $(PERL) Makefile.PL INSTALLDIRS=vendor + endif + + install-data-local: OWNet/Makefile +diff --git a/module/swig/perl5/Makefile.am b/module/swig/perl5/Makefile.am +index 8e5f583..49cd252 100644 +--- a/module/swig/perl5/Makefile.am ++++ b/module/swig/perl5/Makefile.am +@@ -19,7 +19,7 @@ else + if HAVE_DEBIAN + ( cd OW; $(PERL) Makefile.PL INSTALLDIRS=vendor ) + else +- ( cd OW; $(PERL) Makefile.PL ) ++ ( cd OW; $(PERL) Makefile.PL INSTALLDIRS=vendor ) + if HAVE_FREEBSD + $(PERL) -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' OW/Makefile + diff --git a/sys-fs/owfs/files/owfs.initd-r1 b/sys-fs/owfs/files/owfs.initd-r1 new file mode 100644 index 000000000000..4d7f6d4d1b70 --- /dev/null +++ b/sys-fs/owfs/files/owfs.initd-r1 @@ -0,0 +1,36 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +INSTANCE=${SVCNAME#*.} +PROGRAM=${SVCNAME%%.*} +PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} +OWUID=${OWUID:-owfs} +OWGID=${OWGID:-owfs} + +depend() { + need owserver + use logger +} + +start_pre() { + checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ + --pidfile ${PIDFILE} --user ${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.initd-r1 b/sys-fs/owfs/files/owftpd.initd-r1 new file mode 100644 index 000000000000..c79545a412e0 --- /dev/null +++ b/sys-fs/owfs/files/owftpd.initd-r1 @@ -0,0 +1,36 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +INSTANCE=${SVCNAME#*.} +PROGRAM=${SVCNAME%%.*} +PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} +OWUID=${OWUID:-owfs} +OWGID=${OWGID:-owfs} + +depend() { + need owserver + use logger +} + +start_pre() { + checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ + --pidfile ${PIDFILE} --user ${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.initd-r1 b/sys-fs/owfs/files/owhttpd.initd-r1 new file mode 100644 index 000000000000..9ea39ffe3d39 --- /dev/null +++ b/sys-fs/owfs/files/owhttpd.initd-r1 @@ -0,0 +1,36 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +INSTANCE=${SVCNAME#*.} +PROGRAM=${SVCNAME%%.*} +PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} +OWUID=${OWUID:-owfs} +OWGID=${OWGID:-owfs} + +depend() { + need owserver + use logger +} + +start_pre() { + checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ + --pidfile ${PIDFILE} --user ${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.initd-r1 b/sys-fs/owfs/files/owserver.initd-r1 new file mode 100644 index 000000000000..da47a82b73e3 --- /dev/null +++ b/sys-fs/owfs/files/owserver.initd-r1 @@ -0,0 +1,35 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +INSTANCE=${SVCNAME#*.} +PROGRAM=${SVCNAME%%.*} +PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} +OWUID=${OWUID:-owfs} +OWGID=${OWGID:-owfs} + +depend() { + use logger +} + +start_pre() { + checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ + --pidfile ${PIDFILE} --user ${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 $? +} |