diff options
author | Masafumi Max NAKANE <max@FreeBSD.org> | 2001-11-21 00:42:18 +0000 |
---|---|---|
committer | Masafumi Max NAKANE <max@FreeBSD.org> | 2001-11-21 00:42:18 +0000 |
commit | 6b3a37c4f52299e38e435815a546f4389f6912ca (patch) | |
tree | e1f2d692366ace92d8cae8e48f3ab382738a73e6 /japanese/canna-server/Makefile | |
parent | Fix path to ogonkify fonts (diff) |
Adjust post-install and pkg-plist so that all necessary directories
are created with proper mode/ownership at installation time,
and thus, possible to pkg_delete cleanly.
Diffstat (limited to 'japanese/canna-server/Makefile')
-rw-r--r-- | japanese/canna-server/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/japanese/canna-server/Makefile b/japanese/canna-server/Makefile index 15212209c8a4..638e71989ab0 100644 --- a/japanese/canna-server/Makefile +++ b/japanese/canna-server/Makefile @@ -48,13 +48,16 @@ MLINKS= uilibs.3 XKanjiControl.3 uilibs.3 XLookupKanjiString.3 \ STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/canna.sh -pre-install: +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 - -post-install: if [ ! -f ${STARTUP_SCRIPT} ]; then \ ${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \ ${INSTALL_SCRIPT} ${WRKDIR}/canna.sh ${STARTUP_SCRIPT}; \ |