wok-next annotate rsync/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents c3c324c07d3f
children
rev   line source
al@20435 1 # SliTaz package receipt v2.
pankso@8 2
pankso@8 3 PACKAGE="rsync"
al@20435 4 VERSION="3.1.3"
pankso@203 5 CATEGORY="network"
al@20435 6 SHORT_DESC="Utility that provides fast incremental"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
al@20435 9 WEB_SITE="https://rsync.samba.org/"
al@20435 10
pankso@8 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20435 12 WGET_URL="https://download.samba.org/pub/rsync/src/$TARBALL"
pankso@8 13
pascal@20215 14 BUILD_DEPENDS="popt-dev attr-dev acl-dev perl"
pankso@15988 15
al@20435 16 compile_rules() {
pankso@536 17 ./configure \
pankso@536 18 --prefix=/usr \
pankso@536 19 --mandir=/usr/share/man \
pankso@15988 20 --disable-iconv \
pankso@15988 21 --disable-iconv-open \
al@20435 22 $CONFIGURE_ARGS || return 1
pascal@2972 23 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
pascal@2972 24 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
pascal@2972 25 sed -i 's/-liconv//' Makefile
pascal@1581 26 make &&
al@21020 27 make DESTDIR=$install install || return 1
al@20435 28
al@20435 29 # Config file is /etc/rsyncd.conf.
al@20435 30 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
al@20435 31 cp -a $stuff/etc $install
al@20435 32 cp -a $stuff/usr $install
al@20435 33 chown root:root $install/etc/init.d/*
al@20435 34 chmod 0644 $install/etc/rsyncd.conf
pankso@8 35 }
pankso@8 36
al@20435 37 genpkg_rules() {
al@20435 38 copy @std
al@20435 39 DEPENDS="popt attr acl"
al@20435 40 CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets /etc/inetd.conf"
al@20435 41 TAGS="sync copy secure"
al@20435 42 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
al@20435 43 }
al@20435 44
al@20435 45 post_install() {
pascal@18730 46 grep -q rsync "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
pascal@17046 47 #rsync stream tcp nowait root rsync rsync -daemon
pascal@17046 48 EOT
pascal@17046 49 }
al@20435 50 post_remove() {
pascal@18730 51 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
al@20435 52 :
pankso@8 53 }