pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/openntpd



Module Name:    pkgsrc
Committed By:   dholland
Date:           Sat Jul 10 18:32:15 UTC 2021

Modified Files:
        pkgsrc/net/openntpd: Makefile
        pkgsrc/net/openntpd/files: openntpd.sh

Log Message:
net/openntpd: make the rc script set the pidfile.

Seems the daemon writes no pid file unless explicitly told where.
Fixes PR 55244. PKGREVISION -> 1.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 pkgsrc/net/openntpd/Makefile
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/net/openntpd/files/openntpd.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/openntpd/Makefile
diff -u pkgsrc/net/openntpd/Makefile:1.44 pkgsrc/net/openntpd/Makefile:1.45
--- pkgsrc/net/openntpd/Makefile:1.44   Wed Jun 15 05:40:21 2016
+++ pkgsrc/net/openntpd/Makefile        Sat Jul 10 18:32:15 2021
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2016/06/15 05:40:21 wiz Exp $
+# $NetBSD: Makefile,v 1.45 2021/07/10 18:32:15 dholland Exp $
 
 DISTNAME=              openntpd-6.0p1
+PKGREVISION=           1
 CATEGORIES=            net
 MASTER_SITES=          ${MASTER_SITE_OPENBSD:=OpenNTPD/}
 

Index: pkgsrc/net/openntpd/files/openntpd.sh
diff -u pkgsrc/net/openntpd/files/openntpd.sh:1.1.1.1 pkgsrc/net/openntpd/files/openntpd.sh:1.2
--- pkgsrc/net/openntpd/files/openntpd.sh:1.1.1.1       Mon Jul 19 19:17:25 2004
+++ pkgsrc/net/openntpd/files/openntpd.sh       Sat Jul 10 18:32:15 2021
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: openntpd.sh,v 1.1.1.1 2004/07/19 19:17:25 xtraeme Exp $
+# $NetBSD: openntpd.sh,v 1.2 2021/07/10 18:32:15 dholland Exp $
 #
 
 # PROVIDE: openntpd
@@ -12,7 +12,14 @@
 name="ntpd"
 rcvar="openntpd"
 command="@PREFIX@/sbin/${name}"
+pidfile="/var/run/${name}.pid"
 required_files="@PKG_SYSCONFDIR@/ntpd.conf"
+start_precmd="$openntpd_precmd"
+
+openntpd_precmd()
+{
+       rc_flags="-p ${pidfile} $rc_flags"
+}
 
 load_rc_config $name
 run_rc_command "$1"



Home | Main Index | Thread Index | Old Index