pkgsrc/devel/codeville/patches/patch-ac
bjs 9d934a6e35 Fix pathname substitution.
XXX this really should have an rc.d script and INSTALL/DEINSTALL
scripts/OWN_DIRS and/or REQD_DIRS.  Volunteers? ;)

bump rev.
2008-06-13 05:57:07 +00:00

31 lines
1.1 KiB
Text

$NetBSD: patch-ac,v 1.2 2008/06/13 05:57:07 bjs Exp $
--- cdvserver.orig 2006-02-23 15:44:13.000000000 -0500
+++ cdvserver
@@ -45,7 +45,7 @@ def run(args):
else:
daemonize = True
noconfig = False
- configfile = '/etc/cdvserver.conf'
+ configfile = '@PKG_SYSCONFDIR@/cdvserver.conf'
# parse command line arguments
initialize = False
@@ -78,14 +78,14 @@ def run(args):
# set the defaults
config.add_section('control')
- config.set('control', 'pidfile', '/var/run/cdvserver.pid')
+ config.set('control', 'pidfile', '@VARBASE@/run/cdvserver.pid')
config.set('control', 'backup', 'False')
config.set('control', 'port', '6601')
if sys.platform == 'win32':
config.set('control', 'datadir', os.getcwd())
else:
- config.set('control', 'datadir', '/var/lib/cdvserver')
- config.set('control', 'logfile', '/var/log/cdvserver.log')
+ config.set('control', 'datadir', '@CODEVILLE_DATADIR@')
+ config.set('control', 'logfile', '@VARBASE@/log/cdvserver.log')
config.add_section('post-commit')
# next read the config file