wok-6.x annotate netkit-rsh/receipt @ rev 21198

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