mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-19 23:36:54 +00:00
[openssh/contrib/solaris/buildpkg.sh] add PKG_INSTALL_ROOT to
work in a jumpstart environment. patch by kbrint@rufus.net
This commit is contained in:
parent
100d586df2
commit
88177245cb
@ -1,3 +1,7 @@
|
|||||||
|
20020708
|
||||||
|
- (tim) [openssh/contrib/solaris/buildpkg.sh] add PKG_INSTALL_ROOT to
|
||||||
|
work in a jumpstart environment. patch by kbrint@rufus.net
|
||||||
|
|
||||||
20020707
|
20020707
|
||||||
- (tim) [Makefile.in] use umask instead of chmod on $(PRIVSEP_PATH)
|
- (tim) [Makefile.in] use umask instead of chmod on $(PRIVSEP_PATH)
|
||||||
- (tim) [acconfig.h configure.ac sshd.c]
|
- (tim) [acconfig.h configure.ac sshd.c]
|
||||||
@ -1309,4 +1313,4 @@
|
|||||||
- (stevesk) entropy.c: typo in debug message
|
- (stevesk) entropy.c: typo in debug message
|
||||||
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2348 2002/07/07 22:25:29 mouring Exp $
|
$Id: ChangeLog,v 1.2349 2002/07/09 02:02:10 tim Exp $
|
||||||
|
@ -11,7 +11,9 @@ umask 022
|
|||||||
# Options for building the package
|
# Options for building the package
|
||||||
# You can create a config.local with your customized options
|
# You can create a config.local with your customized options
|
||||||
#
|
#
|
||||||
# uncommenting TEST_DIR and using configure--prefix=/var/tmp and
|
# uncommenting TEST_DIR and using
|
||||||
|
# configure --prefix=/var/tmp --with-privsep-path=/var/tmp/empty
|
||||||
|
# and
|
||||||
# PKGNAME=tOpenSSH should allow testing a package without interfering
|
# PKGNAME=tOpenSSH should allow testing a package without interfering
|
||||||
# with a real OpenSSH package on a system.
|
# with a real OpenSSH package on a system.
|
||||||
#TEST_DIR=/var/tmp # leave commented out for production build
|
#TEST_DIR=/var/tmp # leave commented out for production build
|
||||||
@ -106,7 +108,8 @@ case ${UNAME_S} in
|
|||||||
RCS_D=yes
|
RCS_D=yes
|
||||||
DEF_MSG="(default: n)"
|
DEF_MSG="(default: n)"
|
||||||
;;
|
;;
|
||||||
*) ARCH=`uname -m` ;;
|
*) ARCH=`uname -m`
|
||||||
|
DEF_MSG="\n" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
## Setup our run level stuff while we are at it.
|
## Setup our run level stuff while we are at it.
|
||||||
@ -171,13 +174,16 @@ echo "Building postinstall file..."
|
|||||||
cat > postinstall << _EOF
|
cat > postinstall << _EOF
|
||||||
#! /sbin/sh
|
#! /sbin/sh
|
||||||
#
|
#
|
||||||
[ -f ${sysconfdir}/ssh_config ] || \\
|
[ -f \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_config ] || \\
|
||||||
cp -p ${sysconfdir}/ssh_config.default ${sysconfdir}/ssh_config
|
cp -p \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_config.default \\
|
||||||
[ -f ${sysconfdir}/sshd_config ] || \\
|
\${PKG_INSTALL_ROOT}${sysconfdir}/ssh_config
|
||||||
cp -p ${sysconfdir}/sshd_config.default ${sysconfdir}/sshd_config
|
[ -f \${PKG_INSTALL_ROOT}${sysconfdir}/sshd_config ] || \\
|
||||||
[ -f ${sysconfdir}/ssh_prng_cmds.default ] && {
|
cp -p \${PKG_INSTALL_ROOT}${sysconfdir}/sshd_config.default \\
|
||||||
[ -f ${sysconfdir}/ssh_prng_cmds ] || \\
|
\${PKG_INSTALL_ROOT}${sysconfdir}/sshd_config
|
||||||
cp -p ${sysconfdir}/ssh_prng_cmds.default ${sysconfdir}/ssh_prng_cmds
|
[ -f \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_prng_cmds.default ] && {
|
||||||
|
[ -f \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_prng_cmds ] || \\
|
||||||
|
cp -p \${PKG_INSTALL_ROOT}${sysconfdir}/ssh_prng_cmds.default \\
|
||||||
|
\${PKG_INSTALL_ROOT}${sysconfdir}/ssh_prng_cmds
|
||||||
}
|
}
|
||||||
|
|
||||||
# make rc?.d dirs only if we are doing a test install
|
# make rc?.d dirs only if we are doing a test install
|
||||||
@ -191,20 +197,20 @@ cat > postinstall << _EOF
|
|||||||
if [ "\${USE_SYM_LINKS}" = yes ]
|
if [ "\${USE_SYM_LINKS}" = yes ]
|
||||||
then
|
then
|
||||||
[ "$RCS_D" = yes ] && \
|
[ "$RCS_D" = yes ] && \
|
||||||
installf ${PKGNAME} $TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
||||||
installf ${PKGNAME} $TEST_DIR/etc/rc0.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc0.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
||||||
installf ${PKGNAME} $TEST_DIR/etc/rc1.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc1.d/K30${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
||||||
installf ${PKGNAME} $TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=../init.d/${SYSVINIT_NAME} s
|
||||||
else
|
else
|
||||||
[ "$RCS_D" = yes ] && \
|
[ "$RCS_D" = yes ] && \
|
||||||
installf ${PKGNAME} $TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rcS.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
||||||
installf ${PKGNAME} $TEST_DIR/etc/rc0.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc0.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
||||||
installf ${PKGNAME} $TEST_DIR/etc/rc1.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc1.d/K30${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
||||||
installf ${PKGNAME} $TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR/etc/rc2.d/S98${SYSVINIT_NAME}=$TEST_DIR/etc/init.d/${SYSVINIT_NAME} l
|
||||||
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)
|
||||||
[ -d $piddir ] || installf ${PKGNAME} $TEST_DIR$piddir d 755 root sys
|
[ -d $piddir ] || installf ${PKGNAME} \${PKG_INSTALL_ROOT}$TEST_DIR$piddir d 755 root sys
|
||||||
|
|
||||||
installf -f ${PKGNAME}
|
installf -f ${PKGNAME}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user