wok-current view rsync/receipt @ rev 24781

Up ntk (1.3.1001)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 20 10:32:22 2022 +0000 (2022-03-20)
parents 9ea6d3207601
children 1805f71c5d9f
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 lz4-lib zstd"
18 BUILD_DEPENDS="popt-dev attr-dev acl-dev xxhash-dev lz4-dev zstd-dev"
19 SUGGESTED="bash openssl"
21 # TazPanel
22 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
24 current_version()
25 {
26 wget -O - $WEB_SITE 2>/dev/null | \
27 sed "/$PACKAGE-/!d;/tar/!d;s|.tar.*||;s|.*-||;q"
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --prefix=/usr \
35 --mandir=/usr/share/man \
36 --disable-iconv \
37 --disable-iconv-open \
38 --disable-openssl \
39 $CONFIGURE_ARGS
40 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
41 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
42 sed -i 's/-liconv//' Makefile
43 make &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 # Config file is /etc/rsyncd.conf.
53 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
54 #
55 cp -a $stuff/etc $fs
56 cp -a $stuff/usr $fs
57 chown root.root $fs/etc/init.d/*
58 chmod 0644 $fs/etc/rsyncd.conf
59 }
61 post_install()
62 {
63 [ -s "$1/etc/inetd.conf" ] &&
64 ! grep -qs rsync "$1/etc/inetd.conf" &&
65 cat >> "$1/etc/inetd.conf" <<EOT
66 #rsync stream tcp nowait root rsync rsync -daemon
67 EOT
68 true
69 }
71 post_remove()
72 {
73 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
74 }