wok-6.x view rsync/receipt @ rev 19112
Deprecate "murrine" package, use "gtk2-engine-murrine" instead.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 07 04:49:28 2016 +0300 (2016-05-07) |
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 }