summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1997-04-21 10:09:19 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1997-04-21 10:09:19 +0000
commit08ddf63aba059b2aedfcb1a65d7ea16964534d79 (patch)
tree62f6bdbc27164947e5ea332b9267730a921cc34b /mail
parent#include <sys/types.h> for <dirent.h>. (diff)
Rename the startup script to youbind.sh.sample so that users who only
want to use the client program doesn't have to mess with it. Rewrite the warning message in pkg/INSTALL. Suggested by: sampei@yy.cs.keio.ac.jp
Diffstat (limited to 'mail')
-rw-r--r--mail/youbin/Makefile6
-rw-r--r--mail/youbin/pkg-install13
-rw-r--r--mail/youbin/pkg-plist2
3 files changed, 12 insertions, 9 deletions
diff --git a/mail/youbin/Makefile b/mail/youbin/Makefile
index 5c0bb3efca13..630deae959ea 100644
--- a/mail/youbin/Makefile
+++ b/mail/youbin/Makefile
@@ -3,7 +3,7 @@
# Date created: 09 Aug 1996
# Whom: Masafumi NAKANE <max@FreeBSD.ORG>
#
-# $Id: Makefile,v 1.7 1996/11/10 21:32:56 obrien Exp $
+# $Id: Makefile,v 1.8 1997/04/21 04:05:14 max Exp $
#
DISTNAME= youbin-2.13
@@ -18,7 +18,7 @@ LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
USE_IMAKE= yes
PREFIX?= ${LOCALBASE}
-STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/youbind.sh
+STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/youbind.sh.sample
post-install:
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
@@ -31,6 +31,6 @@ post-install:
echo "fi" >> ${STARTUP_SCRIPT} ; \
chmod 755 ${STARTUP_SCRIPT} ; \
fi
- @/bin/sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+ @${SETENV} PKG_PREFIX=${PREFIX} /bin/sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
diff --git a/mail/youbin/pkg-install b/mail/youbin/pkg-install
index 649b7f3b895e..5ab7f5561a90 100644
--- a/mail/youbin/pkg-install
+++ b/mail/youbin/pkg-install
@@ -1,10 +1,13 @@
#!/bin/sh
if [ "$2" != "POST-INSTALL" ]; then exit 0; fi
-(grep -v ^# /etc/inetd.conf | grep comsat > /dev/null) || exit 0
-
echo "***********************************************************"
-echo " Now you need to edit /etc/inetd.conf and comment out the"
-echo " entry for comsat. Then, do:"
-echo " kill -HUP `cat /var/run/inetd.pid`"
+echo " Now, if you want to run the youbin server on this system:"
+echo " 1. Rename ${PKG_PREFIX}/etc/rc.d/youbind.sh.sample to "
+echo " ${PKG_PREFIX}/etc/rc.d/youbind.sh."
+grep -v ^# /etc/inetd.conf | grep comsat > /dev/null
+if [ $? -eq 0 ]; then
+ echo " 2. Comment out the entry for comsat in /etc/inetd.conf and do"
+ echo " kill -HUP `cat /var/run/inetd.pid`"
+fi
echo "***********************************************************"
diff --git a/mail/youbin/pkg-plist b/mail/youbin/pkg-plist
index b1c6eb20ecc7..73917ae2fc1e 100644
--- a/mail/youbin/pkg-plist
+++ b/mail/youbin/pkg-plist
@@ -5,4 +5,4 @@ sbin/youbind
man/man1/youbin.1.gz
man/man3/youbin_sub.3.gz
man/man8/youbind.8.gz
-etc/rc.d/youbind.sh
+etc/rc.d/youbind.sh.sample