diff options
author | knu <knu@FreeBSD.org> | 2002-04-23 05:06:44 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-04-23 05:06:44 +0800 |
commit | cddf1ac8e62a108d7c5c4a50ea5850f6f2f26d5e (patch) | |
tree | 00dbbdae88266029715872d4a680d984905f6342 /japanese | |
parent | 0ff76ff9b59979c42ad8cbdb2d59fdce849dad22 (diff) | |
download | freebsd-ports-gnome-cddf1ac8e62a108d7c5c4a50ea5850f6f2f26d5e.tar.gz freebsd-ports-gnome-cddf1ac8e62a108d7c5c4a50ea5850f6f2f26d5e.tar.zst freebsd-ports-gnome-cddf1ac8e62a108d7c5c4a50ea5850f6f2f26d5e.zip |
- Stop the server when deleted.
- Disable canna.sh when installed, and enable it back when deleted.
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 |