wok-tiny view rsh/receipt @ rev 183

linux: fix bundle.S
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 26 17:09:38 2023 +0000 (7 months ago)
parents a28c45a86936
children
line source
1 # SliTaz package receipt.
3 PACKAGE="rsh"
4 VERSION="0.17"
5 CATEGORY="network"
6 GROUP="network"
7 SHORT_DESC="Remote connection tools"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 [ -n "$TARGET" ] || TARGET="i486"
11 TARBALL="netkit-$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://ftp.linux.org.uk/pub/linux/Networking/netkit/"
13 WGET_URL="http://ibiblio.org/pub/linux/system/network/netkit/$TARBALL"
15 DEPENDS="libcrypt libutil busybox-net"
16 BUILD_DEPENDS="ncurses-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's|/man|/share&|' configure
22 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/sbin \
23 $DESTDIR/usr/share/man/man1 $DESTDIR/usr/share/man/man8
24 sed -i 's|ARG_MAX|131072|' rexecd/rexecd.c rshd/rshd.c
25 sed -i 's|.*param.h.*|#include <linux/limits.h>\n&|' \
26 rexecd/rexecd.c rshd/rshd.c
27 sed -i 's|.*rlogind.*|#include <stdio.h>\n&|' rlogind/rlogind.h
28 ./configure --prefix=/usr --without-pam --installroot=$DESTDIR &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr $fs/root
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/sbin $fs/usr
38 touch $fs/root/.rhosts
39 chmod 600 $fs/root/.rhosts
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 echo "$RSH_HOSTS" > $1/root/.rhosts
46 if [ "$STARTRSH" = "ON" ]; then
47 grep -q inetd $1/etc/rcS.conf ||
48 sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
49 grep -qs rlogind $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
50 exec stream tcp nowait root /usr/sbin/in.execd execd
51 login stream tcp nowait root /usr/sbin/in.rlogind rlogind -hl
52 shell stream tcp nowait root /usr/sbin/in.rshd rshd -hl
53 EOT
54 fi
55 }
57 config_form()
58 {
59 cat <<EOT
60 <input type="checkbox" name="STARTRSH" value="ON" ${STARTRSH:+checked="checked" }/>
61 Start server during boot<br>
62 <table>
63 <tr>
64 <td>Trusted hosts</td>
65 <td><textarea name="RSH_HOSTS" cols="60" rows="12" wrap="off">
66 $RSH_HOSTS
67 </textarea></td>
68 </tr>
69 </table>
70 EOT
71 }