wok annotate tinyssh/receipt @ rev 22411
VLC: request of --enable-run-as-root, see http://forum.slitaz.org/topic/vlc-player-does-not-run-on-root
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Fri Dec 13 13:43:22 2019 +0000 (2019-12-13) |
parents | 951896e3e5b3 |
children | a8546de77bcc |
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/" |
pascal@22387 | 10 SUGGESTED="tinyssh-keyconvert" |
Hans-G?nter@22035 | 11 |
pascal@20260 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20260 | 13 WGET_URL="https://github.com/janmojzis/tinyssh/archive/$VERSION.tar.gz" |
Hans-G?nter@22035 | 14 |
pascal@20260 | 15 CONFIG_FILES="/etc/tinyssh" |
pascal@20260 | 16 |
pascal@20260 | 17 # Rules to configure and make the package. |
pascal@20260 | 18 compile_rules() |
pascal@20260 | 19 { |
pascal@20260 | 20 make && |
pascal@20260 | 21 make DESTDIR=$DESTDIR install |
pascal@20260 | 22 } |
pascal@20260 | 23 |
pascal@20260 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20260 | 25 genpkg_rules() |
pascal@20260 | 26 { |
Hans-G?nter@22035 | 27 mkdir -p $fs/etc/tinyssh |
pascal@20260 | 28 mkdir -p $fs/usr |
Hans-G?nter@22035 | 29 |
pascal@20260 | 30 cp -a $install/usr/sbin $fs/usr |
pascal@22344 | 31 for i in $fs/usr/sbin/tinysshd-*; do |
pascal@22345 | 32 #cmp $fs/usr/sbin/tinysshd $i && |
pascal@22344 | 33 ln -f $fs/usr/sbin/tinysshd $i |
pascal@22344 | 34 done |
pascal@20260 | 35 } |
pascal@20260 | 36 |
pascal@20260 | 37 post_install() |
pascal@20260 | 38 { |
pascal@20263 | 39 [ -d $1/etc/tinyssh/sshkeydir ] || |
pascal@20260 | 40 chroot $1/ tinysshd-makekey /etc/tinyssh/sshkeydir |
pascal@20260 | 41 grep -q ^ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT |
pascal@20264 | 42 ssh stream tcp nowait root /usr/sbin/tinysshd tinysshd -s -o -l -v /etc/tinyssh/sshkeydir -x sftp=/usr/sbin/sftp-server |
pascal@20260 | 43 EOT |
pascal@20260 | 44 } |
pascal@20260 | 45 |
pascal@20260 | 46 pre_remove() |
pascal@20260 | 47 { |
pascal@20260 | 48 sed -i '/tinysshd/d' $1/etc/inetd.conf |
pascal@20260 | 49 } |