wok-current annotate rsync/receipt @ rev 20662

Up jansson (2.12)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 14 22:40:43 2019 +0100 (2019-01-14)
parents 87c81aded325
children f18534b5699c
rev   line source
pankso@8 1 # SliTaz package receipt.
pankso@8 2
pankso@8 3 PACKAGE="rsync"
pascal@20418 4 VERSION="3.1.3"
pankso@203 5 CATEGORY="network"
pankso@8 6 SHORT_DESC="Utility that provides fast incremental."
pankso@8 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pankso@8 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@8 10 WEB_SITE="http://rsync.samba.org/"
pascal@14374 11 WGET_URL="${WEB_SITE}ftp/rsync/$TARBALL"
pascal@17046 12 CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets /etc/inetd.conf"
pankso@15988 13 TAGS="sync copy secure"
pankso@16081 14 HOST_ARCH="i486 arm"
pankso@8 15
pascal@14374 16 DEPENDS="popt attr acl"
pankso@15988 17 BUILD_DEPENDS="popt-dev attr-dev acl-dev"
pankso@15988 18
pankso@15988 19 # TazPanel
pankso@15988 20 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
pascal@14374 21
pankso@8 22 # Rules to configure and make the package.
pankso@8 23 compile_rules()
pankso@8 24 {
pankso@536 25 ./configure \
pankso@536 26 --prefix=/usr \
pankso@536 27 --mandir=/usr/share/man \
pankso@15988 28 --disable-iconv \
pankso@15988 29 --disable-iconv-open \
pascal@2972 30 $CONFIGURE_ARGS
pascal@2972 31 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
pascal@2972 32 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
pascal@2972 33 sed -i 's/-liconv//' Makefile
pascal@1581 34 make &&
pascal@14374 35 make DESTDIR=$DESTDIR install
pankso@8 36 }
pankso@8 37
pankso@8 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8 39 genpkg_rules()
pankso@8 40 {
pankso@8 41 mkdir -p $fs/usr
pascal@14374 42 cp -a $install/usr/bin $fs/usr
pankso@8 43 # Config file is /etc/rsyncd.conf.
pankso@8 44 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
pankso@8 45 #
pankso@15988 46 cp -a $stuff/etc $fs
pascal@18324 47 cp -a $stuff/usr $fs
erjo@1074 48 chown root.root $fs/etc/init.d/*
pankso@8 49 chmod 0644 $fs/etc/rsyncd.conf
pascal@19769 50 }
pascal@19769 51
pascal@19769 52 post_install()
pascal@19769 53 {
pascal@19767 54 [ -s "$1/etc/inetd.conf" ] &&
pascal@19767 55 ! grep -qs rsync "$1/etc/inetd.conf" &&
pascal@19767 56 cat >> "$1/etc/inetd.conf" <<EOT
pascal@17046 57 #rsync stream tcp nowait root rsync rsync -daemon
pascal@17046 58 EOT
pascal@19768 59 true
pascal@17046 60 }
erjo@1074 61
pascal@17046 62 post_remove()
pascal@17046 63 {
pascal@18730 64 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
pankso@8 65 }