wok-backports rev 37
Add: openssh,openssh-pam,sftp-server updated to 6.7p1
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Tue Dec 16 02:14:22 2014 -0500 (2014-12-16) |
parents | d396992b0ac6 |
children | c1d3456bfb04 |
files | openssh-pam/receipt openssh/receipt openssh/stuff/openssh sftp-server/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/openssh-pam/receipt Tue Dec 16 02:14:22 2014 -0500 1.3 @@ -0,0 +1,65 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="openssh-pam" 1.7 +VERSION="6.7p1" 1.8 +CATEGORY="security" 1.9 +SHORT_DESC="Openbsd Secure Shell using PAM." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="BSD" 1.12 +SOURCE="openssh" 1.13 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://www.openssh.org/" 1.15 +WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL" 1.16 +CONFIG_FILES="/etc/ssh /etc/inetd.conf" 1.17 +TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options::OPENSSH_OPTIONS|web::$WEB_SITE" 1.18 +PROVIDE="openssh:pam ssh:pam" 1.19 +TAGS="ssh" 1.20 + 1.21 +DEPENDS="sftp-server libcrypto zlib pam" 1.22 +BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev pam pam-dev" 1.23 + 1.24 +# Rules to configure and make the package. 1.25 +compile_rules() 1.26 +{ 1.27 + cd $src 1.28 + ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam \ 1.29 + --with-privsep-user=nobody --with-privsep-path=/var/run/sshd \ 1.30 + --with-xauth=/usr/bin/xauth \ 1.31 + --libexecdir=/usr/sbin \ 1.32 + $CONFIGURE_ARGS && 1.33 + make && 1.34 + make DESTDIR=$DESTDIR install 1.35 +} 1.36 + 1.37 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.38 +genpkg_rules() 1.39 +{ 1.40 + mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh 1.41 + cp -a $install/usr/sbin $install/usr/bin $fs/usr 1.42 + rm -f $fs/usr/sbin/sftp-server 1.43 + cp -a $install/etc $fs 1.44 + cp ../$SOURCE/stuff/openssh $fs/etc/init.d 1.45 + sed -i 's/.*UsePAM.*/UsePAM yes/' $fs/etc/ssh/sshd_config 1.46 +} 1.47 + 1.48 +post_install() 1.49 +{ 1.50 + grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT 1.51 +#ssh stream tcp nowait root sshd sshd -i 1.52 +EOT 1.53 + while read dropbear openssh ; do 1.54 + [ -s $1$dropbear ] || continue 1.55 + dropbearconvert dropbear openssh $1$dropbear $1$openssh 1.56 + dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub 1.57 + dropbearkey -y -f $1$dropbear | grep Fingerprint 1.58 + done <<EOT 1.59 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 1.60 +/etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 1.61 +EOT 1.62 +ssh-keygen -A 1.63 +} 1.64 + 1.65 +post_remove() 1.66 +{ 1.67 + grep -q sshd $1/etc/inetd.conf && sed -i '/sshd/d' $1/etc/inetd.conf 1.68 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/openssh/receipt Tue Dec 16 02:14:22 2014 -0500 2.3 @@ -0,0 +1,73 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKED_SIZE="504.0K" 2.7 +UNPACKED_SIZE="3.9M" 2.8 +PACKAGE="openssh" 2.9 +VERSION="6.7p1" 2.10 +CATEGORY="security" 2.11 +SHORT_DESC="Openbsd Secure Shell." 2.12 +MAINTAINER="pascal.bellard@slitaz.org" 2.13 +LICENSE="BSD" 2.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.15 +WEB_SITE="http://www.openssh.org/" 2.16 +WGET_URL="ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL" 2.17 +CONFIG_FILES="/etc/ssh /etc/inetd.conf" 2.18 +TAGS="ssh security" 2.19 +HOST_ARCH="i486 arm" 2.20 + 2.21 +PROVIDE="ssh" 2.22 +DEPENDS="sftp-server libcrypto zlib" 2.23 +BUILD_DEPENDS="libcrypto-dev zlib-dev openssl-dev" 2.24 +TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options|web::$WEB_SITE" 2.25 + 2.26 +# Rules to configure and make the package. 2.27 +compile_rules() 2.28 +{ 2.29 + unset LD # for cross compiling with --disable-strip 2.30 + ./configure \ 2.31 + --prefix=/usr \ 2.32 + --sysconfdir=/etc/ssh \ 2.33 + --libexecdir=/usr/sbin \ 2.34 + --with-privsep-user=nobody \ 2.35 + --with-xauth=/usr/bin/xauth \ 2.36 + --with-privsep-path=/var/run/sshd \ 2.37 + --without-pam \ 2.38 + --disable-strip \ 2.39 + $CONFIGURE_ARGS && 2.40 + make STRIP_OPT="" && 2.41 + make DESTDIR=$DESTDIR install 2.42 +} 2.43 + 2.44 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.45 +genpkg_rules() 2.46 +{ 2.47 + mkdir -p $fs/usr $fs/etc/init.d $fs/etc/ssh 2.48 + cp -a $install/usr/sbin $install/usr/bin $fs/usr 2.49 + rm -f $fs/usr/sbin/sftp-server 2.50 + cp -a $install/etc $fs 2.51 + cp $stuff/openssh $fs/etc/init.d 2.52 + sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \ 2.53 + $fs/etc/ssh/sshd_config 2.54 +} 2.55 + 2.56 +post_install() 2.57 +{ 2.58 + grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT 2.59 +#ssh stream tcp nowait root sshd sshd -i 2.60 +EOT 2.61 + while read dropbear openssh ; do 2.62 + [ -s $1$dropbear ] || continue 2.63 + dropbearconvert dropbear openssh $1$dropbear $1$openssh 2.64 + dropbearkey -y -f $1$dropbear | grep ssh > $1$openssh.pub 2.65 + dropbearkey -y -f $1$dropbear | grep Fingerprint 2.66 + done <<EOT 2.67 +/etc/dropbear/dropbear_rsa_host_key /etc/ssh/ssh_host_rsa_key 2.68 +/etc/dropbear/dropbear_dss_host_key /etc/ssh/ssh_host_dsa_key 2.69 +EOT 2.70 +ssh-keygen -A 2.71 +} 2.72 + 2.73 +post_remove() 2.74 +{ 2.75 + grep -q sshd $1/etc/inetd.conf && sed -i '/sshd/d' $1/etc/inetd.conf 2.76 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/openssh/stuff/openssh Tue Dec 16 02:14:22 2014 -0500 3.3 @@ -0,0 +1,69 @@ 3.4 +#!/bin/sh 3.5 +# /etc/init.d/openssh : Start, stop and restart OpenSSH server on SliTaz, at 3.6 +# boot time or with the command line. 3.7 +# 3.8 +# To start OpenSSH server at boot time, just put openssh in the $RUN_DAEMONS 3.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf 3.10 +# 3.11 +. /etc/init.d/rc.functions 3.12 +. /etc/daemons.conf 3.13 + 3.14 +NAME=OpenSSH 3.15 +DESC="OpenSSH server" 3.16 +DAEMON=/usr/sbin/sshd 3.17 +OPTIONS=$OPENSSH_OPTIONS 3.18 +PIDFILE=/var/run/sshd.pid 3.19 + 3.20 +[ -d /var/run/sshd ] || mkdir -p /var/run/sshd 3.21 +case "$1" in 3.22 + start) 3.23 + # We need rsa and dsa host key file to start dropbear. 3.24 + if [ ! -f /etc/ssh/ssh_host_rsa_key ] ; then 3.25 + echo "Generating $NAME rsa key... " 3.26 + ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -C '' -N '' 3.27 + fi 3.28 + if [ ! -f /etc/ssh/ssh_host_dsa_key ] ; then 3.29 + echo "Generating $NAME dsa key... " 3.30 + ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -C '' -N '' 3.31 + fi 3.32 + if [ ! -f /etc/ssh/ssh_host_ecdsa_key ] ; then 3.33 + echo "Generating $NAME ecdsa key... " 3.34 + ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -C '' -N '' 3.35 + fi 3.36 + if active_pidfile $PIDFILE sshd ; then 3.37 + echo "$NAME already running." 3.38 + exit 1 3.39 + fi 3.40 + echo -n "Starting $DESC: $NAME... " 3.41 + $DAEMON $OPTIONS 3.42 + status 3.43 + ;; 3.44 + stop) 3.45 + if ! active_pidfile $PIDFILE sshd ; then 3.46 + echo "$NAME is not running." 3.47 + exit 1 3.48 + fi 3.49 + echo -n "Stopping $DESC: $NAME... " 3.50 + kill `cat $PIDFILE` 3.51 + status 3.52 + ;; 3.53 + restart) 3.54 + if ! active_pidfile $PIDFILE sshd ; then 3.55 + echo "$NAME is not running." 3.56 + exit 1 3.57 + fi 3.58 + echo -n "Restarting $DESC: $NAME... " 3.59 + kill `cat $PIDFILE` 3.60 + sleep 2 3.61 + $DAEMON $OPTIONS 3.62 + status 3.63 + ;; 3.64 + *) 3.65 + echo "" 3.66 + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 3.67 + echo "" 3.68 + exit 1 3.69 + ;; 3.70 +esac 3.71 + 3.72 +exit 0
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/sftp-server/receipt Tue Dec 16 02:14:22 2014 -0500 4.3 @@ -0,0 +1,24 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKED_SIZE="40.0K" 4.7 +UNPACKED_SIZE="100.0K" 4.8 +PACKAGE="sftp-server" 4.9 +VERSION="6.7p1" 4.10 +CATEGORY="security" 4.11 +SHORT_DESC="Openbsd Secure FTP server." 4.12 +MAINTAINER="pascal.bellard@slitaz.org" 4.13 +LICENSE="BSD" 4.14 +WEB_SITE="http://www.openssh.org/" 4.15 +HOST_ARCH="i486 arm" 4.16 +TAGS="ssh" 4.17 + 4.18 +WANTED="openssh" 4.19 +DEPENDS="libcrypto zlib" 4.20 + 4.21 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.22 +genpkg_rules() 4.23 +{ 4.24 + mkdir -p $fs/usr/sbin 4.25 + cp -a $install/usr/sbin/sftp-server $fs/usr/sbin 4.26 +} 4.27 +