Update to 3.9p1
Add a space file to shut up pkgmk. Redid the sshd.init script with inspiration from the irix version.
This commit is contained in:
parent
6254231472
commit
969817e998
@ -8,8 +8,8 @@
|
|||||||
#
|
#
|
||||||
# Check the following 4 variables before running the script
|
# Check the following 4 variables before running the script
|
||||||
topdir=openssh
|
topdir=openssh
|
||||||
version=3.8.1p1
|
version=3.9p1
|
||||||
pkgver=2
|
pkgver=4
|
||||||
source[0]=$topdir-$version.tar.gz
|
source[0]=$topdir-$version.tar.gz
|
||||||
# If there are no patches, simply comment this
|
# If there are no patches, simply comment this
|
||||||
#patch[0]=
|
#patch[0]=
|
||||||
@ -17,13 +17,6 @@ source[0]=$topdir-$version.tar.gz
|
|||||||
# Source function library
|
# Source function library
|
||||||
. ${HOME}/buildpkg/scripts/buildpkg.functions
|
. ${HOME}/buildpkg/scripts/buildpkg.functions
|
||||||
|
|
||||||
# Fill in pkginfo values if necessary
|
|
||||||
# using pkgname,name,pkgcat,pkgvendor & pkgdesc
|
|
||||||
pkgname=SBossh
|
|
||||||
name="OpenSSH portable for Solaris"
|
|
||||||
pkgvendor="http://www.openssh.org"
|
|
||||||
pkgdesc="Secure Shell remote access utility"
|
|
||||||
|
|
||||||
# Define script functions and register them
|
# Define script functions and register them
|
||||||
METHODS=""
|
METHODS=""
|
||||||
reg() {
|
reg() {
|
||||||
@ -39,13 +32,15 @@ prep()
|
|||||||
reg build
|
reg build
|
||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
|
export LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
|
||||||
|
export CPPFLAGS="-I/usr/local/include/openssl"
|
||||||
# Use prngd socket (For Solaris 2.6,7 & 8 without patch 112438)
|
# Use prngd socket (For Solaris 2.6,7 & 8 without patch 112438)
|
||||||
#ENTROPY="--with-prngd-socket=/var/run/egd-pool"
|
#export ENTROPY="--with-prngd-socket=/var/run/egd-pool"
|
||||||
# Use /dev/random (For Solaris 9 & 8 with patch 112438)
|
# Use /dev/random (For Solaris 9 & 8 with patch 112438)
|
||||||
ENTROPY="--without-prngd --without-rand-helper"
|
export ENTROPY="--without-prngd --without-rand-helper"
|
||||||
setdir source
|
configure_args='--prefix=$prefix --sysconfdir=$prefix/${_sysconfdir} --datadir=$prefix/${_sharedir}/openssh --with-default-path=/usr/bin:/usr/local/bin --with-mantype=cat --with-pam --disable-suid-ssh --without-rsh --with-privsep-user=sshd --with-privsep-path=/var/empty/sshd --with-superuser-path=/usr/bin:/usr/sbin:/usr/local/bin --with-lastlog=/var/adm/lastlog --without-zlib-version-check $ENTROPY'
|
||||||
./configure --prefix=$prefix $ENTROPY --with-default-path=/usr/bin:/usr/local/bin --with-mantype=cat --with-pam --disable-suid-ssh --without-rsh --with-privsep-user=sshd --with-superuser-path=/usr/bin:/usr/sbin:/usr/local/bin --with-lastlog=/var/adm/lastlog --without-zlib-version-check
|
|
||||||
$MAKE_PROG
|
generic_build
|
||||||
}
|
}
|
||||||
|
|
||||||
reg install
|
reg install
|
||||||
@ -54,10 +49,12 @@ install()
|
|||||||
clean stage
|
clean stage
|
||||||
setdir source
|
setdir source
|
||||||
$MAKE_PROG DESTDIR=$stagedir install-nokeys
|
$MAKE_PROG DESTDIR=$stagedir install-nokeys
|
||||||
strip
|
setdir ${stagedir}${prefix}/${_sysconfdir}
|
||||||
setdir $stagedir$prefix/etc
|
for i in *; do ${MV} $i $i.default; done
|
||||||
for i in *; do mv $i $i.default; done
|
${CP} -p $srcdir/sshd.init $stagedir/usr/local/etc
|
||||||
cp -p $srcdir/sshd.init $stagedir/usr/local/etc
|
custom_install=1
|
||||||
|
generic_install
|
||||||
|
doc CREDITS ChangeLog INSTALL LICENCE OVERVIEW README README.privsep README.smartcard RFC.nroff TODO WARNING.RNG
|
||||||
}
|
}
|
||||||
|
|
||||||
reg pack
|
reg pack
|
||||||
|
4
openssh/meta/space.openssh
Normal file
4
openssh/meta/space.openssh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/etc/rcS.d/K30sshd.local 0 1
|
||||||
|
/etc/rc0.d/K30sshd.local 0 1
|
||||||
|
/etc/rc1.d/K30sshd.local 0 1
|
||||||
|
/etc/rc2.d/S78sshd.local 0 1
|
@ -4,34 +4,41 @@
|
|||||||
# History:
|
# History:
|
||||||
# Please see CVS for history information
|
# Please see CVS for history information
|
||||||
|
|
||||||
|
SSHD=/usr/local/sbin/sshd
|
||||||
|
|
||||||
pidfile=/var/run/sshd.pid
|
pidfile=/var/run/sshd.pid
|
||||||
desc="sshd"
|
|
||||||
|
kill_sshd()
|
||||||
|
{
|
||||||
|
if [ -r $pidfile ]; then
|
||||||
|
sshd_pid=`cat $pidfile`
|
||||||
|
ps -p $sshd_pid | grep sshd > /dev/null
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
/usr/bin/kill -15 -$sshd_pid
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
mode=$1
|
mode=$1
|
||||||
|
|
||||||
set `/usr/xpg4/bin/id -u`
|
set `/usr/xpg4/bin/id -u`
|
||||||
if [ $1 = "0" ]; then
|
if [ $1 = "0" ]; then
|
||||||
|
|
||||||
case $mode in
|
case $mode in
|
||||||
|
start)
|
||||||
'start' ) if [ -r $pidfile ]; then
|
kill_sshd
|
||||||
echo "A pidfile was found, trying to stop $desc first"
|
echo "Starting sshd"
|
||||||
$0 stop
|
$SSHD
|
||||||
fi
|
;;
|
||||||
echo "Starting $desc"
|
stop)
|
||||||
/usr/local/sbin/sshd
|
kill_sshd
|
||||||
;;
|
exit 0
|
||||||
'stop' ) if [ -r $pidfile ]; then
|
;;
|
||||||
echo "Stopping $desc"
|
restart)
|
||||||
kill `cat $pidfile`
|
$0 start
|
||||||
else
|
;;
|
||||||
echo "$desc already stopped (no pid file found)"
|
*)
|
||||||
fi
|
echo "Usage: $0 {start|stop|restart}"
|
||||||
;;
|
;;
|
||||||
'restart') $0 stop
|
|
||||||
$0 start
|
|
||||||
;;
|
|
||||||
*) echo "Usage: $0 {start|stop|restart}"
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user