wok-current view rshd/receipt @ rev 21092

syslinux/taziso: update for new dialog package
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 16 13:37:17 2019 +0100 (2019-03-16)
parents 965b0a2c558a
children 294cf8a66d39
line source
1 # SliTaz package receipt.
3 PACKAGE="rshd"
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"
12 DEPENDS="pam"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr
18 cp -a $install/usr/sbin $fs/usr
19 cp -a $install/usr/etc $fs
20 }
22 # Pre and post install commands for Tazpkg.
23 post_install()
24 {
25 if ! grep -qs rlogind $1/etc/inetd.conf; then
26 cat >> $1/etc/inetd.conf <<EOT
27 login stream tcp nowait root /usr/sbin/in.rlogind rlogind
28 shell stream tcp nowait root /usr/sbin/in.rshd rshd
29 EOT
30 [ -n "$1" ] || killall -HUP inetd
31 fi
32 }
34 # Pre and post install commands for Tazpkg.
35 pre_remove()
36 {
37 sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf
38 [ -n "$1" ] || killall -HUP inetd
39 }