wok view rsync/receipt @ rev 25707
Up perl-net-pcap (0.21), qtermwidget (0.5.1), youtube-dl-gui (0.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 05 14:08:34 2024 +0000 (3 months ago) |
parents | 298c4817ff72 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="rsync"
4 VERSION="3.2.7"
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 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - $WEB_SITE 2>/dev/null | \
30 sed "/$PACKAGE-/!d;/tar/!d;s|.tar.*||;s|.*-||;q"
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 ./configure \
37 --prefix=/usr \
38 --mandir=/usr/share/man \
39 --disable-iconv \
40 --disable-iconv-open \
41 --disable-openssl \
42 $CONFIGURE_ARGS
43 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
44 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
45 sed -i 's/-liconv//' Makefile
46 make &&
47 make install DESTDIR=$DESTDIR
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 cook_copy_folders bin
55 # Configuration file is /etc/rsyncd.conf.
56 # User and password in /etc/rsyncd.secrets, syntax : user:passwd
57 #
58 cp -a $stuff/etc $fs
59 cp -a $stuff/usr $fs
60 chown root.root $fs/etc/init.d/*
61 chmod 0644 $fs/etc/rsyncd.conf
62 }
64 post_install()
65 {
66 [ -s "$1/etc/inetd.conf" ] &&
67 ! grep -qs rsync "$1/etc/inetd.conf" &&
68 cat >> "$1/etc/inetd.conf" <<EOT
69 #rsync stream tcp nowait root rsync rsync -daemon
70 EOT
71 true
72 }
74 post_remove()
75 {
76 grep -q rsync "$1/etc/inetd.conf" &&
77 sed -i '/rsync/d' "$1/etc/inetd.conf"
78 }