wok-current view rsync/receipt @ rev 19722
Up cgal (4.9)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 16 13:20:58 2017 +0100 (2017-02-16) |
parents | d211311bd968 |
children | 49d803122cfe |
line source
1 # SliTaz package receipt.
3 PACKAGE="rsync"
4 VERSION="3.1.1"
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="http://rsync.samba.org/"
11 WGET_URL="${WEB_SITE}ftp/rsync/$TARBALL"
12 CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets /etc/inetd.conf"
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 grep -q rsync "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
51 #rsync stream tcp nowait root rsync rsync -daemon
52 EOT
53 }
55 post_remove()
56 {
57 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
58 }