wok-next view rsh-redone/receipt @ rev 21403
updated php again (7.4.4 -> 7.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 21 10:28:30 2020 +0100 (2020-04-21) |
parents | e752d7f70061 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="rsh-redone"
4 VERSION="85"
5 CATEGORY="network"
6 SHORT_DESC="Reimplementation of rsh and rlogin"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://packages.debian.org/source/sid/rsh-redone"
11 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
12 WGET_URL="http://ftp.de.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="pam-dev"
16 compile_rules() {
17 sed -i 's|\(-l.* \)\(-o.*\)$|\2 \1|' Makefile
18 make &&
19 make DESTDIR=$install SYSCONFDIR=/etc install || return 1
21 mkdir -p $install/etc/skel/
22 touch $install/etc/skel/.rhosts
23 chmod 600 $install/etc/skel/.rhosts
24 }
26 SPLIT="rshd-redone"
28 COPY_std="bin/"
29 PROVIDE_std="rsh rlogin"
30 CONFIG_FILES_std="/etc/skel/.rhosts"
32 COPY_rshd_redone="@std @rm"
33 CAT_rshd_redone="network|rshd and rlogind"
34 DEPENDS_rshd_redone="pam"
35 PROVIDE_rshd_redone="rshd:pam rshd-pam"
36 CONFIG_FILES_rshd_redone="/etc/skel/.rhosts"
38 post_install_rshd_redone() {
39 if ! grep -qs rlogind $1/etc/inetd.conf; then
40 cat >> $1/etc/inetd.conf <<EOT
41 login stream tcp nowait root /usr/sbin/in.rlogind rlogind
42 shell stream tcp nowait root /usr/sbin/in.rshd rshd
43 EOT
44 [ -n "$1" ] || killall -HUP inetd
45 fi
46 }
48 pre_remove_rshd_redone() {
49 sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf
50 [ -n "$1" ] || killall -HUP inetd
51 }