wok diff rshd-redone/receipt @ rev 21905
updated shake (0.999 -> 1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 04 14:02:46 2019 +0100 (2019-10-04) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rshd-redone/receipt Fri Oct 04 14:02:46 2019 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="rshd-redone" 1.7 +VERSION="85" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Reimplementation of rshd and rlogind" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL" 1.12 +WEB_SITE="https://packages.debian.org/source/sid/rsh-redone" 1.13 +WANTED="rsh-redone" 1.14 +PROVIDE="rshd:pam rshd-pam" 1.15 + 1.16 +DEPENDS="pam" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/usr $fs/etc/skel 1.22 + cp -a $install/usr/sbin $fs/usr 1.23 + cp -a $install/usr/etc $fs 1.24 + touch $fs/etc/skel/.rhosts 1.25 + chmod 600 $fs/etc/skel/.rhosts 1.26 +} 1.27 + 1.28 +# Pre and post install commands for Tazpkg. 1.29 +post_install() 1.30 +{ 1.31 + if ! grep -qs rlogind $1/etc/inetd.conf; then 1.32 + cat >> $1/etc/inetd.conf <<EOT 1.33 +login stream tcp nowait root /usr/sbin/in.rlogind rlogind 1.34 +shell stream tcp nowait root /usr/sbin/in.rshd rshd 1.35 +EOT 1.36 + [ -n "$1" ] || killall -HUP inetd 1.37 + fi 1.38 +} 1.39 + 1.40 +# Pre and post install commands for Tazpkg. 1.41 +pre_remove() 1.42 +{ 1.43 + sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf 1.44 + [ -n "$1" ] || killall -HUP inetd 1.45 +}