wok-next diff rsync/receipt @ rev 20677

Up libsigsegv (2.12); add libseccomp
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 15 00:56:38 2018 +0300 (2018-05-15)
parents d919176411a4
children d5aab818505e
line diff
     1.1 --- a/rsync/receipt	Sun Nov 05 09:09:04 2017 +0100
     1.2 +++ b/rsync/receipt	Tue May 15 00:56:38 2018 +0300
     1.3 @@ -1,58 +1,53 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="rsync"
     1.8 -VERSION="3.1.1"
     1.9 +VERSION="3.1.3"
    1.10  CATEGORY="network"
    1.11 -SHORT_DESC="Utility that provides fast incremental."
    1.12 +SHORT_DESC="Utility that provides fast incremental"
    1.13  MAINTAINER="pankso@slitaz.org"
    1.14  LICENSE="GPL3"
    1.15 +WEB_SITE="https://rsync.samba.org/"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://rsync.samba.org/"
    1.19 -WGET_URL="${WEB_SITE}ftp/rsync/$TARBALL"
    1.20 -CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets /etc/inetd.conf"
    1.21 -TAGS="sync copy secure"
    1.22 -HOST_ARCH="i486 arm"
    1.23 +WGET_URL="https://download.samba.org/pub/rsync/src/$TARBALL"
    1.24  
    1.25 -DEPENDS="popt attr acl"
    1.26  BUILD_DEPENDS="popt-dev attr-dev acl-dev perl"
    1.27  
    1.28 -# TazPanel
    1.29 -TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
    1.30 -
    1.31 -# Rules to configure and make the package.
    1.32 -compile_rules()
    1.33 -{
    1.34 +compile_rules() {
    1.35  	./configure \
    1.36  		--prefix=/usr \
    1.37  		--mandir=/usr/share/man \
    1.38  		--disable-iconv \
    1.39  		--disable-iconv-open \
    1.40 -		$CONFIGURE_ARGS
    1.41 +		$CONFIGURE_ARGS || return 1
    1.42  	sed -i  -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
    1.43  		-e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
    1.44  	sed -i 's/-liconv//' Makefile
    1.45  	make &&
    1.46 -	make DESTDIR=$DESTDIR install
    1.47 +	make DESTDIR=$DESTDIR install || return 1
    1.48 +
    1.49 +	# Config file is /etc/rsyncd.conf.
    1.50 +	# User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
    1.51 +	cp -a $stuff/etc $install
    1.52 +	cp -a $stuff/usr $install
    1.53 +	chown root:root  $install/etc/init.d/*
    1.54 +	chmod 0644       $install/etc/rsyncd.conf
    1.55  }
    1.56  
    1.57 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.58 -genpkg_rules()
    1.59 -{
    1.60 -	mkdir -p $fs/usr
    1.61 -	cp -a $install/usr/bin $fs/usr
    1.62 -	# Config file is /etc/rsyncd.conf.
    1.63 -	# User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
    1.64 -	#
    1.65 -	cp -a $stuff/etc $fs
    1.66 -	cp -a $stuff/usr $fs
    1.67 -	chown root.root $fs/etc/init.d/*
    1.68 -	chmod 0644 $fs/etc/rsyncd.conf
    1.69 +genpkg_rules() {
    1.70 +	copy @std
    1.71 +	DEPENDS="popt attr acl"
    1.72 +	CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets /etc/inetd.conf"
    1.73 +	TAGS="sync copy secure"
    1.74 +	TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
    1.75 +}
    1.76 +
    1.77 +post_install() {
    1.78  	grep -q rsync "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
    1.79  #rsync	stream	tcp	nowait	root	rsync	rsync	-daemon
    1.80  EOT
    1.81  }
    1.82 -
    1.83 -post_remove()
    1.84 -{
    1.85 +post_remove() {
    1.86  	grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
    1.87 +	:
    1.88  }