wok view rsync/receipt @ rev 17971
Add arpack-ng
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 17 23:23:01 2015 +0200 (2015-04-17) |
parents | 227b2c1214c2 |
children | d211311bd968 |
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 chown root.root $fs/etc/init.d/*
48 chmod 0644 $fs/etc/rsyncd.conf
49 grep -q rsync $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
50 #rsync stream tcp nowait root rsync rsync -daemon
51 EOT
52 }
54 post_remove()
55 {
56 grep -q rsync $1/etc/inetd.conf && sed -i '/rsync/d' $1/etc/inetd.conf
57 }