Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2014 05:24:11 +0000 (UTC)
From:      Daichi GOTO <daichi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347843 - in head/sysutils/fsc: . files
Message-ID:  <201403110524.s2B5OBGp075207@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: daichi
Date: Tue Mar 11 05:24:10 2014
New Revision: 347843
URL: http://svnweb.freebsd.org/changeset/ports/347843
QAT: https://qat.redports.org/buildarchive/r347843/

Log:
  fixed a start-up issue
  
  PR:		ports/182294
  Submitted by:	Alex <lexus@hostelnet.ru>
  Reviewed by:	Koichiro IWAO <meta@vmeta.jp>

Added:
  head/sysutils/fsc/files/
  head/sysutils/fsc/files/patch-rc.d_fscd   (contents, props changed)
Modified:
  head/sysutils/fsc/Makefile

Modified: head/sysutils/fsc/Makefile
==============================================================================
--- head/sysutils/fsc/Makefile	Tue Mar 11 05:17:43 2014	(r347842)
+++ head/sysutils/fsc/Makefile	Tue Mar 11 05:24:10 2014	(r347843)
@@ -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
 		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

Added: head/sysutils/fsc/files/patch-rc.d_fscd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/fsc/files/patch-rc.d_fscd	Tue Mar 11 05:24:10 2014	(r347843)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403110524.s2B5OBGp075207>