aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/Canna/Makefile
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-08-09 10:40:20 +0800
committerasami <asami@FreeBSD.org>1996-08-09 10:40:20 +0800
commitb2b153cca0e127fd5c533241c64ca70312810785 (patch)
tree830ba60502b825b8506bccccc454017df0fbf8ae /japanese/Canna/Makefile
parentaadbdff5d562b28989a77e7473e3458ab38dd806 (diff)
downloadfreebsd-ports-graphics-b2b153cca0e127fd5c533241c64ca70312810785.tar.gz
freebsd-ports-graphics-b2b153cca0e127fd5c533241c64ca70312810785.tar.zst
freebsd-ports-graphics-b2b153cca0e127fd5c533241c64ca70312810785.zip
Install startup script in .../etc/rc.d.
Submitted by: Masafumi NAKANE <max@sfc.wide.ad.jp>
Diffstat (limited to 'japanese/Canna/Makefile')
-rw-r--r--japanese/Canna/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/japanese/Canna/Makefile b/japanese/Canna/Makefile
index 85a67b81c63..bfbe6735ca9 100644
--- a/japanese/Canna/Makefile
+++ b/japanese/Canna/Makefile
@@ -4,7 +4,7 @@
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
# NIIMI Satoshi <sa2c@and.or.jp>
#
-# $Id: Makefile,v 1.6 1995/06/24 11:38:36 asami Exp $
+# $Id: Makefile,v 1.7 1995/06/26 09:27:45 asami Exp $
#
DISTNAME= Canna32p2
@@ -22,6 +22,16 @@ pre-configure:
@(cd ${WRKSRC}; xmkmf)
post-install:
- ldconfig -m ${PREFIX}/lib
+ /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'; $$canna" >> ${PREFIX}/etc/rc.d/canna.sh ;\
+ echo "fi" >> ${PREFIX}/etc/rc.d/canna.sh ;\
+ chmod 755 ${PREFIX}/etc/rc.d/canna.sh ;\
+ fi
.include <bsd.port.mk>