wok-current annotate rsync/receipt @ rev 24048
Add xxhash-lib
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 10 19:56:39 2021 +0000 (2021-05-10) |
parents | c1a1d1f23e07 |
children | 4e5765b0f66e |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="rsync" |
pascal@24047 | 4 VERSION="3.2.3" |
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" |
pascal@23820 | 10 WEB_SITE="https://rsync.samba.org/" |
pascal@14374 | 11 WGET_URL="${WEB_SITE}ftp/rsync/$TARBALL" |
pascal@23902 | 12 CONFIG_FILES="/etc/rsyncd.conf" |
pascal@23902 | 13 SECRET_FILES="/etc/rsyncd.secrets" |
pankso@15988 | 14 TAGS="sync copy secure" |
pankso@16081 | 15 HOST_ARCH="i486 arm" |
pankso@8 | 16 |
pascal@24048 | 17 DEPENDS="popt attr acl xxhash-lib" |
pascal@24047 | 18 BUILD_DEPENDS="popt-dev attr-dev acl-dev xxhash-dev" |
pankso@15988 | 19 |
pankso@15988 | 20 # TazPanel |
pankso@15988 | 21 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE" |
pascal@14374 | 22 |
pascal@24043 | 23 current_version() |
pascal@24043 | 24 { |
pascal@24043 | 25 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24043 | 26 sed "/$PACKAGE-/!d;/tar/!d;s|.tar.*||;s|.*-||;q" |
pascal@24043 | 27 } |
pascal@24043 | 28 |
pankso@8 | 29 # Rules to configure and make the package. |
pankso@8 | 30 compile_rules() |
pankso@8 | 31 { |
pankso@536 | 32 ./configure \ |
pankso@536 | 33 --prefix=/usr \ |
pankso@536 | 34 --mandir=/usr/share/man \ |
pankso@15988 | 35 --disable-iconv \ |
pankso@15988 | 36 --disable-iconv-open \ |
pascal@24048 | 37 --disable-openssl \ |
pascal@24048 | 38 --disable-zstd \ |
pascal@24048 | 39 --disable-lz4 \ |
pascal@2972 | 40 $CONFIGURE_ARGS |
pascal@2972 | 41 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \ |
pascal@2972 | 42 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h |
pascal@2972 | 43 sed -i 's/-liconv//' Makefile |
pascal@1581 | 44 make && |
pascal@14374 | 45 make DESTDIR=$DESTDIR install |
pankso@8 | 46 } |
pankso@8 | 47 |
pankso@8 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 49 genpkg_rules() |
pankso@8 | 50 { |
pankso@8 | 51 mkdir -p $fs/usr |
pascal@14374 | 52 cp -a $install/usr/bin $fs/usr |
pankso@8 | 53 # Config file is /etc/rsyncd.conf. |
pankso@8 | 54 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd |
pankso@8 | 55 # |
pankso@15988 | 56 cp -a $stuff/etc $fs |
pascal@18324 | 57 cp -a $stuff/usr $fs |
erjo@1074 | 58 chown root.root $fs/etc/init.d/* |
pankso@8 | 59 chmod 0644 $fs/etc/rsyncd.conf |
pascal@19769 | 60 } |
pascal@19769 | 61 |
pascal@19769 | 62 post_install() |
pascal@19769 | 63 { |
pascal@19767 | 64 [ -s "$1/etc/inetd.conf" ] && |
pascal@19767 | 65 ! grep -qs rsync "$1/etc/inetd.conf" && |
pascal@19767 | 66 cat >> "$1/etc/inetd.conf" <<EOT |
pascal@17046 | 67 #rsync stream tcp nowait root rsync rsync -daemon |
pascal@17046 | 68 EOT |
pascal@19768 | 69 true |
pascal@17046 | 70 } |
erjo@1074 | 71 |
pascal@17046 | 72 post_remove() |
pascal@17046 | 73 { |
pascal@18730 | 74 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf" |
pankso@8 | 75 } |