# HG changeset patch # User Pascal Bellard # Date 1555244933 -7200 # Node ID 5e71a9c3df0cf9570a38d1dceb61d4089f7e2784 # Parent dbc201d673f54a12327c13b2764966aefb394fb4 rsh -> rsh-redone diff -r dbc201d673f5 -r 5e71a9c3df0c rsh-redone/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rsh-redone/receipt Sun Apr 14 14:28:53 2019 +0200 @@ -0,0 +1,58 @@ +# SliTaz package receipt v2. + +PACKAGE="rsh-redone" +VERSION="85" +CATEGORY="network" +SHORT_DESC="Reimplementation of rsh and rlogin" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL" +WEB_SITE="https://packages.debian.org/source/sid/rsh-redone" + +TARBALL="${PACKAGE}_$VERSION.orig.tar.gz" +WGET_URL="http://ftp.de.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL" + +BUILD_DEPENDS="pam-dev" +SPLIT="rshd" + +compile_rules() { + make && + make DESTDIR=$install install +} + +genpkg_rules() { + case $PACKAGE in + rsh) + mkdir -p $fs/usr + cp -a $install/usr/bin $fs/usr + ;; + rshd) + mkdir -p $fs/usr $fs/etc/skel + cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/etc $fs + touch $fs/etc/skel/.rhosts + chmod 600 $fs/etc/skel/.rhosts + CAT="network|rshd and rlogind" + DEPENDS="pam" + PROVIDE="rshd:pam rshd-pam" + ;; + esac +} + +# Pre and post install commands for Tazpkg. +post_install_rshd() +{ + if ! grep -qs rlogind $1/etc/inetd.conf; then + cat >> $1/etc/inetd.conf <