diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2003-10-25 16:11:00 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2003-10-25 16:11:00 +0000 |
commit | 2012911aea4b1a0aac890fca7ead7a14ff5f399c (patch) | |
tree | 5c98ebd1cdc383332f6fc4e179e879f395da7c64 | |
parent | - s/USE_TCP_WRAPPERS/WITH_TCP_WRAPPERS/g (diff) |
Create a pid file and nohup.out in /var/run/esecanna/.
Notes
Notes:
svn path=/head/; revision=92127
-rw-r--r-- | japanese/esecanna/Makefile | 7 | ||||
-rw-r--r-- | japanese/esecanna/files/esecanna.sh | 4 | ||||
-rw-r--r-- | japanese/esecanna/pkg-plist | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/japanese/esecanna/Makefile b/japanese/esecanna/Makefile index a8dcfd3d2283..3e2670c091a6 100644 --- a/japanese/esecanna/Makefile +++ b/japanese/esecanna/Makefile @@ -7,11 +7,13 @@ PORTNAME= esecanna PORTVERSION= 1.0.1 +PORTREVISION= 1 CATEGORIES= japanese MASTER_SITES= http://esecanna.netfort.gr.jp/ \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= knu DISTNAME= ${PORTNAME}_${PORTVERSION} +DIST_SUBDIR= esecanna MAINTAINER= knu@FreeBSD.org COMMENT= Pseudo cannaserver which wraps some other input engines @@ -19,9 +21,9 @@ COMMENT= Pseudo cannaserver which wraps some other input engines USE_REINPLACE= yes USE_AUTOCONF= yes USE_GMAKE= yes +CONFIGURE_ARGS= --with-piddir="${PIDDIR}" -DIST_SUBDIR= esecanna - +PIDDIR= /var/run/esecanna STARTER= esecanna.sh DOCS= CREDITS CHANGES.jp README.First.jp README.jp @@ -48,6 +50,7 @@ post-install: ${MKDIR} ${PREFIX}/share/doc/esecanna cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/esecanna/ .endif + ${MKDIR} ${PIDDIR} @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff --git a/japanese/esecanna/files/esecanna.sh b/japanese/esecanna/files/esecanna.sh index 0d91e5025e59..3190f9c6cf61 100644 --- a/japanese/esecanna/files/esecanna.sh +++ b/japanese/esecanna/files/esecanna.sh @@ -3,6 +3,7 @@ # $FreeBSD$ esecannaserver="!!PREFIX!!/sbin/esecannaserver" +piddir="/var/run/esecanna" case "$1" in start) @@ -18,11 +19,12 @@ start) if [ -x $esecannaserver ]; then rm -f /tmp/.iroha_unix/IROHA echo -n ' esecanna: ' + cd $piddir nohup $esecannaserver fi ;; stop) - pidfile="/var/run/esecanna.pid" + pidfile=$piddir/esecanna.pid if [ -f $pidfile ]; then kill `cat $pidfile` && echo -n ' esecanna' rm $pidfile diff --git a/japanese/esecanna/pkg-plist b/japanese/esecanna/pkg-plist index bdd43dcf22f2..b87cd58fa00e 100644 --- a/japanese/esecanna/pkg-plist +++ b/japanese/esecanna/pkg-plist @@ -4,6 +4,8 @@ etc/rc.d/%%STARTER%% @exec mkdir -p %D/lib/esecanna @dirrm lib/esecanna sbin/esecannaserver +@exec /bin/mkdir -p /var/run/esecanna +@unexec /bin/rm -rf /var/run/esecanna %%PORTDOCS%%share/doc/esecanna/CREDITS %%PORTDOCS%%share/doc/esecanna/CHANGES.jp %%PORTDOCS%%share/doc/esecanna/README.First.jp |