[BACK]Return to patch-daemon-control-dist CVS log [TXT][DIR] Up to [local] / ports / security / denyhosts / patches

File: [local] / ports / security / denyhosts / patches / patch-daemon-control-dist (download)

Revision 1.1, Wed Jan 29 10:15:27 2014 UTC (10 years, 3 months ago) by kirby
Branch: MAIN
CVS Tags: HEAD

 - make daemon control script workable
 - cleanup

$OpenBSD$
--- daemon-control-dist.orig	Sat Apr 22 03:04:43 2006
+++ daemon-control-dist	Wed Jan 29 14:02:34 2014
@@ -11,11 +11,11 @@
 #### Edit these to suit your configuration ####
 ###############################################
 
-DENYHOSTS_BIN   = "/usr/bin/denyhosts.py"
-DENYHOSTS_LOCK  = "/var/lock/subsys/denyhosts"
-DENYHOSTS_CFG   = "/usr/share/denyhosts/denyhosts.cfg"
+DENYHOSTS_BIN   = "${PREFIX}/bin/denyhosts.py"
+DENYHOSTS_LOCK  = "/var/run/denyhosts.pid"
+DENYHOSTS_CFG   = "${SYSCONFDIR}/denyhosts.cfg"
 
-PYTHON_BIN      = "/usr/bin/env python"
+PYTHON_BIN      = "${MODPY_BIN}"
 
 ###############################################
 ####         Do not edit below             ####
@@ -52,7 +52,7 @@ def getpid():
         return STATE_NOT_RUNNING
 
     
-    if not sys.platform.startswith('freebsd') and os.access("/proc", os.F_OK):
+    if not sys.platform.startswith('openbsd') and os.access("/proc", os.F_OK):
         # proc filesystem exists, look for pid
         if os.access(os.path.join("/proc", str(pid)), os.F_OK):
             return pid