aboutsummaryrefslogtreecommitdiff
path: root/japanese/canna-lib/Makefile
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1996-09-18 08:02:06 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1996-09-18 08:02:06 +0000
commite1d8feedad3c3649171f69c58f559fe0bb7af055 (patch)
tree9154d3c2c84c8bb4b2ffd546795ead8cd8c91113 /japanese/canna-lib/Makefile
parent13274c73deb769310082142af61ce831c73def98 (diff)
downloadports-e1d8feedad3c3649171f69c58f559fe0bb7af055.tar.gz
ports-e1d8feedad3c3649171f69c58f559fe0bb7af055.zip
Changed the maintainer from Satoshi to Max.
This port now installs man pages. (Patch-ac is responsible for following three items.) This port now installs files into ${PREFIX}/{bin,include/canna,lib/canna} instead of /usr/local/Canna/{bin,include,lib}. Changed the location and the name of the lock file to /var/run/Canna.pid. Changed the location of the log file to /var/log. Now the readme file is not installed into the directory where the lock file resides. (patch-ab) In post-install:, /etc/services is checked and the user will be notified if there is no entry for Canna. Added new patch to modify source of several man pages to avoid it displaying an empty page before showing its content. (patch-ad)
Notes
Notes: svn path=/head/; revision=3805
Diffstat (limited to 'japanese/canna-lib/Makefile')
-rw-r--r--japanese/canna-lib/Makefile52
1 files changed, 38 insertions, 14 deletions
diff --git a/japanese/canna-lib/Makefile b/japanese/canna-lib/Makefile
index 6c65f0d0ecec..d932855ba980 100644
--- a/japanese/canna-lib/Makefile
+++ b/japanese/canna-lib/Makefile
@@ -13,26 +13,50 @@ CATEGORIES+= japanese
MASTER_SITES= ftp://ftp.nec.co.jp/pub/packages/Canna32/ \
ftp://ftp.cdrom.com/pub/japanese/titech/Canna32/
-MAINTAINER= asami@FreeBSD.ORG
+MAINTAINER= max@FreeBSD.ORG
-PATCH_STRIP= -p1
+USE_IMAKE= yes
+PREFIX?= /usr/local
ALL_TARGET= canna
-pre-configure:
- @(cd ${WRKSRC}; xmkmf)
+MAN3PAGES= RkRgnBun.3 RkDefineDic.3 RkDeleteDic.3 RkEndBun.3 \
+ RkEnlarge.3 RkFinalize.3 RkGetDicList.3 RkGetKanji.3 \
+ RkGetLex.3 RkGetStat.3 RkGetYomi.3 RkGoto.3 RkInitialize.3 \
+ RkIntro.3 RkLeft.3 RkMountD.3 RkNext.3 RkNfer.3 RkPrev.3 \
+ RkRemountDic.3 RkResize.3 RkRight.3 RkShorten.3 RkStoreYomi.3 \
+ RkUnmountDic.3 RkXfer.3 cannalib.3 uilib.3 RkCloseRoma.3 \
+ RkCvtEuc.3 RkCvtHan.3 RkCvtHira.3 RkCvtKana.3 RkCvtRoma.3 \
+ RkCvtZen.3 RkMapPhonogram.3 RkMapRoma.3 RkOpenRoma.3
+MAN1PAGES= cannaserver.1 ctow.1 dicar.1 dpromdic.1 splitword.1 wtoc.1 \
+ mkromdic.1 mkbindic.1 dpbindic.1 cannakill.1 canvert.1 \
+ cannacheck.1 cannastat.1 cshost.1 catdic.1 cpdic.1 lsdic.1 \
+ mkdic.1 mvdic.1 rmdic.1 addwords.1 delwords.1
+
+STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/canna.sh
post-install:
/sbin/ldconfig -m ${PREFIX}/lib
- @if [ ! -f ${PREFIX}/etc/rc.d/canna.sh ]; then \
- echo "Installing ${PREFIX}/etc/rc.d/canna.sh startup file."; \
- echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/canna.sh; \
- echo "canna=/usr/local/canna/bin/cannaserver" >> ${PREFIX}/etc/rc.d/canna.sh ;\
- echo 'if [ -f $$canna ]; then' >> ${PREFIX}/etc/rc.d/canna.sh ;\
- echo " rm -f /var/spool/canna/lock/.CANNALOCK*" >> ${PREFIX}/etc/rc.d/canna.sh ;\
- echo " echo -n ' Canna'" >> ${PREFIX}/etc/rc.d/canna.sh ;\
- echo '$$canna' >> ${PREFIX}/etc/rc.d/canna.sh ;\
- echo "fi" >> ${PREFIX}/etc/rc.d/canna.sh ;\
- chmod 755 ${PREFIX}/etc/rc.d/canna.sh ;\
+.if !defined(NOMANCOMPRESS)
+ for f in ${MAN3PAGES} ; do gzip -9nf ${PREFIX}/man/man3/$$f ; done
+ for f in ${MAN1PAGES} ; do gzip -9nf ${PREFIX}/man/man1/$$f ; done
+.endif
+ @if [ ! -f ${STARTUP_SCRIPT} ]; then \
+ echo "Installing ${STARTUP_SCRIPT} startup file."; \
+ echo '#!/bin/sh' > ${STARTUP_SCRIPT}; \
+ echo 'canna=${PREFIX}/sbin/cannaserver' \
+ >> ${STARTUP_SCRIPT} ; \
+ echo 'if [ -f $$canna ]; then' >> ${STARTUP_SCRIPT} ; \
+ echo ' rm -f /var/run/Canna.pid' >> ${STARTUP_SCRIPT};\
+ echo " echo -n ' Canna'" >> ${STARTUP_SCRIPT}; \
+ echo ' $$canna' >> ${STARTUP_SCRIPT} ; \
+ echo "fi" >> ${STARTUP_SCRIPT} ; \
+ chmod 755 ${STARTUP_SCRIPT} ; \
+ chown bin.bin ${STARTUP_SCRIPT}; \
fi
+ @(grep -v ^# /etc/services | grep canna >/dev/null) || \
+ (echo "Now, you need to add following entry to your /etc/services:" ;\
+ echo ;\
+ echo " canna 5680/tcp" ;\
+ echo )
.include <bsd.port.mk>