wok-next rev 21176
rsh-redone: clarify recipe, add overrides
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 19 15:19:14 2019 +0300 (2019-04-19) |
parents | 1184c739f22f |
children | 15c8646d7b15 |
files | rsh-redone/receipt rsh-redone/stuff/overrides |
line diff
1.1 --- a/rsh-redone/receipt Sun Apr 14 16:29:51 2019 +0200 1.2 +++ b/rsh-redone/receipt Fri Apr 19 15:19:14 2019 +0300 1.3 @@ -12,37 +12,28 @@ 1.4 WGET_URL="http://ftp.de.debian.org/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/$TARBALL" 1.5 1.6 BUILD_DEPENDS="pam-dev" 1.7 -SPLIT="rshd-redone" 1.8 1.9 compile_rules() { 1.10 sed -i 's|\(-l.* \)\(-o.*\)$|\2 \1|' Makefile 1.11 make && 1.12 - make DESTDIR=$install install 1.13 + make DESTDIR=$install SYSCONFDIR=/etc install || return 1 1.14 + 1.15 + mkdir -p $install/etc/skel/ 1.16 + touch $install/etc/skel/.rhosts 1.17 + chmod 600 $install/etc/skel/.rhosts 1.18 } 1.19 1.20 -genpkg_rules() { 1.21 - case $PACKAGE in 1.22 - rsh-redone) 1.23 - mkdir -p $fs/usr 1.24 - cp -a $install/usr/bin $fs/usr 1.25 - PROVIDE="rsh rlogin" 1.26 - ;; 1.27 - rshd-redone) 1.28 - mkdir -p $fs/usr $fs/etc/skel 1.29 - cp -a $install/usr/sbin $fs/usr 1.30 - cp -a $install/usr/etc $fs 1.31 - touch $fs/etc/skel/.rhosts 1.32 - chmod 600 $fs/etc/skel/.rhosts 1.33 - CAT="network|rshd and rlogind" 1.34 - DEPENDS="pam" 1.35 - PROVIDE="rshd:pam rshd-pam" 1.36 - ;; 1.37 - esac 1.38 -} 1.39 +SPLIT="rshd-redone" 1.40 1.41 -# Pre and post install commands for Tazpkg. 1.42 -post_install_rshd_redone() 1.43 -{ 1.44 +COPY_std="bin/" 1.45 +PROVIDE_std="rsh rlogin" 1.46 + 1.47 +COPY_rshd_redone="@std @rm" 1.48 +CAT_rshd_redone="network|rshd and rlogind" 1.49 +DEPENDS_rshd_redone="pam" 1.50 +PROVIDE_rshd_redone="rshd:pam rshd-pam" 1.51 + 1.52 +post_install_rshd_redone() { 1.53 if ! grep -qs rlogind $1/etc/inetd.conf; then 1.54 cat >> $1/etc/inetd.conf <<EOT 1.55 login stream tcp nowait root /usr/sbin/in.rlogind rlogind 1.56 @@ -52,9 +43,7 @@ 1.57 fi 1.58 } 1.59 1.60 -# Pre and post install commands for Tazpkg. 1.61 -pre_remove_rshd_redone() 1.62 -{ 1.63 +pre_remove_rshd_redone() { 1.64 sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf 1.65 [ -n "$1" ] || killall -HUP inetd 1.66 }