wok annotate tinyssh/receipt @ rev 22247

updated xorg-xauth (1.0.7 -> 1.1)
author Hans-G?nter Theisgen
date Tue Nov 12 16:18:33 2019 +0100 (2019-11-12)
parents d010061fa2dc
children 3818eac942d1
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@20260 30 }
pascal@20260 31
pascal@20260 32 post_install()
pascal@20260 33 {
pascal@20263 34 [ -d $1/etc/tinyssh/sshkeydir ] ||
pascal@20260 35 chroot $1/ tinysshd-makekey /etc/tinyssh/sshkeydir
pascal@20260 36 grep -q ^ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
pascal@20264 37 ssh stream tcp nowait root /usr/sbin/tinysshd tinysshd -s -o -l -v /etc/tinyssh/sshkeydir -x sftp=/usr/sbin/sftp-server
pascal@20260 38 EOT
pascal@20260 39 }
pascal@20260 40
pascal@20260 41 pre_remove()
pascal@20260 42 {
pascal@20260 43 sed -i '/tinysshd/d' $1/etc/inetd.conf
pascal@20260 44 }