1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

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
This commit is contained in:
Masafumi Max NAKANE 1997-04-21 10:09:19 +00:00
parent 50f46787fc
commit 08ddf63aba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6265
3 changed files with 12 additions and 9 deletions

View File

@ -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>

View File

@ -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 "***********************************************************"

View File

@ -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