wok-6.x view tinyssh/receipt @ rev 22266
updated xorg-xf86-input-evdev (2.7.0 -> 2.10.6)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 10:20:38 2019 +0100 (2019-11-13) |
parents | d010061fa2dc |
children | 3818eac942d1 |
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 }
32 post_install()
33 {
34 [ -d $1/etc/tinyssh/sshkeydir ] ||
35 chroot $1/ tinysshd-makekey /etc/tinyssh/sshkeydir
36 grep -q ^ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
37 ssh stream tcp nowait root /usr/sbin/tinysshd tinysshd -s -o -l -v /etc/tinyssh/sshkeydir -x sftp=/usr/sbin/sftp-server
38 EOT
39 }
41 pre_remove()
42 {
43 sed -i '/tinysshd/d' $1/etc/inetd.conf
44 }