wok-6.x view rshd/receipt @ rev 21141
e2fsprogs: add slackware patch to stop 64-bit boot failure
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Tue Mar 26 11:04:34 2019 -0400 (2019-03-26) |
parents | 294cf8a66d39 |
children |
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 $fs/etc/skel
18 cp -a $install/usr/sbin $fs/usr
19 cp -a $install/usr/etc $fs
20 touch $fs/etc/skel/.rhosts
21 chmod 600 $fs/etc/skel/.rhosts
22 }
24 # Pre and post install commands for Tazpkg.
25 post_install()
26 {
27 if ! grep -qs rlogind $1/etc/inetd.conf; then
28 cat >> $1/etc/inetd.conf <<EOT
29 login stream tcp nowait root /usr/sbin/in.rlogind rlogind
30 shell stream tcp nowait root /usr/sbin/in.rshd rshd
31 EOT
32 [ -n "$1" ] || killall -HUP inetd
33 fi
34 }
36 # Pre and post install commands for Tazpkg.
37 pre_remove()
38 {
39 sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf
40 [ -n "$1" ] || killall -HUP inetd
41 }