diff options
author | daichi <daichi@FreeBSD.org> | 2014-03-11 13:24:10 +0800 |
---|---|---|
committer | daichi <daichi@FreeBSD.org> | 2014-03-11 13:24:10 +0800 |
commit | 8ffbe2e70d47dff9c5ef93b45f4c720a977ff06c (patch) | |
tree | 589ba783581ae3de180a8cca49d68e26d341aaeb /sysutils | |
parent | 6084ede9053000b938c39444cd12fb02f70f29e2 (diff) | |
download | freebsd-ports-gnome-8ffbe2e70d47dff9c5ef93b45f4c720a977ff06c.tar.gz freebsd-ports-gnome-8ffbe2e70d47dff9c5ef93b45f4c720a977ff06c.tar.zst freebsd-ports-gnome-8ffbe2e70d47dff9c5ef93b45f4c720a977ff06c.zip |
fixed a start-up issue
PR: ports/182294
Submitted by: Alex <lexus@hostelnet.ru>
Reviewed by: Koichiro IWAO <meta@vmeta.jp>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/fsc/Makefile | 4 | ||||
-rw-r--r-- | sysutils/fsc/files/patch-rc.d_fscd | 24 |
2 files changed, 25 insertions, 3 deletions
diff --git a/sysutils/fsc/Makefile b/sysutils/fsc/Makefile index 816fd7f5afc7..e12161e5311f 100644 --- a/sysutils/fsc/Makefile +++ b/sysutils/fsc/Makefile @@ -3,7 +3,7 @@ PORTNAME= fsc PORTVERSION= 1.0.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= LOCAL MASTER_SITE_SUBDIR= trhodes @@ -17,8 +17,6 @@ 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 post-patch: - @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \ - ${WRKSRC}/rc.d/fscd @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \ ${WRKSRC}/fscd/fscd.8 ${WRKSRC}/fscd/fscd.c \ ${WRKSRC}/fscd/fscd.conf.5 ${WRKSRC}/fscadm/fscadm.c diff --git a/sysutils/fsc/files/patch-rc.d_fscd b/sysutils/fsc/files/patch-rc.d_fscd new file mode 100644 index 000000000000..31a7cdd16d5a --- /dev/null +++ b/sysutils/fsc/files/patch-rc.d_fscd @@ -0,0 +1,24 @@ +--- rc.d/fscd.orig 2014-03-11 14:19:18.576173326 +0900 ++++ rc.d/fscd 2014-03-11 14:20:09.206171150 +0900 +@@ -13,8 +13,19 @@ + . /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" |