wok view netkit-rsh/receipt @ rev 21097

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