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