wok-6.x view rsync/receipt @ rev 24002
Up tazinst (109)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 16 11:02:29 2021 +0000 (2021-01-16) |
parents | 7744355508b9 |
children | d44f69067aca |
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"
13 SECRET_FILES="/etc/rsyncd.secrets"
14 TAGS="sync copy secure"
15 HOST_ARCH="i486 arm"
17 DEPENDS="popt attr acl"
18 BUILD_DEPENDS="popt-dev attr-dev acl-dev"
20 # TazPanel
21 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 --mandir=/usr/share/man \
29 --disable-iconv \
30 --disable-iconv-open \
31 $CONFIGURE_ARGS
32 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
33 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
34 sed -i 's/-liconv//' Makefile
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 # Config file is /etc/rsyncd.conf.
45 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
46 #
47 cp -a $stuff/etc $fs
48 cp -a $stuff/usr $fs
49 chown root.root $fs/etc/init.d/*
50 chmod 0644 $fs/etc/rsyncd.conf
51 }
53 post_install()
54 {
55 [ -s "$1/etc/inetd.conf" ] &&
56 ! grep -qs rsync "$1/etc/inetd.conf" &&
57 cat >> "$1/etc/inetd.conf" <<EOT
58 #rsync stream tcp nowait root rsync rsync -daemon
59 EOT
60 true
61 }
63 post_remove()
64 {
65 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
66 }