o add INSTALL script that checks if sshd running. If not spit
out a message saying how to start the daemon o call the INSTALL script from the Makefile o verify the script is processed when installing the ssh package THIS PORT IS NOW FROZEN FOR 2.5
This commit is contained in:
parent
6c640f17ee
commit
38b2464db4
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.30 1998/12/16 20:24:50 marc Exp $
|
||||
# $OpenBSD: Makefile,v 1.31 1999/04/08 05:36:11 marc Exp $
|
||||
#
|
||||
# Maximal ssh package requires YES values for
|
||||
# USE_PERL, USE_TCPWRAP
|
||||
@ -115,6 +115,8 @@ post-install:
|
||||
${RM} -f ${PREFIX}/man/man1/slogin.1
|
||||
${LN} -sf ssh.1 ${PREFIX}/man/man1/slogin.1
|
||||
.endif
|
||||
@${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
|
53
security/ssh/pkg/INSTALL
Normal file
53
security/ssh/pkg/INSTALL
Normal file
@ -0,0 +1,53 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1 1999/04/08 05:36:12 marc Exp $
|
||||
#
|
||||
# Pre/post-installation setup of ssh
|
||||
|
||||
# Function: tell the user what s/he needs to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To start $1 run the following command as root"
|
||||
echo "|"
|
||||
echo "| ${PREFIX}/sbin/sshd"
|
||||
echo "|"
|
||||
echo "| This is done automatically in the stock /etc/rc.local"
|
||||
echo "| whenever you restart your system"
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
PIDFILE=/var/run/sshd.pid
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ ! -f $PIDFILE ]; then
|
||||
do_notice $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user