wok view rsync/receipt @ rev 23820

syslinux: merge init.exe & taziso
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 28 08:35:55 2020 +0000 (2020-05-28)
parents f18534b5699c
children a8546de77bcc
line source
1 # SliTaz package receipt.
3 PACKAGE="rsync"
4 VERSION="3.1.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 /etc/rsyncd.secrets"
13 TAGS="sync copy secure"
14 HOST_ARCH="i486 arm"
16 DEPENDS="popt attr acl"
17 BUILD_DEPENDS="popt-dev attr-dev acl-dev"
19 # TazPanel
20 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 --disable-iconv \
29 --disable-iconv-open \
30 $CONFIGURE_ARGS
31 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
32 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
33 sed -i 's/-liconv//' Makefile
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/usr/bin $fs/usr
43 # Config file is /etc/rsyncd.conf.
44 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
45 #
46 cp -a $stuff/etc $fs
47 cp -a $stuff/usr $fs
48 chown root.root $fs/etc/init.d/*
49 chmod 0644 $fs/etc/rsyncd.conf
50 }
52 post_install()
53 {
54 [ -s "$1/etc/inetd.conf" ] &&
55 ! grep -qs rsync "$1/etc/inetd.conf" &&
56 cat >> "$1/etc/inetd.conf" <<EOT
57 #rsync stream tcp nowait root rsync rsync -daemon
58 EOT
59 true
60 }
62 post_remove()
63 {
64 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
65 }