wok-6.x view rsh/receipt @ rev 25421

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 10 07:02:08 2022 +0000 (2022-08-10)
parents 9849335f0b73
children
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="https://web.archive.org/web/20201216144539/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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|/man|/share&|' configure
28 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/sbin \
29 $DESTDIR/usr/share/man/man1 $DESTDIR/usr/share/man/man8
30 sed -i 's|.*param.h.*|#include <linux/limits.h>\n&|' \
31 rexecd/rexecd.c rshd/rshd.c
32 sed -i 's|.*rlogind.*|#include <stdio.h>\n&|' rlogind/rlogind.h
33 ./configure --prefix=/usr --without-pam --installroot=$DESTDIR &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr $fs/etc/skel
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/sbin $fs/usr
43 touch $fs/etc/skel/.rhosts
44 chmod 600 $fs/etc/skel/.rhosts
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
50 if ! grep -qs rlogind $1/etc/inetd.conf; then
51 cat >> $1/etc/inetd.conf <<EOT
52 exec stream tcp nowait root /usr/sbin/in.execd execd
53 login stream tcp nowait root /usr/sbin/in.rlogind rlogind -hl
54 shell stream tcp nowait root /usr/sbin/in.rshd rshd -hl
55 EOT
56 [ -n "$1" ] || killall -HUP inetd
57 fi
58 }
60 # Pre and post install commands for Tazpkg.
61 pre_remove()
62 {
63 sed -i '/rlogind/d;/rshd/d;/rexec/d' $1/etc/inetd.conf
64 [ -n "$1" ] || killall -HUP inetd
65 }