# SliTaz package receipt. PACKAGE="tinyssh" VERSION="20220311" CATEGORY="network" SHORT_DESC="A small SSH server." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="PublicDomain" WEB_SITE="https://tinyssh.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/janmojzis/tinyssh/archive/$VERSION.tar.gz" SUGGESTED="tinyssh-keyconvert" SECRET_FILES="/etc/tinyssh/sshkeydir" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/tinyssh mkdir -p $fs/usr cp -a $install/usr/sbin $fs/usr for i in $fs/usr/sbin/tinysshd-* do #cmp $fs/usr/sbin/tinysshd $i && ln -f $fs/usr/sbin/tinysshd $i done } post_install() { [ -d $1/etc/tinyssh/sshkeydir ] || chroot $1/ tinysshd-makekey /etc/tinyssh/sshkeydir grep -q ^ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <