wok-6.x view tinyssh/receipt @ rev 22369

ncursesw: corrected syntax in run_tic.sh
author Hans-G?nter Theisgen
date Mon Nov 25 09:00:47 2019 +0100 (2019-11-25)
parents 3818eac942d1
children efbf8f769900
line source
1 # SliTaz package receipt.
3 PACKAGE="tinyssh"
4 VERSION="20190101"
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/janmojzis/tinyssh/archive/$VERSION.tar.gz"
14 CONFIG_FILES="/etc/tinyssh"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 make &&
20 make DESTDIR=$DESTDIR install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/etc/tinyssh
27 mkdir -p $fs/usr
29 cp -a $install/usr/sbin $fs/usr
30 for i in $fs/usr/sbin/tinysshd-*; do
31 #cmp $fs/usr/sbin/tinysshd $i &&
32 ln -f $fs/usr/sbin/tinysshd $i
33 done
34 }
36 post_install()
37 {
38 [ -d $1/etc/tinyssh/sshkeydir ] ||
39 chroot $1/ tinysshd-makekey /etc/tinyssh/sshkeydir
40 grep -q ^ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
41 ssh stream tcp nowait root /usr/sbin/tinysshd tinysshd -s -o -l -v /etc/tinyssh/sshkeydir -x sftp=/usr/sbin/sftp-server
42 EOT
43 }
45 pre_remove()
46 {
47 sed -i '/tinysshd/d' $1/etc/inetd.conf
48 }