wok view rsync/receipt @ rev 10124

gource: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 16:39:19 2011 +0000 (2011-05-20)
parents 7f631665ba40
children c441a7112818
line source
1 # SliTaz package receipt.
3 PACKAGE="rsync"
4 VERSION="3.0.8"
5 CATEGORY="network"
6 SHORT_DESC="Utility that provides fast incremental."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="popt attr acl"
9 BUILD_DEPENDS="popt-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://rsync.samba.org/"
12 WGET_URL="http://rsync.samba.org/ftp/rsync/$TARBALL"
13 TAGS="sync"
14 CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --mandir=/usr/share/man \
23 --disable-iconv --disable-iconv-open \
24 $CONFIGURE_ARGS
25 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \
26 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h
27 sed -i 's/-liconv//' Makefile
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $_pkg/usr/bin $fs/usr
37 # Config file is /etc/rsyncd.conf.
38 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
39 #
40 cp -a stuff/etc $fs
41 chown root.root $fs/etc/init.d/*
42 chmod 0644 $fs/etc/rsyncd.conf
44 }