wok rev 21092
syslinux/taziso: update for new dialog package
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 16 13:37:17 2019 +0100 (2019-03-16) |
parents | 1f0773e2f6fe |
children | ff8dc62daa05 |
files | netkit-rsh/receipt rshd/receipt syslinux/stuff/iso2exe/taziso |
line diff
1.1 --- a/netkit-rsh/receipt Sat Mar 16 10:28:53 2019 +0100 1.2 +++ b/netkit-rsh/receipt Sat Mar 16 13:37:17 2019 +0100 1.3 @@ -9,6 +9,7 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.5 WEB_SITE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit" 1.6 WGET_URL="http://ibiblio.org/pub/linux/system/network/netkit/$TARBALL" 1.7 +PROVIDE="rsh rshd" 1.8 1.9 DEPENDS="" 1.10 BUILD_DEPENDS="ncurses-dev" 1.11 @@ -33,3 +34,23 @@ 1.12 cp -a $install/usr/bin $fs/usr 1.13 cp -a $install/usr/sbin $fs/usr 1.14 } 1.15 + 1.16 +# Pre and post install commands for Tazpkg. 1.17 +post_install() 1.18 +{ 1.19 + if ! grep -qs rlogind $1/etc/inetd.conf; then 1.20 + cat >> $1/etc/inetd.conf <<EOT 1.21 +exec stream tcp nowait root /usr/sbin/in.execd execd 1.22 +login stream tcp nowait root /usr/sbin/in.rlogind rlogind 1.23 +shell stream tcp nowait root /usr/sbin/in.rshd rshd 1.24 +EOT 1.25 + [ -n "$1" ] || killall -HUP inetd 1.26 + fi 1.27 +} 1.28 + 1.29 +# Pre and post install commands for Tazpkg. 1.30 +pre_remove() 1.31 +{ 1.32 + sed -i '/rlogind/d;/rshd/d;/rexec/d' $1/etc/inetd.conf 1.33 + [ -n "$1" ] || killall -HUP inetd 1.34 +}
2.1 --- a/rshd/receipt Sat Mar 16 10:28:53 2019 +0100 2.2 +++ b/rshd/receipt Sat Mar 16 13:37:17 2019 +0100 2.3 @@ -18,3 +18,22 @@ 2.4 cp -a $install/usr/sbin $fs/usr 2.5 cp -a $install/usr/etc $fs 2.6 } 2.7 + 2.8 +# Pre and post install commands for Tazpkg. 2.9 +post_install() 2.10 +{ 2.11 + if ! grep -qs rlogind $1/etc/inetd.conf; then 2.12 + cat >> $1/etc/inetd.conf <<EOT 2.13 +login stream tcp nowait root /usr/sbin/in.rlogind rlogind 2.14 +shell stream tcp nowait root /usr/sbin/in.rshd rshd 2.15 +EOT 2.16 + [ -n "$1" ] || killall -HUP inetd 2.17 + fi 2.18 +} 2.19 + 2.20 +# Pre and post install commands for Tazpkg. 2.21 +pre_remove() 2.22 +{ 2.23 + sed -i '/rlogind/d;/rshd/d' $1/etc/inetd.conf 2.24 + [ -n "$1" ] || killall -HUP inetd 2.25 +}
3.1 --- a/syslinux/stuff/iso2exe/taziso Sat Mar 16 10:28:53 2019 +0100 3.2 +++ b/syslinux/stuff/iso2exe/taziso Sat Mar 16 13:37:17 2019 +0100 3.3 @@ -1345,7 +1345,7 @@ 3.4 3.5 while true; do 3.6 cat > /tmp/dialog$$ <<EOT 3.7 -$DIALOG --clear --title " $(isotitle) " --menu "" -2 70 0 \ 3.8 +$DIALOG --clear --title " $(isotitle) " --menu "" 28 70 30 \ 3.9 $(cdfile 'README*' "readme" "Show the README file") \ 3.10 $(gotcustomconf "getcustomconf" "Get custom config") \ 3.11 $(gotisomd5 "isomd5" "Check the ISO image") \