wok-next annotate rsh-redone/receipt @ rev 21465

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