obsdfreqd currently installs an rc.d script that is bundled inside
the distfile.
I think generally we want to have those in the ports tree
directly because from time to time when changes are made to rc.subr
we need to adapt the scripts, so here's a diff to stop using the
bundled one and add in pkg/ instead.
The file itself is changed slightly, the existing one has pexp="${daemon}.*"
which is not needed.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/obsdfreqd/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile 3 Sep 2022 11:18:39 -0000 1.4
+++ Makefile 3 Sep 2022 14:33:08 -0000
@@ -1,6 +1,6 @@
COMMENT = userland daemon to manage CPU frequency
V = 1.0.1
-REVISION = 1
+REVISION = 2
DISTNAME = obsdfreqd-${V}
CATEGORIES = sysutils
Index: patches/patch-Makefile
===================================================================
RCS file: patches/patch-Makefile
diff -N patches/patch-Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-Makefile 3 Sep 2022 14:33:08 -0000
@@ -0,0 +1,9 @@
+Index: Makefile
+--- Makefile.orig
++++ Makefile
+@@ -16,5 +16,4 @@ clean:
+
+ install: obsdfreqd
+ install -o root -g wheel -m 555 obsdfreqd ${PREFIX}/sbin/obsdfreqd
+- install -o root -g wheel -m 555 obsdfreqd.rc ${DESTDIR}/etc/rc.d/obsdfreqd
+ install -o root -g wheel -m 444 obsdfreqd.1 ${PREFIX}/man/man1/obsdfreqd.1
Index: pkg/obsdfreqd.rc
===================================================================
RCS file: pkg/obsdfreqd.rc
diff -N pkg/obsdfreqd.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/obsdfreqd.rc 3 Sep 2022 14:33:08 -0000
@@ -0,0 +1,10 @@
+#!/bin/ksh
+
+daemon="${TRUEPREFIX}/sbin/obsdfreqd"
+
+. /etc/rc.d/rc.subr
+
+rc_reload=NO
+rc_bg=YES
+
+rc_cmd $1
No comments:
Post a Comment