wok annotate tinyssh/receipt @ rev 22345
tcc, unfs3: race condition
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 17 20:40:16 2019 +0100 (2019-11-17) |
parents | 3818eac942d1 |
children | efbf8f769900 |
rev | line source |
---|---|
pascal@20260 | 1 # SliTaz package receipt. |
pascal@20260 | 2 |
pascal@20260 | 3 PACKAGE="tinyssh" |
Hans-G?nter@22035 | 4 VERSION="20190101" |
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/" |
Hans-G?nter@22035 | 10 |
pascal@20260 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20260 | 12 WGET_URL="https://github.com/janmojzis/tinyssh/archive/$VERSION.tar.gz" |
Hans-G?nter@22035 | 13 |
pascal@20260 | 14 CONFIG_FILES="/etc/tinyssh" |
pascal@20260 | 15 |
pascal@20260 | 16 # Rules to configure and make the package. |
pascal@20260 | 17 compile_rules() |
pascal@20260 | 18 { |
pascal@20260 | 19 make && |
pascal@20260 | 20 make DESTDIR=$DESTDIR install |
pascal@20260 | 21 } |
pascal@20260 | 22 |
pascal@20260 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20260 | 24 genpkg_rules() |
pascal@20260 | 25 { |
Hans-G?nter@22035 | 26 mkdir -p $fs/etc/tinyssh |
pascal@20260 | 27 mkdir -p $fs/usr |
Hans-G?nter@22035 | 28 |
pascal@20260 | 29 cp -a $install/usr/sbin $fs/usr |
pascal@22344 | 30 for i in $fs/usr/sbin/tinysshd-*; do |
pascal@22345 | 31 #cmp $fs/usr/sbin/tinysshd $i && |
pascal@22344 | 32 ln -f $fs/usr/sbin/tinysshd $i |
pascal@22344 | 33 done |
pascal@20260 | 34 } |
pascal@20260 | 35 |
pascal@20260 | 36 post_install() |
pascal@20260 | 37 { |
pascal@20263 | 38 [ -d $1/etc/tinyssh/sshkeydir ] || |
pascal@20260 | 39 chroot $1/ tinysshd-makekey /etc/tinyssh/sshkeydir |
pascal@20260 | 40 grep -q ^ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT |
pascal@20264 | 41 ssh stream tcp nowait root /usr/sbin/tinysshd tinysshd -s -o -l -v /etc/tinyssh/sshkeydir -x sftp=/usr/sbin/sftp-server |
pascal@20260 | 42 EOT |
pascal@20260 | 43 } |
pascal@20260 | 44 |
pascal@20260 | 45 pre_remove() |
pascal@20260 | 46 { |
pascal@20260 | 47 sed -i '/tinysshd/d' $1/etc/inetd.conf |
pascal@20260 | 48 } |