# SliTaz package receipt. PACKAGE="openssh" VERSION="9.3p1" CATEGORY="security" TAGS="ssh security" SHORT_DESC="Openbsd Secure Shell." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="https://www.openssh.com/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://ftp.fr.openbsd.org/pub/OpenBSD/OpenSSH/portable/$TARBALL" PROVIDE="ssh" SUGGESTED="gtk+" DEPENDS="libcrypto sftp-server zlib" BUILD_DEPENDS="gtk+-dev libcrypto-dev openssl-dev zlib-dev" SPLIT="sftp-server" TAZPANEL_DAEMON="man::sshd|edit::/etc/ssh/sshd_config|options|web::$WEB_SITE" CONFIG_FILES="/etc/ssh/*config /etc/ssh/moduli" SECRET_FILES="/etc/ssh/*key*" HOST_ARCH="i486 arm" # @maintainer: Please update also sftp-server current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed '/tar..z"/!d;s|.*ssh-\(.*\).tar..z".*|\1|' | tail -n1 } # Rules to configure and make the package. compile_rules() { unset LD # for cross compiling with --disable-strip ./configure \ --prefix=/usr \ --sysconfdir=/etc/ssh \ --libexecdir=/usr/sbin \ --with-privsep-user=nobody \ --with-xauth=/usr/bin/xauth \ --with-privsep-path=/var/run/sshd \ --without-pam \ --disable-strip \ $CONFIGURE_ARGS && make STRIP_OPT="" && make install -j 1 DESTDIR=$DESTDIR install -d -m 755 $DESTDIR/usr/share/doc && install -m 644 $src/[A-Z][A-Z]* $DESTDIR/usr/share/doc cd contrib && cc -Wall $(pkg-config --cflags gtk+-2.0) gnome-ssh-askpass2.c \ -o gnome-ssh-askpass $(pkg-config --libs gtk+-2.0) -lX11 && cp gnome-ssh-askpass $DESTDIR/usr/bin/ssh-askpass } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr mkdir -p $fs/etc/init.d mkdir -p $fs/etc/ssh cp -a $install/usr/sbin $fs/usr cp -a $install/usr/bin $fs/usr rm -f $fs/usr/sbin/sftp-server install -m 755 -oroot -groot $src/contrib/ssh-copy-id \ $fs/usr/bin cp $src/contrib/ssh-copy-id.1 $install/usr/share/man/cat1 cp -a $install/etc $fs cp $stuff/openssh $fs/etc/init.d sed -i 's|/usr/libexec/sftp-server|/usr/sbin/sftp-server|' \ $fs/etc/ssh/sshd_config cat >> $fs/etc/ssh/ssh_config <> "$1/etc/inetd.conf" < "$1$openssh.pub" chroot "$1/" dropbearkey -y -f $dropbear | grep Fingerprint done <