# HG changeset patch # User Aleksej Bobylev # Date 1555676354 -10800 # Node ID e752d7f7006103ec9a249c44677d56f640486480 # Parent 1184c739f22fc3297335c5da014554b60c420ff6 rsh-redone: clarify recipe, add overrides diff -r 1184c739f22f -r e752d7f70061 rsh-redone/receipt --- a/rsh-redone/receipt Sun Apr 14 16:29:51 2019 +0200 +++ b/rsh-redone/receipt Fri Apr 19 15:19:14 2019 +0300 @@ -12,37 +12,28 @@ WGET_URL="http://ftp.de.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL" BUILD_DEPENDS="pam-dev" -SPLIT="rshd-redone" compile_rules() { sed -i 's|\(-l.* \)\(-o.*\)$|\2 \1|' Makefile make && - make DESTDIR=$install install + make DESTDIR=$install SYSCONFDIR=/etc install || return 1 + + mkdir -p $install/etc/skel/ + touch $install/etc/skel/.rhosts + chmod 600 $install/etc/skel/.rhosts } -genpkg_rules() { - case $PACKAGE in - rsh-redone) - mkdir -p $fs/usr - cp -a $install/usr/bin $fs/usr - PROVIDE="rsh rlogin" - ;; - rshd-redone) - 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 -} +SPLIT="rshd-redone" -# Pre and post install commands for Tazpkg. -post_install_rshd_redone() -{ +COPY_std="bin/" +PROVIDE_std="rsh rlogin" + +COPY_rshd_redone="@std @rm" +CAT_rshd_redone="network|rshd and rlogind" +DEPENDS_rshd_redone="pam" +PROVIDE_rshd_redone="rshd:pam rshd-pam" + +post_install_rshd_redone() { if ! grep -qs rlogind $1/etc/inetd.conf; then cat >> $1/etc/inetd.conf <