diff --git a/sysutils/parkverbot/Makefile b/sysutils/parkverbot/Makefile index aca112eb7b5a..bf821d8b0d7d 100644 --- a/sysutils/parkverbot/Makefile +++ b/sysutils/parkverbot/Makefile @@ -1,23 +1,23 @@ PORTNAME= parkverbot -PORTVERSION= 1.5 +PORTVERSION= 1.6 CATEGORIES= sysutils MASTER_SITES= https://inai.de/files/parkverbot/ MAINTAINER= danfe@FreeBSD.org COMMENT= Hard disk head parking inhibitor WWW= https://inai.de/projects/parkverbot/ LICENSE= GPLv2+ LIB_DEPENDS= libHX.so:lang/libhx -USES= pkgconfig tar:xz +USES= pkgconfig tar:zst GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share +USE_RC_SUBR= ${PORTNAME} -PLIST_FILES= share/man/man8/parkverbot.8.gz sbin/parkverbot +PLIST_FILES= sbin/parkverbot share/man/man8/parkverbot.8.gz post-install: ${RM} -r ${STAGEDIR}/lib/systemd .include diff --git a/sysutils/parkverbot/distinfo b/sysutils/parkverbot/distinfo index 50a581229da9..640b2179ffd5 100644 --- a/sysutils/parkverbot/distinfo +++ b/sysutils/parkverbot/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1649595137 -SHA256 (parkverbot-1.5.tar.xz) = a52e88a60e0a11163ab596dde7d264ba9e80016cf4f276368bfe81f666456e20 -SIZE (parkverbot-1.5.tar.xz) = 78488 +TIMESTAMP = 1759794978 +SHA256 (parkverbot-1.6.tar.zst) = 4518f11b72d51806a18bef3cb7616596ed07f45df6ae8c8e1c15b7a82ecc879a +SIZE (parkverbot-1.6.tar.zst) = 83232 diff --git a/sysutils/parkverbot/files/parkverbot.in b/sysutils/parkverbot/files/parkverbot.in new file mode 100644 index 000000000000..16a393ef85ff --- /dev/null +++ b/sysutils/parkverbot/files/parkverbot.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# PROVIDE: parkverbot +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# parkverbot_enable (bool): Set to NO by default +# Set to YES to enable parkverbot +# parkverbot_flags (string): Devices passed to parkverbot(8) +# Default: none + +. /etc/rc.subr + +name=parkverbot +rcvar=${name}_enable + +: ${parkverbot_enable:="NO"} +: ${parkverbot_flags:=""} + +pidfile="/var/run/${name}.pid" +command="%%PREFIX%%/sbin/${name}" +parkverbot_prepend="/usr/sbin/daemon -f -p ${pidfile}" + +load_rc_config ${name} +run_rc_command "$1"