summaryrefslogtreecommitdiff
path: root/japanese/canna-server/Makefile
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>2002-05-16 07:49:43 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>2002-05-16 07:49:43 +0000
commit60db3026133753bec531207af02423f7861146f7 (patch)
tree51777e55abfe3a566e8fe18224e07bc74304fe85 /japanese/canna-server/Makefile
parentUpgrade to version 2.1 RC2. (diff)
- Canna doesn't use /var/run any longer.
- Improve the startup script. - Modify the pkg-plist so that pkg_delete won't complain even when user dictionaries are installed. - Use correct syntax for chown (bin.bin -> bin:bin) Credits: nyan@jp.FreeBSD.org nork@FreeBSD.org takachan@running-dog.net knu@iDaemons.org
Diffstat (limited to 'japanese/canna-server/Makefile')
-rw-r--r--japanese/canna-server/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/japanese/canna-server/Makefile b/japanese/canna-server/Makefile
index a41f7b1c7d15..bf73421eeb8e 100644
--- a/japanese/canna-server/Makefile
+++ b/japanese/canna-server/Makefile
@@ -48,16 +48,17 @@ MLINKS= uilib.3 XKanjiControl.3 uilib.3 XLookupKanjiString.3 \
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/canna.sh
+post-build:
+ @${SED} -e "s,@RM@,${RM},g; s,@TOUCH@,${TOUCH},g; \
+ s,@CHOWN@,${CHOWN},g" ${FILESDIR}/canna.sh.in \
+ > ${WRKDIR}/canna.sh
+
post-install:
- ${MKDIR} /var/run/canna
- ${CHOWN} bin:bin /var/run/canna
.for f in user user/user group
${MKDIR} ${PREFIX}/lib/canna/dic/$f
${CHOWN} bin:bin ${PREFIX}/lib/canna/dic/$f
${CHMOD} 775 ${PREFIX}/lib/canna/dic/$f
.endfor
- @${SED} -e "s;@PREFIX@;${PREFIX};g" ${FILESDIR}/canna.sh.in \
- >${WRKDIR}/canna.sh
if [ ! -f ${STARTUP_SCRIPT} ]; then \
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
${INSTALL_SCRIPT} ${WRKDIR}/canna.sh ${STARTUP_SCRIPT}; \