wok view rsh/receipt @ rev 22842
updated getmail (5.8 -> 5.14)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 14 15:43:53 2020 +0100 (2020-02-14) |
parents | 0e708393407e |
children | 9849335f0b73 |
line source
1 # SliTaz package receipt.
3 PACKAGE="rsh"
4 VERSION="0.17"
5 CATEGORY="network"
6 SHORT_DESC="Remote connection tools"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="netkit-$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="rshd netkit-rsh"
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 -p $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 }