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