wok annotate tinyssh/receipt @ rev 24905
updated metasploit (5.0.91 -> 6.1.36)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 13:21:57 2022 +0100 (2022-04-09) |
parents | 5ea0ce1cecc0 |
children | af9b4eb49760 |
rev | line source |
---|---|
pascal@20260 | 1 # SliTaz package receipt. |
pascal@20260 | 2 |
pascal@20260 | 3 PACKAGE="tinyssh" |
pascal@24060 | 4 VERSION="20210601" |
pascal@20260 | 5 CATEGORY="network" |
Hans-G?nter@22035 | 6 SHORT_DESC="A small SSH server." |
pascal@20260 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20260 | 8 LICENSE="PublicDomain" |
Hans-G?nter@22035 | 9 WEB_SITE="https://tinyssh.org/" |
pascal@22387 | 10 SUGGESTED="tinyssh-keyconvert" |
Hans-G?nter@22035 | 11 |
pascal@20260 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20260 | 13 WGET_URL="https://github.com/janmojzis/tinyssh/archive/$VERSION.tar.gz" |
Hans-G?nter@22035 | 14 |
pascal@23902 | 15 SECRET_FILES="/etc/tinyssh/sshkeydir" |
pascal@20260 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@20260 | 23 # Rules to configure and make the package. |
pascal@20260 | 24 compile_rules() |
pascal@20260 | 25 { |
pascal@20260 | 26 make && |
pascal@20260 | 27 make DESTDIR=$DESTDIR install |
pascal@20260 | 28 } |
pascal@20260 | 29 |
pascal@20260 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20260 | 31 genpkg_rules() |
pascal@20260 | 32 { |
Hans-G?nter@22035 | 33 mkdir -p $fs/etc/tinyssh |
pascal@20260 | 34 mkdir -p $fs/usr |
Hans-G?nter@22035 | 35 |
pascal@20260 | 36 cp -a $install/usr/sbin $fs/usr |
pascal@22344 | 37 for i in $fs/usr/sbin/tinysshd-*; do |
pascal@22345 | 38 #cmp $fs/usr/sbin/tinysshd $i && |
pascal@22344 | 39 ln -f $fs/usr/sbin/tinysshd $i |
pascal@22344 | 40 done |
pascal@20260 | 41 } |
pascal@20260 | 42 |
pascal@20260 | 43 post_install() |
pascal@20260 | 44 { |
pascal@20263 | 45 [ -d $1/etc/tinyssh/sshkeydir ] || |
pascal@20260 | 46 chroot $1/ tinysshd-makekey /etc/tinyssh/sshkeydir |
pascal@20260 | 47 grep -q ^ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT |
pascal@20264 | 48 ssh stream tcp nowait root /usr/sbin/tinysshd tinysshd -s -o -l -v /etc/tinyssh/sshkeydir -x sftp=/usr/sbin/sftp-server |
pascal@20260 | 49 EOT |
pascal@20260 | 50 } |
pascal@20260 | 51 |
pascal@20260 | 52 pre_remove() |
pascal@20260 | 53 { |
pascal@20260 | 54 sed -i '/tinysshd/d' $1/etc/inetd.conf |
pascal@20260 | 55 } |