wok-6.x rev 21251

netkit-rsh -> rsh
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 12 09:07:43 2019 +0200 (2019-04-12)
parents b2f137fe8270
children e6b7a2aaf2e1
files netkit-rsh/receipt rsh/receipt
line diff
     1.1 --- a/netkit-rsh/receipt	Fri Apr 12 09:03:48 2019 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,58 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="netkit-rsh"
     1.7 -VERSION="0.17"
     1.8 -CATEGORY="network"
     1.9 -SHORT_DESC="Remote connexion tools."
    1.10 -MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -LICENSE="BSD"
    1.12 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 -WEB_SITE="http://ftp.linux.org.uk/pub/linux/Networking/netkit/"
    1.14 -WGET_URL="http://ibiblio.org/pub/linux/system/network/netkit/$TARBALL"
    1.15 -PROVIDE="rsh rshd"
    1.16 -
    1.17 -DEPENDS=""
    1.18 -BUILD_DEPENDS="ncurses-dev"
    1.19 -
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 -	sed -i 's|/man|/share&|' configure
    1.24 -	mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/sbin \
    1.25 -		 $DESTDIR/usr/share/man/man1 $DESTDIR/usr/share/man/man8
    1.26 -	sed -i 's|.*param.h.*|#include <linux/limits.h>\n&|' \
    1.27 -		rexecd/rexecd.c rshd/rshd.c
    1.28 -	sed -i 's|.*rlogind.*|#include <stdio.h>\n&|' rlogind/rlogind.h
    1.29 -	./configure --prefix=/usr --without-pam --installroot=$DESTDIR &&
    1.30 -	make && make install
    1.31 -}
    1.32 -
    1.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 -genpkg_rules()
    1.35 -{
    1.36 -	mkdir -p $fs/usr $fs/etc/skel
    1.37 -	cp -a $install/usr/bin $fs/usr
    1.38 -	cp -a $install/usr/sbin $fs/usr
    1.39 -	touch $fs/etc/skel/.rhosts
    1.40 -	chmod 600 $fs/etc/skel/.rhosts
    1.41 -}
    1.42 -
    1.43 -# Pre and post install commands for Tazpkg.
    1.44 -post_install()
    1.45 -{
    1.46 -	if ! grep -qs rlogind $1/etc/inetd.conf; then
    1.47 -		cat >> $1/etc/inetd.conf <<EOT
    1.48 -exec	stream  tcp     nowait  root    /usr/sbin/in.execd	execd
    1.49 -login	stream  tcp     nowait  root    /usr/sbin/in.rlogind	rlogind -hl
    1.50 -shell	stream  tcp     nowait  root    /usr/sbin/in.rshd	rshd -hl
    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()
    1.58 -{
    1.59 -	sed -i '/rlogind/d;/rshd/d;/rexec/d' $1/etc/inetd.conf
    1.60 -	[ -n "$1" ] || killall -HUP inetd
    1.61 -}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/rsh/receipt	Fri Apr 12 09:07:43 2019 +0200
     2.3 @@ -0,0 +1,58 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="rsh"
     2.7 +VERSION="0.17"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="Remote connexion tools"
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE="BSD"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="http://ftp.linux.org.uk/pub/linux/Networking/netkit/"
    2.14 +WGET_URL="http://ibiblio.org/pub/linux/system/network/netkit/$TARBALL"
    2.15 +PROVIDE="rshd netkit-rsh"
    2.16 +
    2.17 +DEPENDS=""
    2.18 +BUILD_DEPENDS="ncurses-dev"
    2.19 +
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	sed -i 's|/man|/share&|' configure
    2.24 +	mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/sbin \
    2.25 +		 $DESTDIR/usr/share/man/man1 $DESTDIR/usr/share/man/man8
    2.26 +	sed -i 's|.*param.h.*|#include <linux/limits.h>\n&|' \
    2.27 +		rexecd/rexecd.c rshd/rshd.c
    2.28 +	sed -i 's|.*rlogind.*|#include <stdio.h>\n&|' rlogind/rlogind.h
    2.29 +	./configure --prefix=/usr --without-pam --installroot=$DESTDIR &&
    2.30 +	make && make install
    2.31 +}
    2.32 +
    2.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.34 +genpkg_rules()
    2.35 +{
    2.36 +	mkdir -p $fs/usr $fs/etc/skel
    2.37 +	cp -a $install/usr/bin $fs/usr
    2.38 +	cp -a $install/usr/sbin $fs/usr
    2.39 +	touch $fs/etc/skel/.rhosts
    2.40 +	chmod 600 $fs/etc/skel/.rhosts
    2.41 +}
    2.42 +
    2.43 +# Pre and post install commands for Tazpkg.
    2.44 +post_install()
    2.45 +{
    2.46 +	if ! grep -qs rlogind $1/etc/inetd.conf; then
    2.47 +		cat >> $1/etc/inetd.conf <<EOT
    2.48 +exec	stream  tcp     nowait  root    /usr/sbin/in.execd	execd
    2.49 +login	stream  tcp     nowait  root    /usr/sbin/in.rlogind	rlogind -hl
    2.50 +shell	stream  tcp     nowait  root    /usr/sbin/in.rshd	rshd -hl
    2.51 +EOT
    2.52 +		[ -n "$1" ] || killall -HUP inetd
    2.53 +	fi
    2.54 +}
    2.55 +
    2.56 +# Pre and post install commands for Tazpkg.
    2.57 +pre_remove()
    2.58 +{
    2.59 +	sed -i '/rlogind/d;/rshd/d;/rexec/d' $1/etc/inetd.conf
    2.60 +	[ -n "$1" ] || killall -HUP inetd
    2.61 +}