SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "rshd-redone"

# SliTaz package receipt.

PACKAGE="rshd-redone"
VERSION="85"
CATEGORY="network"
SHORT_DESC="Reimplementation of rshd and rlogind"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL"
WEB_SITE="https://packages.debian.org/source/sid/rsh-redone"
WANTED="rsh-redone"
PROVIDE="rshd:pam rshd-pam"

DEPENDS="pam"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr $fs/etc/skel
    cp -a $install/usr/sbin $fs/usr
    cp -a $install/usr/etc $fs
    touch $fs/etc/skel/.rhosts
    chmod 600 $fs/etc/skel/.rhosts
}

# Pre and post install commands for Tazpkg.
post_install()
{
    if ! grep -qs rlogind $1/etc/inetd.conf; then
        cat >> $1/etc/inetd.conf <<EOT
login    stream  tcp     nowait  root    /usr/sbin/in.rlogind    rlogind
shell    stream  tcp     nowait  root    /usr/sbin/in.rshd    rshd
EOT
        [ -n "$1" ] || killall -HUP inetd
    fi
}

# Pre and post install commands for Tazpkg.
pre_remove()
{
    sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf
    [ -n "$1" ] || killall -HUP inetd
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)