wok-next view rsync/receipt @ rev 21640
updated fbgrab (1.2 -> 1.3.3)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 26 15:42:40 2020 +0100 (2020-06-26) |
parents | c3c324c07d3f |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="rsync"
4 VERSION="3.1.3"
5 CATEGORY="network"
6 SHORT_DESC="Utility that provides fast incremental"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://rsync.samba.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://download.samba.org/pub/rsync/src/$TARBALL"
14 BUILD_DEPENDS="popt-dev attr-dev acl-dev perl"
16 compile_rules() {
17 ./configure \
18 --prefix=/usr \
19 --mandir=/usr/share/man \
20 --disable-iconv \
21 --disable-iconv-open \
22 $CONFIGURE_ARGS || return 1
23 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
24 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
25 sed -i 's/-liconv//' Makefile
26 make &&
27 make DESTDIR=$install install || return 1
29 # Config file is /etc/rsyncd.conf.
30 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
31 cp -a $stuff/etc $install
32 cp -a $stuff/usr $install
33 chown root:root $install/etc/init.d/*
34 chmod 0644 $install/etc/rsyncd.conf
35 }
37 genpkg_rules() {
38 copy @std
39 DEPENDS="popt attr acl"
40 CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets /etc/inetd.conf"
41 TAGS="sync copy secure"
42 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE"
43 }
45 post_install() {
46 grep -q rsync "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
47 #rsync stream tcp nowait root rsync rsync -daemon
48 EOT
49 }
50 post_remove() {
51 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
52 :
53 }