1 |
maksbotan 11/05/01 20:06:53 |
2 |
|
3 |
Added: binlsrv.initd binlsrv.confd setup.py |
4 |
Log: |
5 |
Add net-misc/ris-linux, #365605 |
6 |
|
7 |
(Portage version: 2.1.9.45/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-misc/ris-linux/files/binlsrv.initd |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ris-linux/files/binlsrv.initd?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ris-linux/files/binlsrv.initd?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: binlsrv.initd |
16 |
=================================================================== |
17 |
#!/sbin/runscript |
18 |
# Copyright 1999-2011 Gentoo Foundation |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/ris-linux/files/binlsrv.initd,v 1.1 2011/05/01 20:06:53 maksbotan Exp $ |
21 |
|
22 |
depend() { |
23 |
need net |
24 |
} |
25 |
|
26 |
start() { |
27 |
ebegin "Starting binlsrv" |
28 |
if [ -z "$INFILE_PATH" ]; then |
29 |
eerror "Path to devlist.cache not set, please set \$INFILE_PATH in /etc/conf.d/binlsrv" |
30 |
return 1 |
31 |
fi |
32 |
if [ ! -e "$INFILE_PATH/devlist.cache" ]; then |
33 |
eerror "devlist.cache not generated, please make it with infparser.py" |
34 |
fi |
35 |
|
36 |
start-stop-daemon --start -i --exec /usr/bin/binlsrv.py --background \ |
37 |
--make-pidfile --pidfile /var/run/binlsrv.pid --chdir "$INFILE_PATH" \ |
38 |
--stdout /var/log/binlsrv.log |
39 |
|
40 |
eend $? |
41 |
} |
42 |
|
43 |
stop() { |
44 |
ebegin "Stopping binlsrv" |
45 |
start-stop-daemon --stop -i --exec /usr/bin/binlsrv.py --pidfile /var/run/binlsrv.pid |
46 |
eend $? |
47 |
} |
48 |
|
49 |
|
50 |
1.1 net-misc/ris-linux/files/binlsrv.confd |
51 |
|
52 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ris-linux/files/binlsrv.confd?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ris-linux/files/binlsrv.confd?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: binlsrv.confd |
56 |
=================================================================== |
57 |
#Specify here path to directory with 'devlist.cache' file |
58 |
INFILE_PATH="/var/lib/ris/binl" |
59 |
|
60 |
|
61 |
|
62 |
1.1 net-misc/ris-linux/files/setup.py |
63 |
|
64 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ris-linux/files/setup.py?rev=1.1&view=markup |
65 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ris-linux/files/setup.py?rev=1.1&content-type=text/plain |
66 |
|
67 |
Index: setup.py |
68 |
=================================================================== |
69 |
#!/usr/bin/env python |
70 |
|
71 |
from distutils.core import setup |
72 |
|
73 |
setup( |
74 |
name = 'ris-linux', |
75 |
version = 'VERSION', |
76 |
scripts = [ 'binlsrv.py', 'decode.py', 'infparser.py', 'fixloader.py', 'modldr.py' ] |
77 |
) |