- (djm) [Makefile.in buildpkg.sh.in configure.ac openssh.xml.in]
Support SMF in Solaris Packages if enabled by configure. Patch from Chad Mynhier, tested by dtucker@
This commit is contained in:
parent
5d8a9acef0
commit
223897a01a
|
@ -1,3 +1,8 @@
|
||||||
|
20060912
|
||||||
|
- (djm) [Makefile.in buildpkg.sh.in configure.ac openssh.xml.in]
|
||||||
|
Support SMF in Solaris Packages if enabled by configure. Patch from
|
||||||
|
Chad Mynhier, tested by dtucker@
|
||||||
|
|
||||||
20060911
|
20060911
|
||||||
- (dtucker) [cipher-aes.c] Include string.h for memcpy and friends. Noted
|
- (dtucker) [cipher-aes.c] Include string.h for memcpy and friends. Noted
|
||||||
by Pekka Savola.
|
by Pekka Savola.
|
||||||
|
@ -5428,4 +5433,4 @@
|
||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.4543 2006/09/11 10:46:13 dtucker Exp $
|
$Id: ChangeLog,v 1.4544 2006/09/12 11:54:10 djm Exp $
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: Makefile.in,v 1.281 2006/08/30 17:24:41 djm Exp $
|
# $Id: Makefile.in,v 1.282 2006/09/12 11:54:10 djm Exp $
|
||||||
|
|
||||||
# uncomment if you run a non bourne compatable shell. Ie. csh
|
# uncomment if you run a non bourne compatable shell. Ie. csh
|
||||||
#SHELL = @SH@
|
#SHELL = @SH@
|
||||||
|
@ -203,7 +203,7 @@ clean: regressclean
|
||||||
|
|
||||||
distclean: regressclean
|
distclean: regressclean
|
||||||
rm -f *.o *.a $(TARGETS) logintest config.cache config.log
|
rm -f *.o *.a $(TARGETS) logintest config.cache config.log
|
||||||
rm -f *.out core opensshd.init
|
rm -f *.out core opensshd.init openssh.xml
|
||||||
rm -f Makefile buildpkg.sh config.h config.status ssh_prng_cmds
|
rm -f Makefile buildpkg.sh config.h config.status ssh_prng_cmds
|
||||||
rm -f survey.sh openbsd-compat/regress/Makefile *~
|
rm -f survey.sh openbsd-compat/regress/Makefile *~
|
||||||
rm -rf autom4te.cache
|
rm -rf autom4te.cache
|
||||||
|
|
174
buildpkg.sh.in
174
buildpkg.sh.in
|
@ -46,6 +46,8 @@ PKG_REQUEST_LOCAL=../pkg-request.local
|
||||||
# end of sourced files
|
# end of sourced files
|
||||||
#
|
#
|
||||||
OPENSSHD=opensshd.init
|
OPENSSHD=opensshd.init
|
||||||
|
OPENSSH_MANIFEST=openssh.xml
|
||||||
|
OPENSSH_FMRI=svc:/site/openssh:default
|
||||||
|
|
||||||
PATH_GROUPADD_PROG=@PATH_GROUPADD_PROG@
|
PATH_GROUPADD_PROG=@PATH_GROUPADD_PROG@
|
||||||
PATH_USERADD_PROG=@PATH_USERADD_PROG@
|
PATH_USERADD_PROG=@PATH_USERADD_PROG@
|
||||||
|
@ -60,6 +62,10 @@ SYSTEM_DIR="/etc \
|
||||||
/etc/rc1.d \
|
/etc/rc1.d \
|
||||||
/etc/rc2.d \
|
/etc/rc2.d \
|
||||||
/etc/opt \
|
/etc/opt \
|
||||||
|
/lib \
|
||||||
|
/lib/svc \
|
||||||
|
/lib/svc/method \
|
||||||
|
/lib/svc/method/site \
|
||||||
/opt \
|
/opt \
|
||||||
/opt/bin \
|
/opt/bin \
|
||||||
/usr \
|
/usr \
|
||||||
|
@ -82,6 +88,9 @@ SYSTEM_DIR="/etc \
|
||||||
/var \
|
/var \
|
||||||
/var/opt \
|
/var/opt \
|
||||||
/var/run \
|
/var/run \
|
||||||
|
/var/svc \
|
||||||
|
/var/svc/manifest \
|
||||||
|
/var/svc/manifest/site \
|
||||||
/var/tmp \
|
/var/tmp \
|
||||||
/tmp"
|
/tmp"
|
||||||
|
|
||||||
|
@ -119,6 +128,12 @@ do
|
||||||
eval $confvar=`grep "^$confvar=" Makefile | cut -d = -f 2`
|
eval $confvar=`grep "^$confvar=" Makefile | cut -d = -f 2`
|
||||||
done
|
done
|
||||||
|
|
||||||
|
## Are we using Solaris' SMF?
|
||||||
|
DO_SMF=0
|
||||||
|
if egrep "^#define USE_SOLARIS_PROCESS_CONTRACTS" config.h > /dev/null 2>&1
|
||||||
|
then
|
||||||
|
DO_SMF=1
|
||||||
|
fi
|
||||||
|
|
||||||
## Collect value of privsep user
|
## Collect value of privsep user
|
||||||
for confvar in SSH_PRIVSEP_USER
|
for confvar in SSH_PRIVSEP_USER
|
||||||
|
@ -168,10 +183,25 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Setup our run level stuff while we are at it.
|
## Setup our run level stuff while we are at it.
|
||||||
mkdir -p $FAKE_ROOT${TEST_DIR}/etc/init.d
|
if [ $DO_SMF -eq 1 ]
|
||||||
|
then
|
||||||
|
# For Solaris' SMF, /lib/svc/method/site is the preferred place
|
||||||
|
# for start/stop scripts that aren't supplied with the OS, and
|
||||||
|
# similarly /var/svc/manifest/site for manifests.
|
||||||
|
mkdir -p $FAKE_ROOT${TEST_DIR}/lib/svc/method/site
|
||||||
|
mkdir -p $FAKE_ROOT${TEST_DIR}/var/svc/manifest/site
|
||||||
|
|
||||||
cp ${OPENSSHD} $FAKE_ROOT${TEST_DIR}/etc/init.d/${SYSVINIT_NAME}
|
cp ${OPENSSHD} $FAKE_ROOT${TEST_DIR}/lib/svc/method/site/${SYSVINIT_NAME}
|
||||||
chmod 744 $FAKE_ROOT${TEST_DIR}/etc/init.d/${SYSVINIT_NAME}
|
chmod 744 $FAKE_ROOT${TEST_DIR}/lib/svc/method/site/${SYSVINIT_NAME}
|
||||||
|
|
||||||
|
cp ${OPENSSH_MANIFEST} $FAKE_ROOT${TEST_DIR}/var/svc/manifest/site
|
||||||
|
chmod 644 $FAKE_ROOT${TEST_DIR}/var/svc/manifest/site/${OPENSSH_MANIFEST}
|
||||||
|
else
|
||||||
|
mkdir -p $FAKE_ROOT${TEST_DIR}/etc/init.d
|
||||||
|
|
||||||
|
cp ${OPENSSHD} $FAKE_ROOT${TEST_DIR}/etc/init.d/${SYSVINIT_NAME}
|
||||||
|
chmod 744 $FAKE_ROOT${TEST_DIR}/etc/init.d/${SYSVINIT_NAME}
|
||||||
|
fi
|
||||||
|
|
||||||
[ "${PERMIT_ROOT_LOGIN}" = no ] && \
|
[ "${PERMIT_ROOT_LOGIN}" = no ] && \
|
||||||
perl -p -i -e "s/#PermitRootLogin yes/PermitRootLogin no/" \
|
perl -p -i -e "s/#PermitRootLogin yes/PermitRootLogin no/" \
|
||||||
|
@ -221,15 +251,22 @@ touch depend
|
||||||
|
|
||||||
## Build space file
|
## Build space file
|
||||||
echo "Building space file..."
|
echo "Building space file..."
|
||||||
cat > space << _EOF
|
if [ $DO_SMF -eq 1 ]
|
||||||
# extra space required by start/stop links added by installf in postinstall
|
then
|
||||||
|
# XXX Is this necessary? If not, remove space line from mk-proto.awk.
|
||||||
|
touch space
|
||||||
|
else
|
||||||
|
cat > space << _EOF
|
||||||
|
# extra space required by start/stop links added by installf
|
||||||
|
# in postinstall
|
||||||
$TEST_DIR/etc/rc0.d/${SYSVINITSTOPT}${SYSVINIT_NAME} 0 1
|
$TEST_DIR/etc/rc0.d/${SYSVINITSTOPT}${SYSVINIT_NAME} 0 1
|
||||||
$TEST_DIR/etc/rc2.d/${SYSVINITSTART}${SYSVINIT_NAME} 0 1
|
$TEST_DIR/etc/rc2.d/${SYSVINITSTART}${SYSVINIT_NAME} 0 1
|
||||||
_EOF
|
_EOF
|
||||||
[ "$RC1_D" = no ] || \
|
[ "$RC1_D" = no ] || \
|
||||||
echo "$TEST_DIR/etc/rc1.d/${SYSVINITSTOPT}${SYSVINIT_NAME} 0 1" >> space
|
echo "$TEST_DIR/etc/rc1.d/${SYSVINITSTOPT}${SYSVINIT_NAME} 0 1" >> space
|
||||||
[ "$RCS_D" = yes ] && \
|
[ "$RCS_D" = yes ] && \
|
||||||
echo "$TEST_DIR/etc/rcS.d/${SYSVINITSTOPT}${SYSVINIT_NAME} 0 1" >> space
|
echo "$TEST_DIR/etc/rcS.d/${SYSVINITSTOPT}${SYSVINIT_NAME} 0 1" >> space
|
||||||
|
fi
|
||||||
|
|
||||||
## Build preinstall file
|
## Build preinstall file
|
||||||
echo "Building preinstall file..."
|
echo "Building preinstall file..."
|
||||||
|
@ -243,7 +280,16 @@ _EOF
|
||||||
|
|
||||||
cat >> preinstall << _EOF
|
cat >> preinstall << _EOF
|
||||||
#
|
#
|
||||||
[ "\${PRE_INS_STOP}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} stop
|
if [ "\${PRE_INS_STOP}" = "yes" ]
|
||||||
|
then
|
||||||
|
if [ $DO_SMF -eq 1 ]
|
||||||
|
then
|
||||||
|
svcadm disable $OPENSSH_FMRI
|
||||||
|
else
|
||||||
|
${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} stop
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
_EOF
|
_EOF
|
||||||
|
|
||||||
|
@ -265,28 +311,41 @@ cat > postinstall << _EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# make rc?.d dirs only if we are doing a test install
|
# make rc?.d dirs only if we are doing a test install
|
||||||
[ -n "${TEST_DIR}" ] && {
|
[ -n "${TEST_DIR}" ] && [ $DO_SMF -ne 1 ] && {
|
||||||
[ "$RCS_D" = yes ] && mkdir -p ${TEST_DIR}/etc/rcS.d
|
[ "$RCS_D" = yes ] && mkdir -p ${TEST_DIR}/etc/rcS.d
|
||||||
mkdir -p ${TEST_DIR}/etc/rc0.d
|
mkdir -p ${TEST_DIR}/etc/rc0.d
|
||||||
[ "$RC1_D" = no ] || mkdir -p ${TEST_DIR}/etc/rc1.d
|
[ "$RC1_D" = no ] || mkdir -p ${TEST_DIR}/etc/rc1.d
|
||||||
mkdir -p ${TEST_DIR}/etc/rc2.d
|
mkdir -p ${TEST_DIR}/etc/rc2.d
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "\${USE_SYM_LINKS}" = yes ]
|
if [ $DO_SMF -eq 1 ]
|
||||||
then
|
then
|
||||||
[ "$RCS_D" = yes ] && \
|
# Delete the existing service, if it exists, then import the
|
||||||
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rcS.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
# new one.
|
||||||
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc0.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
if svcs $OPENSSH_FMRI > /dev/null 2>&1
|
||||||
[ "$RC1_D" = no ] || \
|
then
|
||||||
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc1.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
svccfg delete -f $OPENSSH_FMRI
|
||||||
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc2.d/${SYSVINITSTART}${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
fi
|
||||||
|
# NOTE, if manifest enables sshd by default, this will actually
|
||||||
|
# start the daemon, which may not be what the user wants.
|
||||||
|
svccfg import ${TEST_DIR}/var/svc/manifest/site/$OPENSSH_MANIFEST
|
||||||
else
|
else
|
||||||
[ "$RCS_D" = yes ] && \
|
if [ "\${USE_SYM_LINKS}" = yes ]
|
||||||
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rcS.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=\${PKG_INSTALL_ROOT}$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
then
|
||||||
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc0.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=\${PKG_INSTALL_ROOT}$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
[ "$RCS_D" = yes ] && \
|
||||||
[ "$RC1_D" = no ] || \
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rcS.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
||||||
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc1.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=\${PKG_INSTALL_ROOT}$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc0.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
||||||
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc2.d/${SYSVINITSTART}${SYSVINIT_NAME}=\${PKG_INSTALL_ROOT}$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
[ "$RC1_D" = no ] || \
|
||||||
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc1.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
||||||
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc2.d/${SYSVINITSTART}${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
||||||
|
else
|
||||||
|
[ "$RCS_D" = yes ] && \
|
||||||
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rcS.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=\${PKG_INSTALL_ROOT}$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
||||||
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc0.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=\${PKG_INSTALL_ROOT}$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
||||||
|
[ "$RC1_D" = no ] || \
|
||||||
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc1.d/${SYSVINITSTOPT}${SYSVINIT_NAME}=\${PKG_INSTALL_ROOT}$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
||||||
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc2.d/${SYSVINITSTART}${SYSVINIT_NAME}=\${PKG_INSTALL_ROOT}$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If piddir doesn't exist we add it. (Ie. --with-pid-dir=/var/opt/ssh)
|
# If piddir doesn't exist we add it. (Ie. --with-pid-dir=/var/opt/ssh)
|
||||||
|
@ -357,7 +416,17 @@ fi
|
||||||
\$chroot ${PATH_PASSWD_PROG} -l $SSH_PRIVSEP_USER
|
\$chroot ${PATH_PASSWD_PROG} -l $SSH_PRIVSEP_USER
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "\${POST_INS_START}" = "yes" ] && ${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start
|
if [ "\${POST_INS_START}" = "yes" ]
|
||||||
|
then
|
||||||
|
if [ $DO_SMF -eq 1 ]
|
||||||
|
then
|
||||||
|
# See svccfg import note above. The service may already
|
||||||
|
# be started.
|
||||||
|
svcadm enable $OPENSSH_FMRI
|
||||||
|
else
|
||||||
|
${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} start
|
||||||
|
fi
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
_EOF
|
_EOF
|
||||||
|
|
||||||
|
@ -366,7 +435,12 @@ echo "Building preremove file..."
|
||||||
cat > preremove << _EOF
|
cat > preremove << _EOF
|
||||||
#! ${SCRIPT_SHELL}
|
#! ${SCRIPT_SHELL}
|
||||||
#
|
#
|
||||||
${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} stop
|
if [ $DO_SMF -eq 1 ]
|
||||||
|
then
|
||||||
|
svcadm disable $OPENSSH_FMRI
|
||||||
|
else
|
||||||
|
${TEST_DIR}/etc/init.d/${SYSVINIT_NAME} stop
|
||||||
|
fi
|
||||||
_EOF
|
_EOF
|
||||||
|
|
||||||
# local preremove changes here
|
# local preremove changes here
|
||||||
|
@ -381,6 +455,13 @@ echo "Building postremove file..."
|
||||||
cat > postremove << _EOF
|
cat > postremove << _EOF
|
||||||
#! ${SCRIPT_SHELL}
|
#! ${SCRIPT_SHELL}
|
||||||
#
|
#
|
||||||
|
if [ $DO_SMF -eq 1 ]
|
||||||
|
then
|
||||||
|
if svcs $OPENSSH_FMRI > /dev/null 2>&1
|
||||||
|
then
|
||||||
|
svccfg delete -f $OPENSSH_FMRI
|
||||||
|
fi
|
||||||
|
fi
|
||||||
_EOF
|
_EOF
|
||||||
|
|
||||||
# local postremove changes here
|
# local postremove changes here
|
||||||
|
@ -446,7 +527,45 @@ done
|
||||||
|
|
||||||
_EOF
|
_EOF
|
||||||
|
|
||||||
cat >> request << _EOF
|
if [ $DO_SMF -eq 1 ]
|
||||||
|
then
|
||||||
|
# This could get hairy, as the running sshd may not be under SMF.
|
||||||
|
# We'll assume an earlier version of OpenSSH started via SMF.
|
||||||
|
cat >> request << _EOF
|
||||||
|
PRE_INS_STOP=no
|
||||||
|
POST_INS_START=no
|
||||||
|
# determine if should restart the daemon
|
||||||
|
if [ -s ${piddir}/sshd.pid ] && \
|
||||||
|
/usr/bin/svcs $OPENSSH_FMRI 2>&1 | egrep "^online" > /dev/null 2>&1
|
||||||
|
then
|
||||||
|
ans=\`ckyorn -d n \
|
||||||
|
-p "Should the running sshd daemon be restarted? ${DEF_MSG}"\` || exit \$?
|
||||||
|
case \$ans in
|
||||||
|
[y,Y]*) PRE_INS_STOP=yes
|
||||||
|
POST_INS_START=yes
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
# determine if we should start sshd
|
||||||
|
ans=\`ckyorn -d n \
|
||||||
|
-p "Start the sshd daemon after installing this package? ${DEF_MSG}"\` || exit \$?
|
||||||
|
case \$ans in
|
||||||
|
[y,Y]*) POST_INS_START=yes ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# make parameters available to installation service,
|
||||||
|
# and so to any other packaging scripts
|
||||||
|
cat >\$1 <<!
|
||||||
|
PRE_INS_STOP='\$PRE_INS_STOP'
|
||||||
|
POST_INS_START='\$POST_INS_START'
|
||||||
|
!
|
||||||
|
|
||||||
|
_EOF
|
||||||
|
else
|
||||||
|
cat >> request << _EOF
|
||||||
USE_SYM_LINKS=no
|
USE_SYM_LINKS=no
|
||||||
PRE_INS_STOP=no
|
PRE_INS_STOP=no
|
||||||
POST_INS_START=no
|
POST_INS_START=no
|
||||||
|
@ -487,6 +606,7 @@ POST_INS_START='\$POST_INS_START'
|
||||||
!
|
!
|
||||||
|
|
||||||
_EOF
|
_EOF
|
||||||
|
fi
|
||||||
|
|
||||||
# local request changes here
|
# local request changes here
|
||||||
[ -s "${PKG_REQUEST_LOCAL}" ] && . ${PKG_REQUEST_LOCAL}
|
[ -s "${PKG_REQUEST_LOCAL}" ] && . ${PKG_REQUEST_LOCAL}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: configure.ac,v 1.363 2006/09/10 10:25:51 dtucker Exp $
|
# $Id: configure.ac,v 1.364 2006/09/12 11:54:11 djm Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 1999-2004 Damien Miller
|
# Copyright (c) 1999-2004 Damien Miller
|
||||||
#
|
#
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
|
AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
|
||||||
AC_REVISION($Revision: 1.363 $)
|
AC_REVISION($Revision: 1.364 $)
|
||||||
AC_CONFIG_SRCDIR([ssh.c])
|
AC_CONFIG_SRCDIR([ssh.c])
|
||||||
|
|
||||||
AC_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADER(config.h)
|
||||||
|
@ -3897,8 +3897,9 @@ dnl Add now.
|
||||||
CFLAGS="$CFLAGS $werror_flags"
|
CFLAGS="$CFLAGS $werror_flags"
|
||||||
|
|
||||||
AC_EXEEXT
|
AC_EXEEXT
|
||||||
AC_CONFIG_FILES([Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile \
|
AC_CONFIG_FILES([Makefile buildpkg.sh opensshd.init openssh.xml \
|
||||||
openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh])
|
openbsd-compat/Makefile openbsd-compat/regress/Makefile \
|
||||||
|
scard/Makefile ssh_prng_cmds survey.sh])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
# Print summary of options
|
# Print summary of options
|
||||||
|
|
|
@ -0,0 +1,87 @@
|
||||||
|
<?xml version='1.0'?>
|
||||||
|
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
|
||||||
|
<!--
|
||||||
|
Copyright (c) 2006 Chad Mynhier.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<service_bundle type='manifest' name='OpenSSH server'>
|
||||||
|
|
||||||
|
<service
|
||||||
|
name='site/openssh'
|
||||||
|
type='service'
|
||||||
|
version='1'>
|
||||||
|
|
||||||
|
<create_default_instance enabled='false'/>
|
||||||
|
|
||||||
|
<single_instance/>
|
||||||
|
|
||||||
|
<dependency
|
||||||
|
name='filesystem-local'
|
||||||
|
grouping='require_all'
|
||||||
|
restart_on='none'
|
||||||
|
type='service'>
|
||||||
|
<service_fmri value='svc:/system/filesystem/local'/>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency
|
||||||
|
name='network'
|
||||||
|
grouping='require_all'
|
||||||
|
restart_on='none'
|
||||||
|
type='service'>
|
||||||
|
<service_fmri value='svc:/milestone/network'/>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependent
|
||||||
|
name='multi-user-server'
|
||||||
|
restart_on='none'
|
||||||
|
grouping='optional_all'>
|
||||||
|
<service_fmri value='svc:/milestone/multi-user-server'/>
|
||||||
|
</dependent>
|
||||||
|
|
||||||
|
<exec_method
|
||||||
|
name='start'
|
||||||
|
type='method'
|
||||||
|
exec='/lib/svc/method/site/opensshd start'
|
||||||
|
timeout_seconds='60'>
|
||||||
|
<method_context/>
|
||||||
|
</exec_method>
|
||||||
|
|
||||||
|
<exec_method
|
||||||
|
name='stop'
|
||||||
|
type='method'
|
||||||
|
exec=':kill'
|
||||||
|
timeout_seconds='60'>
|
||||||
|
<method_context/>
|
||||||
|
</exec_method>
|
||||||
|
|
||||||
|
<property_group
|
||||||
|
name='startd'
|
||||||
|
type='framework'>
|
||||||
|
<propval name='ignore_error' type='astring' value='core,signal'/>
|
||||||
|
</property_group>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<common_name>
|
||||||
|
<loctext xml:lang='C'>OpenSSH server</loctext>
|
||||||
|
</common_name>
|
||||||
|
<documentation>
|
||||||
|
<manpage
|
||||||
|
title='sshd'
|
||||||
|
section='1M'
|
||||||
|
manpath='@prefix@/man'/>
|
||||||
|
</documentation>
|
||||||
|
</template>
|
||||||
|
</service>
|
||||||
|
</service_bundle>
|
Loading…
Reference in New Issue