Annotation of ports/security/denyhosts/patches/patch-daemon-control-dist, Revision 1.1
1.1 ! kirby 1: $OpenBSD$
! 2: --- daemon-control-dist.orig Sat Apr 22 03:04:43 2006
! 3: +++ daemon-control-dist Wed Jan 29 14:02:34 2014
! 4: @@ -11,11 +11,11 @@
! 5: #### Edit these to suit your configuration ####
! 6: ###############################################
! 7:
! 8: -DENYHOSTS_BIN = "/usr/bin/denyhosts.py"
! 9: -DENYHOSTS_LOCK = "/var/lock/subsys/denyhosts"
! 10: -DENYHOSTS_CFG = "/usr/share/denyhosts/denyhosts.cfg"
! 11: +DENYHOSTS_BIN = "${PREFIX}/bin/denyhosts.py"
! 12: +DENYHOSTS_LOCK = "/var/run/denyhosts.pid"
! 13: +DENYHOSTS_CFG = "${SYSCONFDIR}/denyhosts.cfg"
! 14:
! 15: -PYTHON_BIN = "/usr/bin/env python"
! 16: +PYTHON_BIN = "${MODPY_BIN}"
! 17:
! 18: ###############################################
! 19: #### Do not edit below ####
! 20: @@ -52,7 +52,7 @@ def getpid():
! 21: return STATE_NOT_RUNNING
! 22:
! 23:
! 24: - if not sys.platform.startswith('freebsd') and os.access("/proc", os.F_OK):
! 25: + if not sys.platform.startswith('openbsd') and os.access("/proc", os.F_OK):
! 26: # proc filesystem exists, look for pid
! 27: if os.access(os.path.join("/proc", str(pid)), os.F_OK):
! 28: return pid
CVSweb