don't use rc script from inside the distfile, use it from the ports tree

like every other port. we sometimes make widespread changes to rc scripts
so they need to be easily visible.

ok kn, maintainer timeout
This commit is contained in:
sthen 2022-09-08 09:38:25 +00:00
parent 13b9a75be9
commit 667fdd3909
3 changed files with 20 additions and 1 deletions

View File

@ -1,6 +1,6 @@
COMMENT = userland daemon to manage CPU frequency
V = 1.0.1
REVISION = 1
REVISION = 2
DISTNAME = obsdfreqd-${V}
CATEGORIES = sysutils

View File

@ -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

View File

@ -0,0 +1,10 @@
#!/bin/ksh
daemon="${TRUEPREFIX}/sbin/obsdfreqd"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_bg=YES
rc_cmd $1