wok-next rev 21172

rsh -> rsh-redone
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 14 14:28:53 2019 +0200 (2019-04-14)
parents dbc201d673f5
children c38315993f5d
files rsh-redone/receipt rsh/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rsh-redone/receipt	Sun Apr 14 14:28:53 2019 +0200
     1.3 @@ -0,0 +1,58 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +PACKAGE="rsh-redone"
     1.7 +VERSION="85"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Reimplementation of rsh and rlogin"
    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 +
    1.14 +TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
    1.15 +WGET_URL="http://ftp.de.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"
    1.16 +
    1.17 +BUILD_DEPENDS="pam-dev"
    1.18 +SPLIT="rshd"
    1.19 +
    1.20 +compile_rules() {
    1.21 +	make &&
    1.22 +	make DESTDIR=$install install
    1.23 +}
    1.24 +
    1.25 +genpkg_rules() {
    1.26 +	case $PACKAGE in
    1.27 +		rsh)
    1.28 +			mkdir -p $fs/usr
    1.29 +			cp -a $install/usr/bin $fs/usr
    1.30 +			;;
    1.31 +		rshd)
    1.32 +			mkdir -p $fs/usr $fs/etc/skel
    1.33 +			cp -a $install/usr/sbin $fs/usr
    1.34 +			cp -a $install/usr/etc $fs
    1.35 +			touch $fs/etc/skel/.rhosts
    1.36 +			chmod 600 $fs/etc/skel/.rhosts
    1.37 +			CAT="network|rshd and rlogind"
    1.38 +			DEPENDS="pam"
    1.39 +			PROVIDE="rshd:pam rshd-pam"
    1.40 +			;;
    1.41 +	esac
    1.42 +}
    1.43 +
    1.44 +# Pre and post install commands for Tazpkg.
    1.45 +post_install_rshd()
    1.46 +{
    1.47 +	if ! grep -qs rlogind $1/etc/inetd.conf; then
    1.48 +		cat >> $1/etc/inetd.conf <<EOT
    1.49 +login	stream  tcp     nowait  root    /usr/sbin/in.rlogind	rlogind
    1.50 +shell	stream  tcp     nowait  root    /usr/sbin/in.rshd	rshd
    1.51 +EOT
    1.52 +		[ -n "$1" ] || killall -HUP inetd
    1.53 +	fi
    1.54 +}
    1.55 +
    1.56 +# Pre and post install commands for Tazpkg.
    1.57 +pre_remove_rshd()
    1.58 +{
    1.59 +	sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf
    1.60 +	[ -n "$1" ] || killall -HUP inetd
    1.61 +}
     2.1 --- a/rsh/receipt	Sun Apr 14 14:13:19 2019 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,36 +0,0 @@
     2.4 -# SliTaz package receipt v2.
     2.5 -
     2.6 -PACKAGE="rsh"
     2.7 -VERSION="85"
     2.8 -CATEGORY="network"
     2.9 -SHORT_DESC="Reimplementation of rsh and rlogin"
    2.10 -MAINTAINER="pascal.bellard@slitaz.org"
    2.11 -LICENSE="GPL"
    2.12 -WEB_SITE="https://packages.debian.org/source/sid/rsh-redone"
    2.13 -
    2.14 -TARBALL="rsh-redone_$VERSION.orig.tar.gz"
    2.15 -WGET_URL="http://ftp.de.debian.org/debian/pool/main/r/rsh-redone/$TARBALL"
    2.16 -
    2.17 -BUILD_DEPENDS="pam-dev"
    2.18 -SPLIT="rshd"
    2.19 -
    2.20 -compile_rules() {
    2.21 -	make &&
    2.22 -	make DESTDIR=$install install
    2.23 -}
    2.24 -
    2.25 -genpkg_rules() {
    2.26 -	case $PACKAGE in
    2.27 -		rsh)
    2.28 -			mkdir -p $fs/usr
    2.29 -			cp -a $install/usr/bin $fs/usr
    2.30 -			;;
    2.31 -		rshd)
    2.32 -			mkdir -p $fs/usr
    2.33 -			cp -a $install/usr/sbin $fs/usr
    2.34 -			cp -a $install/usr/etc $fs
    2.35 -			CAT="network|rshd and rlogind"
    2.36 -			DEPENDS="pam"
    2.37 -			;;
    2.38 -	esac
    2.39 -}