wok annotate rsh/receipt @ rev 22099

Add python-incremental
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 01 14:48:33 2019 +0100 (2019-11-01)
parents 0e708393407e
children 9849335f0b73
rev   line source
pascal@21251 1 # SliTaz package receipt.
pascal@21251 2
pascal@21251 3 PACKAGE="rsh"
pascal@21251 4 VERSION="0.17"
pascal@21251 5 CATEGORY="network"
pascal@21284 6 SHORT_DESC="Remote connection tools"
pascal@21251 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@21251 8 LICENSE="BSD"
pascal@21253 9 TARBALL="netkit-$PACKAGE-$VERSION.tar.gz"
pascal@21251 10 WEB_SITE="http://ftp.linux.org.uk/pub/linux/Networking/netkit/"
pascal@21251 11 WGET_URL="http://ibiblio.org/pub/linux/system/network/netkit/$TARBALL"
pascal@21251 12 PROVIDE="rshd netkit-rsh"
pascal@21251 13
pascal@21251 14 DEPENDS=""
pascal@21251 15 BUILD_DEPENDS="ncurses-dev"
pascal@21251 16
pascal@21251 17 # Rules to configure and make the package.
pascal@21251 18 compile_rules()
pascal@21251 19 {
pascal@21251 20 sed -i 's|/man|/share&|' configure
pascal@21251 21 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/sbin \
pascal@21251 22 $DESTDIR/usr/share/man/man1 $DESTDIR/usr/share/man/man8
pascal@21251 23 sed -i 's|.*param.h.*|#include <linux/limits.h>\n&|' \
pascal@21251 24 rexecd/rexecd.c rshd/rshd.c
pascal@21251 25 sed -i 's|.*rlogind.*|#include <stdio.h>\n&|' rlogind/rlogind.h
pascal@21251 26 ./configure --prefix=/usr --without-pam --installroot=$DESTDIR &&
pascal@21251 27 make && make install
pascal@21251 28 }
pascal@21251 29
pascal@21251 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@21251 31 genpkg_rules()
pascal@21251 32 {
pascal@21251 33 mkdir -p $fs/usr $fs/etc/skel
pascal@21251 34 cp -a $install/usr/bin $fs/usr
pascal@21251 35 cp -a $install/usr/sbin $fs/usr
pascal@21251 36 touch $fs/etc/skel/.rhosts
pascal@21251 37 chmod 600 $fs/etc/skel/.rhosts
pascal@21251 38 }
pascal@21251 39
pascal@21251 40 # Pre and post install commands for Tazpkg.
pascal@21251 41 post_install()
pascal@21251 42 {
pascal@21251 43 if ! grep -qs rlogind $1/etc/inetd.conf; then
pascal@21251 44 cat >> $1/etc/inetd.conf <<EOT
pascal@21251 45 exec stream tcp nowait root /usr/sbin/in.execd execd
pascal@21251 46 login stream tcp nowait root /usr/sbin/in.rlogind rlogind -hl
pascal@21251 47 shell stream tcp nowait root /usr/sbin/in.rshd rshd -hl
pascal@21251 48 EOT
pascal@21251 49 [ -n "$1" ] || killall -HUP inetd
pascal@21251 50 fi
pascal@21251 51 }
pascal@21251 52
pascal@21251 53 # Pre and post install commands for Tazpkg.
pascal@21251 54 pre_remove()
pascal@21251 55 {
pascal@21251 56 sed -i '/rlogind/d;/rshd/d;/rexec/d' $1/etc/inetd.conf
pascal@21251 57 [ -n "$1" ] || killall -HUP inetd
pascal@21251 58 }