wok rev 21250

rsh -> rsh-redone
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 12 09:03:48 2019 +0200 (2019-04-12)
parents 9e985e6947f6
children d2b89a055cf0
files rsh-redone/receipt rsh/receipt rshd-redone/receipt rshd/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rsh-redone/receipt	Fri Apr 12 09:03:48 2019 +0200
     1.3 @@ -0,0 +1,28 @@
     1.4 +# SliTaz package receipt.
     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 +TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
    1.13 +WEB_SITE="https://packages.debian.org/source/sid/rsh-redone"
    1.14 +WGET_URL="http://ftp.de.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"
    1.15 +PROVIDE="rsh:pam rsh-pam"
    1.16 +
    1.17 +BUILD_DEPENDS="pam-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	make &&
    1.23 +	make DESTDIR=$DESTDIR install
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr
    1.30 +	cp -a $install/usr/bin $fs/usr
    1.31 +}
     2.1 --- a/rsh/receipt	Thu Apr 11 17:56:29 2019 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,28 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="rsh"
     2.7 -SOURCE="rsh-redone"
     2.8 -VERSION="85"
     2.9 -CATEGORY="network"
    2.10 -SHORT_DESC="Reimplementation of rsh and rlogin"
    2.11 -MAINTAINER="pascal.bellard@slitaz.org"
    2.12 -LICENSE="GPL"
    2.13 -TARBALL="${SOURCE}_$VERSION.orig.tar.gz"
    2.14 -WEB_SITE="https://packages.debian.org/source/sid/rsh-redone"
    2.15 -WGET_URL="http://ftp.de.debian.org/debian/pool/main/${SOURCE:0:1}/$SOURCE/$TARBALL"
    2.16 -
    2.17 -BUILD_DEPENDS="pam-dev"
    2.18 -
    2.19 -# Rules to configure and make the package.
    2.20 -compile_rules()
    2.21 -{
    2.22 -	make &&
    2.23 -	make DESTDIR=$DESTDIR install
    2.24 -}
    2.25 -
    2.26 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.27 -genpkg_rules()
    2.28 -{
    2.29 -	mkdir -p $fs/usr
    2.30 -	cp -a $install/usr/bin $fs/usr
    2.31 -}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/rshd-redone/receipt	Fri Apr 12 09:03:48 2019 +0200
     3.3 @@ -0,0 +1,42 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="rshd-redone"
     3.7 +VERSION="85"
     3.8 +CATEGORY="network"
     3.9 +SHORT_DESC="Reimplementation of rshd and rlogind"
    3.10 +MAINTAINER="pascal.bellard@slitaz.org"
    3.11 +LICENSE="GPL"
    3.12 +WEB_SITE="https://packages.debian.org/source/sid/rsh-redone"
    3.13 +WANTED="rsh-redone"
    3.14 +PROVIDE="rshd:pam rshd-pam"
    3.15 +
    3.16 +DEPENDS="pam"
    3.17 +
    3.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.19 +genpkg_rules()
    3.20 +{
    3.21 +	mkdir -p $fs/usr $fs/etc/skel
    3.22 +	cp -a $install/usr/sbin $fs/usr
    3.23 +	cp -a $install/usr/etc $fs
    3.24 +	touch $fs/etc/skel/.rhosts
    3.25 +	chmod 600 $fs/etc/skel/.rhosts
    3.26 +}
    3.27 +
    3.28 +# Pre and post install commands for Tazpkg.
    3.29 +post_install()
    3.30 +{
    3.31 +	if ! grep -qs rlogind $1/etc/inetd.conf; then
    3.32 +		cat >> $1/etc/inetd.conf <<EOT
    3.33 +login	stream  tcp     nowait  root    /usr/sbin/in.rlogind	rlogind
    3.34 +shell	stream  tcp     nowait  root    /usr/sbin/in.rshd	rshd
    3.35 +EOT
    3.36 +		[ -n "$1" ] || killall -HUP inetd
    3.37 +	fi
    3.38 +}
    3.39 +
    3.40 +# Pre and post install commands for Tazpkg.
    3.41 +pre_remove()
    3.42 +{
    3.43 +	sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf
    3.44 +	[ -n "$1" ] || killall -HUP inetd
    3.45 +}
     4.1 --- a/rshd/receipt	Thu Apr 11 17:56:29 2019 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,41 +0,0 @@
     4.4 -# SliTaz package receipt.
     4.5 -
     4.6 -PACKAGE="rshd"
     4.7 -VERSION="85"
     4.8 -CATEGORY="network"
     4.9 -SHORT_DESC="Reimplementation of rshd and rlogind"
    4.10 -MAINTAINER="pascal.bellard@slitaz.org"
    4.11 -LICENSE="GPL"
    4.12 -WEB_SITE="https://packages.debian.org/source/sid/rsh-redone"
    4.13 -WANTED="rsh"
    4.14 -
    4.15 -DEPENDS="pam"
    4.16 -
    4.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.18 -genpkg_rules()
    4.19 -{
    4.20 -	mkdir -p $fs/usr $fs/etc/skel
    4.21 -	cp -a $install/usr/sbin $fs/usr
    4.22 -	cp -a $install/usr/etc $fs
    4.23 -	touch $fs/etc/skel/.rhosts
    4.24 -	chmod 600 $fs/etc/skel/.rhosts
    4.25 -}
    4.26 -
    4.27 -# Pre and post install commands for Tazpkg.
    4.28 -post_install()
    4.29 -{
    4.30 -	if ! grep -qs rlogind $1/etc/inetd.conf; then
    4.31 -		cat >> $1/etc/inetd.conf <<EOT
    4.32 -login	stream  tcp     nowait  root    /usr/sbin/in.rlogind	rlogind
    4.33 -shell	stream  tcp     nowait  root    /usr/sbin/in.rshd	rshd
    4.34 -EOT
    4.35 -		[ -n "$1" ] || killall -HUP inetd
    4.36 -	fi
    4.37 -}
    4.38 -
    4.39 -# Pre and post install commands for Tazpkg.
    4.40 -pre_remove()
    4.41 -{
    4.42 -	sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf
    4.43 -	[ -n "$1" ] || killall -HUP inetd
    4.44 -}