aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2012-06-13 01:47:14 +0800
committerbeat <beat@FreeBSD.org>2012-06-13 01:47:14 +0800
commit7dc6a2711625bf93af262491441a5fb64703f9ab (patch)
treeb9a05da1df03577ee014ca970e7d4eba994f2b1d
parenta78cc0b449b64a8e0fe72b78ae532b3b2354b30a (diff)
downloadfreebsd-ports-gnome-7dc6a2711625bf93af262491441a5fb64703f9ab.tar.gz
freebsd-ports-gnome-7dc6a2711625bf93af262491441a5fb64703f9ab.tar.zst
freebsd-ports-gnome-7dc6a2711625bf93af262491441a5fb64703f9ab.zip
- Make rc.d script executable
- Config file and binaries are installed in PREFIX - Bump PORTREVISION Approved by: trhodes@ (maintainer)
-rw-r--r--sysutils/fsc/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/fsc/Makefile b/sysutils/fsc/Makefile
index ed0c5f6d8025..77dacf459000 100644
--- a/sysutils/fsc/Makefile
+++ b/sysutils/fsc/Makefile
@@ -8,6 +8,7 @@
PORTNAME= fsc
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= LOCAL
MASTER_SITE_SUBDIR= trhodes
@@ -24,10 +25,17 @@ PLIST_FILES= bin/fscadm \
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
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fscadm/fscadm ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/fscd/fscd ${PREFIX}/sbin
- ${INSTALL_DATA} ${WRKSRC}/rc.d/fscd ${PREFIX}/etc/rc.d
+ ${INSTALL_SCRIPT} ${WRKSRC}/rc.d/fscd ${PREFIX}/etc/rc.d
${INSTALL_DATA} ${WRKSRC}/fscd/fscd.conf.5.gz ${PREFIX}/man/man5
${INSTALL_DATA} ${WRKSRC}/fscd/fscd.8.gz ${PREFIX}/man/man8
${INSTALL_DATA} ${WRKSRC}/fscadm/fscadm.8.gz ${PREFIX}/man/man8