summaryrefslogtreecommitdiff
path: root/net/ris/files/patch-binlsrv.py
blob: 55c1441b783b8f9c8dc5a8681a77489596cf9dc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- binlsrv.py.orig	2007-09-28 19:29:12.000000000 +0400
+++ binlsrv.py	2010-01-07 18:50:47.218704824 +0300
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#! @PYTHON_CMD@
 # -*- Mode: Python; tab-width: 4 -*-
 #
 # Boot Information Negotiation Layer - OpenSource Implementation
@@ -40,7 +40,7 @@
                     [--pid pidfile] [devlist.cache]
 -h, --help     : show this help
 -d, --daemon   : daemonize, unix only [false]
--l, --logfile= : logfile when used in daemon mode [/var/log/binlsrv.log]
+-l, --logfile= : logfile when used in daemon mode [@LOG_FILE@]
 -a, --address= : ip address to bind to [all interfaces]
 -p, --port=    : port to bind to [4011]
     --pid=     : pid file to use instead of the default
@@ -1015,11 +1015,11 @@
     ## Defaults
     global pidfile, s
     daemon  = False
-    logfile = '/var/log/binlsrv.log'
+    logfile = '@LOG_FILE@'
     address = ''
     port    = 4011
-    devfile = 'devlist.cache'
-    pidfile = '/var/run/binlsrv.pid'
+    devfile = '@DEVLIST_CACHE@'
+    pidfile = '@PID_FILE@'
 
     ## Parse command line arguments
     shortopts = 'hdl:a:p:'