wok-next diff rsh/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | 459b81bc8ce6 |
children |
line diff
1.1 --- a/rsh/receipt Sun Apr 14 16:02:11 2019 +0200 1.2 +++ b/rsh/receipt Tue Sep 01 10:31:46 2020 +0000 1.3 @@ -7,13 +7,15 @@ 1.4 MAINTAINER="pascal.bellard@slitaz.org" 1.5 LICENSE="BSD" 1.6 WEB_SITE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit" 1.7 -PROVIDE="rshd rlogin netkit-rsh" 1.8 1.9 TARBALL="netkit-$PACKAGE-$VERSION.tar.gz" 1.10 WGET_URL="http://ibiblio.org/pub/linux/system/network/netkit/$TARBALL" 1.11 1.12 BUILD_DEPENDS="ncurses-dev" 1.13 1.14 +PROVIDE="rshd rlogin netkit-rsh" 1.15 +CONFIG_FILES="/etc/skel/.rhosts" 1.16 + 1.17 compile_rules() { 1.18 sed \ 1.19 -e 's/union wait/int/' \ 1.20 @@ -31,19 +33,14 @@ 1.21 --without-pam \ 1.22 --installroot=$install && 1.23 make && 1.24 - make install 1.25 + make install || return 1 1.26 + 1.27 + mkdir -p $install/etc/skel/ 1.28 + touch $install/etc/skel/.rhosts 1.29 + chmod 600 $install/etc/skel/.rhosts 1.30 } 1.31 1.32 -genpkg_rules() { 1.33 - copy @std 1.34 - mkdir -p $fs/etc/skel 1.35 - touch $fs/etc/skel/.rhosts 1.36 - chmod 600 $fs/etc/skel/.rhosts 1.37 -} 1.38 - 1.39 -# Pre and post install commands for Tazpkg. 1.40 -post_install() 1.41 -{ 1.42 +post_install() { 1.43 if ! grep -qs rlogind $1/etc/inetd.conf; then 1.44 cat >> $1/etc/inetd.conf <<EOT 1.45 exec stream tcp nowait root /usr/sbin/in.execd execd 1.46 @@ -54,9 +51,7 @@ 1.47 fi 1.48 } 1.49 1.50 -# Pre and post install commands for Tazpkg. 1.51 -pre_remove() 1.52 -{ 1.53 +pre_remove() { 1.54 sed -i '/rlogind/d;/rshd/d;/rexec/d' $1/etc/inetd.conf 1.55 [ -n "$1" ] || killall -HUP inetd 1.56 }