wok-next diff rsh/receipt @ rev 21264

updated firefox-official (69.0 -> 71.0)
author Hans-G?nter Theisgen
date Fri Dec 06 15:46:28 2019 +0100 (2019-12-06)
parents 459b81bc8ce6
children
line diff
     1.1 --- a/rsh/receipt	Sun Apr 14 16:02:11 2019 +0200
     1.2 +++ b/rsh/receipt	Fri Dec 06 15:46:28 2019 +0100
     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  }