wok-current annotate rshd/receipt @ rev 21095
updated lame and lame-dev (3.99.4 -> 3.100)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 16 17:02:24 2019 +0100 (2019-03-16) |
parents | 965b0a2c558a |
children | 294cf8a66d39 |
rev | line source |
---|---|
pascal@17312 | 1 # SliTaz package receipt. |
pascal@17312 | 2 |
pascal@17312 | 3 PACKAGE="rshd" |
pascal@17312 | 4 VERSION="85" |
pascal@17312 | 5 CATEGORY="network" |
pascal@17312 | 6 SHORT_DESC="Reimplementation of rshd and rlogind" |
pascal@17312 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17312 | 8 LICENSE="GPL" |
pascal@17312 | 9 WEB_SITE="https://packages.debian.org/source/sid/rsh-redone" |
pascal@17312 | 10 WANTED="rsh" |
pascal@17312 | 11 |
pascal@17312 | 12 DEPENDS="pam" |
pascal@17312 | 13 |
pascal@17312 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17312 | 15 genpkg_rules() |
pascal@17312 | 16 { |
pascal@17312 | 17 mkdir -p $fs/usr |
pascal@17312 | 18 cp -a $install/usr/sbin $fs/usr |
pascal@17312 | 19 cp -a $install/usr/etc $fs |
pascal@17312 | 20 } |
pascal@21092 | 21 |
pascal@21092 | 22 # Pre and post install commands for Tazpkg. |
pascal@21092 | 23 post_install() |
pascal@21092 | 24 { |
pascal@21092 | 25 if ! grep -qs rlogind $1/etc/inetd.conf; then |
pascal@21092 | 26 cat >> $1/etc/inetd.conf <<EOT |
pascal@21092 | 27 login stream tcp nowait root /usr/sbin/in.rlogind rlogind |
pascal@21092 | 28 shell stream tcp nowait root /usr/sbin/in.rshd rshd |
pascal@21092 | 29 EOT |
pascal@21092 | 30 [ -n "$1" ] || killall -HUP inetd |
pascal@21092 | 31 fi |
pascal@21092 | 32 } |
pascal@21092 | 33 |
pascal@21092 | 34 # Pre and post install commands for Tazpkg. |
pascal@21092 | 35 pre_remove() |
pascal@21092 | 36 { |
pascal@21092 | 37 sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf |
pascal@21092 | 38 [ -n "$1" ] || killall -HUP inetd |
pascal@21092 | 39 } |