diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/ris-linux/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/ris-linux/files')
-rw-r--r-- | net-misc/ris-linux/files/binlsrv.confd | 2 | ||||
-rw-r--r-- | net-misc/ris-linux/files/binlsrv.initd | 30 | ||||
-rw-r--r-- | net-misc/ris-linux/files/setup.py | 9 |
3 files changed, 41 insertions, 0 deletions
diff --git a/net-misc/ris-linux/files/binlsrv.confd b/net-misc/ris-linux/files/binlsrv.confd new file mode 100644 index 000000000000..2e6ed9f9090f --- /dev/null +++ b/net-misc/ris-linux/files/binlsrv.confd @@ -0,0 +1,2 @@ +#Specify here path to directory with 'devlist.cache' file +INFILE_PATH="/var/lib/ris/binl" diff --git a/net-misc/ris-linux/files/binlsrv.initd b/net-misc/ris-linux/files/binlsrv.initd new file mode 100644 index 000000000000..f247a39db4ed --- /dev/null +++ b/net-misc/ris-linux/files/binlsrv.initd @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting binlsrv" + if [ -z "$INFILE_PATH" ]; then + eerror "Path to devlist.cache not set, please set \$INFILE_PATH in /etc/conf.d/binlsrv" + return 1 + fi + if [ ! -e "$INFILE_PATH/devlist.cache" ]; then + eerror "devlist.cache not generated, please make it with infparser.py" + fi + + start-stop-daemon --start -i --exec /usr/bin/binlsrv.py --background \ + --make-pidfile --pidfile /var/run/binlsrv.pid --chdir "$INFILE_PATH" \ + --stdout /var/log/binlsrv.log + + eend $? +} + +stop() { + ebegin "Stopping binlsrv" + start-stop-daemon --stop -i --exec /usr/bin/binlsrv.py --pidfile /var/run/binlsrv.pid + eend $? +}
\ No newline at end of file diff --git a/net-misc/ris-linux/files/setup.py b/net-misc/ris-linux/files/setup.py new file mode 100644 index 000000000000..0873f2512c99 --- /dev/null +++ b/net-misc/ris-linux/files/setup.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python + +from distutils.core import setup + +setup( + name = 'ris-linux', + version = 'VERSION', + scripts = [ 'binlsrv.py', 'decode.py', 'infparser.py', 'fixloader.py', 'modldr.py' ] +) |