wok view rsync/receipt @ rev 25301
updated sg3_utils, sg3_utils-dev and libsgutils2 (1.45 -> 1.47)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 08:07:57 2022 +0100 (2022-07-20) |
parents | 1805f71c5d9f |
children | 6acd28d149b8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="rsync"
4 VERSION="3.2.4"
5 CATEGORY="network"
6 TAGS="sync copy secure"
7 SHORT_DESC="Utility that provides fast incremental file transfer."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://rsync.samba.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}ftp/rsync/src/$TARBALL"
15 SUGGESTED="bash openssl"
16 DEPENDS="attr acl lz4-lib popt xxhash-lib zstd"
17 BUILD_DEPENDS="acl-dev attr-dev lz4-dev popt-dev xxhash-dev zstd-dev"
19 CONFIG_FILES="/etc/rsyncd.conf"
20 SECRET_FILES="/etc/rsyncd.secrets"
21 HOST_ARCH="i486 arm"
23 # TazPanel
24 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
26 current_version()
27 {
28 wget -O - $WEB_SITE 2>/dev/null | \
29 sed "/$PACKAGE-/!d;/tar/!d;s|.tar.*||;s|.*-||;q"
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure \
36 --prefix=/usr \
37 --mandir=/usr/share/man \
38 --disable-iconv \
39 --disable-iconv-open \
40 --disable-openssl \
41 $CONFIGURE_ARGS
42 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
43 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
44 sed -i 's/-liconv//' Makefile
45 make &&
46 make install DESTDIR=$DESTDIR
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 cook_copy_folders bin
54 # Configuration file is /etc/rsyncd.conf.
55 # User and password in /etc/rsyncd.secrets, syntax : user:passwd
56 #
57 cp -a $stuff/etc $fs
58 cp -a $stuff/usr $fs
59 chown root.root $fs/etc/init.d/*
60 chmod 0644 $fs/etc/rsyncd.conf
61 }
63 post_install()
64 {
65 [ -s "$1/etc/inetd.conf" ] &&
66 ! grep -qs rsync "$1/etc/inetd.conf" &&
67 cat >> "$1/etc/inetd.conf" <<EOT
68 #rsync stream tcp nowait root rsync rsync -daemon
69 EOT
70 true
71 }
73 post_remove()
74 {
75 grep -q rsync "$1/etc/inetd.conf" &&
76 sed -i '/rsync/d' "$1/etc/inetd.conf"
77 }