wok-6.x diff rshd-redone/receipt @ rev 21317

updated libtasn1 and libtasn1-dev (4.5 -> 4.13)
author Hans-G?nter Theisgen
date Thu Apr 18 17:11:52 2019 +0100 (2019-04-18)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rshd-redone/receipt	Thu Apr 18 17:11:52 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 +}