wok-6.x annotate rshd-redone/receipt @ rev 22740
updated drakon-editor (1.29 -> 1.31)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 24 07:47:30 2020 +0100 (2020-01-24) |
parents | |
children |
rev | line source |
---|---|
pascal@21250 | 1 # SliTaz package receipt. |
pascal@21250 | 2 |
pascal@21250 | 3 PACKAGE="rshd-redone" |
pascal@21250 | 4 VERSION="85" |
pascal@21250 | 5 CATEGORY="network" |
pascal@21250 | 6 SHORT_DESC="Reimplementation of rshd and rlogind" |
pascal@21250 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21250 | 8 LICENSE="GPL" |
pascal@21250 | 9 WEB_SITE="https://packages.debian.org/source/sid/rsh-redone" |
pascal@21250 | 10 WANTED="rsh-redone" |
pascal@21250 | 11 PROVIDE="rshd:pam rshd-pam" |
pascal@21250 | 12 |
pascal@21250 | 13 DEPENDS="pam" |
pascal@21250 | 14 |
pascal@21250 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21250 | 16 genpkg_rules() |
pascal@21250 | 17 { |
pascal@21250 | 18 mkdir -p $fs/usr $fs/etc/skel |
pascal@21250 | 19 cp -a $install/usr/sbin $fs/usr |
pascal@21250 | 20 cp -a $install/usr/etc $fs |
pascal@21250 | 21 touch $fs/etc/skel/.rhosts |
pascal@21250 | 22 chmod 600 $fs/etc/skel/.rhosts |
pascal@21250 | 23 } |
pascal@21250 | 24 |
pascal@21250 | 25 # Pre and post install commands for Tazpkg. |
pascal@21250 | 26 post_install() |
pascal@21250 | 27 { |
pascal@21250 | 28 if ! grep -qs rlogind $1/etc/inetd.conf; then |
pascal@21250 | 29 cat >> $1/etc/inetd.conf <<EOT |
pascal@21250 | 30 login stream tcp nowait root /usr/sbin/in.rlogind rlogind |
pascal@21250 | 31 shell stream tcp nowait root /usr/sbin/in.rshd rshd |
pascal@21250 | 32 EOT |
pascal@21250 | 33 [ -n "$1" ] || killall -HUP inetd |
pascal@21250 | 34 fi |
pascal@21250 | 35 } |
pascal@21250 | 36 |
pascal@21250 | 37 # Pre and post install commands for Tazpkg. |
pascal@21250 | 38 pre_remove() |
pascal@21250 | 39 { |
pascal@21250 | 40 sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf |
pascal@21250 | 41 [ -n "$1" ] || killall -HUP inetd |
pascal@21250 | 42 } |