wok view rsync/receipt @ rev 24048

Add xxhash-lib
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 10 19:56:39 2021 +0000 (2021-05-10)
parents c1a1d1f23e07
children 4e5765b0f66e
line source
1 # SliTaz package receipt.
3 PACKAGE="rsync"
4 VERSION="3.2.3"
5 CATEGORY="network"
6 SHORT_DESC="Utility that provides fast incremental."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://rsync.samba.org/"
11 WGET_URL="${WEB_SITE}ftp/rsync/$TARBALL"
12 CONFIG_FILES="/etc/rsyncd.conf"
13 SECRET_FILES="/etc/rsyncd.secrets"
14 TAGS="sync copy secure"
15 HOST_ARCH="i486 arm"
17 DEPENDS="popt attr acl xxhash-lib"
18 BUILD_DEPENDS="popt-dev attr-dev acl-dev xxhash-dev"
20 # TazPanel
21 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
23 current_version()
24 {
25 wget -O - $WEB_SITE 2>/dev/null | \
26 sed "/$PACKAGE-/!d;/tar/!d;s|.tar.*||;s|.*-||;q"
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --mandir=/usr/share/man \
35 --disable-iconv \
36 --disable-iconv-open \
37 --disable-openssl \
38 --disable-zstd \
39 --disable-lz4 \
40 $CONFIGURE_ARGS
41 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
42 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
43 sed -i 's/-liconv//' Makefile
44 make &&
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr
52 cp -a $install/usr/bin $fs/usr
53 # Config file is /etc/rsyncd.conf.
54 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
55 #
56 cp -a $stuff/etc $fs
57 cp -a $stuff/usr $fs
58 chown root.root $fs/etc/init.d/*
59 chmod 0644 $fs/etc/rsyncd.conf
60 }
62 post_install()
63 {
64 [ -s "$1/etc/inetd.conf" ] &&
65 ! grep -qs rsync "$1/etc/inetd.conf" &&
66 cat >> "$1/etc/inetd.conf" <<EOT
67 #rsync stream tcp nowait root rsync rsync -daemon
68 EOT
69 true
70 }
72 post_remove()
73 {
74 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
75 }