wok view rsync/receipt @ rev 24047

Up ipxe (1.21.1), rsync (3.2.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 10 19:33:04 2021 +0000 (2021-05-10)
parents d44f69067aca
children 9ea6d3207601
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"
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 $CONFIGURE_ARGS
38 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
39 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
40 sed -i 's/-liconv//' Makefile
41 make &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
49 cp -a $install/usr/bin $fs/usr
50 # Config file is /etc/rsyncd.conf.
51 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
52 #
53 cp -a $stuff/etc $fs
54 cp -a $stuff/usr $fs
55 chown root.root $fs/etc/init.d/*
56 chmod 0644 $fs/etc/rsyncd.conf
57 }
59 post_install()
60 {
61 [ -s "$1/etc/inetd.conf" ] &&
62 ! grep -qs rsync "$1/etc/inetd.conf" &&
63 cat >> "$1/etc/inetd.conf" <<EOT
64 #rsync stream tcp nowait root rsync rsync -daemon
65 EOT
66 true
67 }
69 post_remove()
70 {
71 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
72 }