1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Update to 1.1

PR:		237581
Submitted by:	olevole at olevole dot ru
This commit is contained in:
Kirill Ponomarev 2019-04-26 13:22:08 +00:00
parent e83425b2e8
commit 286a33dffe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=500105
3 changed files with 11 additions and 38 deletions

View File

@ -2,19 +2,22 @@
# $FreeBSD$
PORTNAME= fsc
PORTVERSION= 1.0.1
PORTREVISION= 4
PORTVERSION= 1.1
CATEGORIES= sysutils
MASTER_SITES= LOCAL/trhodes
MAINTAINER= ports@FreeBSD.org
COMMENT= The FreeBSD Services Control family of utilities
COMMENT= FreeBSD Services Control family of utilities
WRKSRC= ${WRKDIR}/fsc
LICENSE= BSD2CLAUSE
PLIST_FILES= bin/fscadm sbin/fscd etc/rc.d/fscd man/man5/fscd.conf.5.gz \
man/man8/fscadm.8.gz man/man8/fscd.8.gz
USE_GITHUB= yes
GH_ACCOUNT= bsdtrhodes
GH_PROJECT= freebsd-fscd
GH_TAGNAME= ac80298
post-patch:
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
${WRKSRC}/fscd/fscd.8 ${WRKSRC}/fscd/fscd.c \

View File

@ -1,2 +1,3 @@
SHA256 (fsc-1.0.1.tar.gz) = 41979af3f5ed2fd37e30839cacc22408ac65f2fd20df30de1e5114bc0d2e733b
SIZE (fsc-1.0.1.tar.gz) = 12435
TIMESTAMP = 1556283548
SHA256 (bsdtrhodes-freebsd-fscd-1.1-ac80298_GH0.tar.gz) = ab7e90c92aa5f86d91d1ea058ad5cb93614f95c710f5df3ceb23086519abea4e
SIZE (bsdtrhodes-freebsd-fscd-1.1-ac80298_GH0.tar.gz) = 13951

View File

@ -1,31 +0,0 @@
--- rc.d/fscd.orig 2014-03-11 14:19:18.576173326 +0900
+++ rc.d/fscd 2014-03-11 14:20:09.206171150 +0900
@@ -7,14 +7,25 @@
# PROVIDE: fscd
# REQUIRE: DAEMON syslogd
-# BEFORE: NETWORKING LOGIN
+# BEFORE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="fscd"
-command="/usr/sbin/${name}"
+rcvar="fscd_enable"
+load_rc_config $name
+: ${fscd_enable="NO"}
+
+command="/usr/local/sbin/${name}"
pidfile="/var/run/${name}.pid"
+required_files="/usr/local/etc/$name.conf"
+
+start_cmd=fscd_start
+
+fscd_start()
+{
+ /usr/sbin/daemon -cf ${command}
+}
-load_rc_config $name
run_rc_command "$1"