wok-next view rsh/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | 459b81bc8ce6 |
children |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit"
11 TARBALL="netkit-$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ibiblio.org/pub/linux/system/network/netkit/$TARBALL"
14 BUILD_DEPENDS="ncurses-dev"
16 PROVIDE="rshd rlogin netkit-rsh"
17 CONFIG_FILES="/etc/skel/.rhosts"
19 compile_rules() {
20 sed \
21 -e 's/union wait/int/' \
22 -e 's/status.w_termsig | status.w_retcode/WTERMSIG(status)/' \
23 -i rlogin/rlogin.c
24 sed -i 's|/man|/share&|' configure
25 mkdir -p $install/usr/bin $install/usr/sbin \
26 $install/usr/share/man/man1 $install/usr/share/man/man8
27 sed -i 's|.*param.h.*|#include <linux/limits.h>\n&|' \
28 rexecd/rexecd.c rshd/rshd.c
29 sed -i 's|.*rlogind.*|#include <stdio.h>\n&|' rlogind/rlogind.h
31 ./configure \
32 --prefix=/usr \
33 --without-pam \
34 --installroot=$install &&
35 make &&
36 make install || return 1
38 mkdir -p $install/etc/skel/
39 touch $install/etc/skel/.rhosts
40 chmod 600 $install/etc/skel/.rhosts
41 }
43 post_install() {
44 if ! grep -qs rlogind $1/etc/inetd.conf; then
45 cat >> $1/etc/inetd.conf <<EOT
46 exec stream tcp nowait root /usr/sbin/in.execd execd
47 login stream tcp nowait root /usr/sbin/in.rlogind rlogind -hl
48 shell stream tcp nowait root /usr/sbin/in.rshd rshd -hl
49 EOT
50 [ -n "$1" ] || killall -HUP inetd
51 fi
52 }
54 pre_remove() {
55 sed -i '/rlogind/d;/rshd/d;/rexec/d' $1/etc/inetd.conf
56 [ -n "$1" ] || killall -HUP inetd
57 }