wok annotate rsync/receipt @ rev 18020
Up rp-pppoe (3.11)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 02 22:46:46 2015 +0200 (2015-05-02) |
parents | 227b2c1214c2 |
children | d211311bd968 |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="rsync" |
pascal@17199 | 4 VERSION="3.1.1" |
pankso@203 | 5 CATEGORY="network" |
pankso@8 | 6 SHORT_DESC="Utility that provides fast incremental." |
pankso@8 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pankso@8 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@8 | 10 WEB_SITE="http://rsync.samba.org/" |
pascal@14374 | 11 WGET_URL="${WEB_SITE}ftp/rsync/$TARBALL" |
pascal@17046 | 12 CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets /etc/inetd.conf" |
pankso@15988 | 13 TAGS="sync copy secure" |
pankso@16081 | 14 HOST_ARCH="i486 arm" |
pankso@8 | 15 |
pascal@14374 | 16 DEPENDS="popt attr acl" |
pankso@15988 | 17 BUILD_DEPENDS="popt-dev attr-dev acl-dev" |
pankso@15988 | 18 |
pankso@15988 | 19 # TazPanel |
pankso@15988 | 20 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE" |
pascal@14374 | 21 |
pankso@8 | 22 # Rules to configure and make the package. |
pankso@8 | 23 compile_rules() |
pankso@8 | 24 { |
pankso@536 | 25 ./configure \ |
pankso@536 | 26 --prefix=/usr \ |
pankso@536 | 27 --mandir=/usr/share/man \ |
pankso@15988 | 28 --disable-iconv \ |
pankso@15988 | 29 --disable-iconv-open \ |
pascal@2972 | 30 $CONFIGURE_ARGS |
pascal@2972 | 31 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \ |
pascal@2972 | 32 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h |
pascal@2972 | 33 sed -i 's/-liconv//' Makefile |
pascal@1581 | 34 make && |
pascal@14374 | 35 make DESTDIR=$DESTDIR install |
pankso@8 | 36 } |
pankso@8 | 37 |
pankso@8 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 39 genpkg_rules() |
pankso@8 | 40 { |
pankso@8 | 41 mkdir -p $fs/usr |
pascal@14374 | 42 cp -a $install/usr/bin $fs/usr |
pankso@8 | 43 # Config file is /etc/rsyncd.conf. |
pankso@8 | 44 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd |
pankso@8 | 45 # |
pankso@15988 | 46 cp -a $stuff/etc $fs |
erjo@1074 | 47 chown root.root $fs/etc/init.d/* |
pankso@8 | 48 chmod 0644 $fs/etc/rsyncd.conf |
pascal@17046 | 49 grep -q rsync $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT |
pascal@17046 | 50 #rsync stream tcp nowait root rsync rsync -daemon |
pascal@17046 | 51 EOT |
pascal@17046 | 52 } |
erjo@1074 | 53 |
pascal@17046 | 54 post_remove() |
pascal@17046 | 55 { |
pascal@17046 | 56 grep -q rsync $1/etc/inetd.conf && sed -i '/rsync/d' $1/etc/inetd.conf |
pankso@8 | 57 } |