diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2002-04-22 21:06:44 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2002-04-22 21:06:44 +0000 |
commit | 1f45b4ddb1433d5630d6ae689aba035c266198b9 (patch) | |
tree | 00f77300ed4e914bf25fe388bc40472030ea1199 /japanese | |
parent | Update to 1.05. (diff) |
- Stop the server when deleted.
- Disable canna.sh when installed, and enable it back when deleted.
Notes
Notes:
svn path=/head/; revision=58003
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/esecanna/Makefile | 3 | ||||
-rw-r--r-- | japanese/esecanna/pkg-plist | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/japanese/esecanna/Makefile b/japanese/esecanna/Makefile index 38d7e0bcb41c..7e661bfd7523 100644 --- a/japanese/esecanna/Makefile +++ b/japanese/esecanna/Makefile @@ -41,6 +41,9 @@ post-patch: post-install: ${INSTALL_SCRIPT} ${WRKSRC}/${STARTER} ${PREFIX}/etc/rc.d/ + if [ -x ${PREFIX}/etc/rc.d/canna.sh ]; then \ + ${CHMOD} -x ${PREFIX}/etc/rc.d/canna.sh; \ + fi ${MKDIR} ${PREFIX}/lib/esecanna .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/esecanna diff --git a/japanese/esecanna/pkg-plist b/japanese/esecanna/pkg-plist index 7c49ba0ce1e4..c08d47eac242 100644 --- a/japanese/esecanna/pkg-plist +++ b/japanese/esecanna/pkg-plist @@ -1,5 +1,8 @@ etc/esecannarc +@unexec if [ -x %D/etc/rc.d/esecanna.sh ]; then %D/etc/rc.d/esecanna.sh stop || true; fi etc/rc.d/%%STARTER%% +@unexec if [ -f %B/canna.sh ]; then chmod +x %B/canna.sh; fi +@exec if [ -x %B/canna.sh ]; then chmod -x %B/canna.sh; fi @exec mkdir -p %D/lib/esecanna @dirrm lib/esecanna sbin/esecannaserver |