wok view tinyssh/receipt @ rev 25717
xfce4-session: remove files belonging to xfce4-session-dev
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 15 09:23:33 2024 +0100 (3 months ago) |
parents | 0262035dc1e7 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tinyssh"
4 VERSION="20240101"
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 SUGGESTED="tinyssh-keyconvert"
16 SECRET_FILES="/etc/tinyssh/sshkeydir"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 make &&
29 make install DESTDIR=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/etc/tinyssh
36 mkdir -p $fs/usr
38 cp -a $install/usr/sbin $fs/usr
39 for i in $fs/usr/sbin/tinysshd-*
40 do
41 #cmp $fs/usr/sbin/tinysshd $i &&
42 ln -f $fs/usr/sbin/tinysshd $i
43 done
44 }
46 post_install()
47 {
48 [ -d $1/etc/tinyssh/sshkeydir ] ||
49 chroot $1/ tinysshd-makekey /etc/tinyssh/sshkeydir
50 grep -q ^ssh $1/etc/inetd.conf ||
51 cat >> $1/etc/inetd.conf <<EOT
52 ssh stream tcp nowait root /usr/sbin/tinysshd tinysshd -s -o -l -v /etc/tinyssh/sshkeydir -x sftp=/usr/sbin/sftp-server
53 EOT
54 }
56 pre_remove()
57 {
58 sed -i '/tinysshd/d' $1/etc/inetd.conf
59 }