wok-current annotate rsync/receipt @ rev 25687
Up expat CVE-2024-28757
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 15 07:23:20 2024 +0000 (5 months ago) |
parents | 298c4817ff72 |
children |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="rsync" |
shann@25634 | 4 VERSION="3.2.7" |
pankso@203 | 5 CATEGORY="network" |
Hans-G?nter@25287 | 6 TAGS="sync copy secure" |
Hans-G?nter@25287 | 7 SHORT_DESC="Utility that provides fast incremental file transfer." |
pankso@8 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
Hans-G?nter@25287 | 10 WEB_SITE="https://rsync.samba.org/" |
Hans-G?nter@25287 | 11 |
pankso@8 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24976 | 13 WGET_URL="${WEB_SITE}ftp/rsync/src/$TARBALL" |
Hans-G?nter@25287 | 14 |
Hans-G?nter@25287 | 15 SUGGESTED="bash openssl" |
Hans-G?nter@25287 | 16 DEPENDS="attr acl lz4-lib popt xxhash-lib zstd" |
Hans-G?nter@25287 | 17 BUILD_DEPENDS="acl-dev attr-dev lz4-dev popt-dev xxhash-dev zstd-dev" |
Hans-G?nter@25287 | 18 |
pascal@23902 | 19 CONFIG_FILES="/etc/rsyncd.conf" |
pascal@23902 | 20 SECRET_FILES="/etc/rsyncd.secrets" |
pankso@16081 | 21 HOST_ARCH="i486 arm" |
pankso@8 | 22 |
pankso@15988 | 23 # TazPanel |
pankso@15988 | 24 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE" |
pascal@14374 | 25 |
pascal@24043 | 26 current_version() |
pascal@24043 | 27 { |
pascal@24043 | 28 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24043 | 29 sed "/$PACKAGE-/!d;/tar/!d;s|.tar.*||;s|.*-||;q" |
pascal@24043 | 30 } |
pascal@24043 | 31 |
pankso@8 | 32 # Rules to configure and make the package. |
pankso@8 | 33 compile_rules() |
pankso@8 | 34 { |
Hans-G?nter@25287 | 35 ./configure \ |
Hans-G?nter@25287 | 36 --prefix=/usr \ |
Hans-G?nter@25287 | 37 --mandir=/usr/share/man \ |
Hans-G?nter@25287 | 38 --disable-iconv \ |
Hans-G?nter@25287 | 39 --disable-iconv-open \ |
Hans-G?nter@25287 | 40 --disable-openssl \ |
pascal@2972 | 41 $CONFIGURE_ARGS |
pascal@2972 | 42 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \ |
pascal@2972 | 43 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h |
Hans-G?nter@25287 | 44 sed -i 's/-liconv//' Makefile |
pascal@1581 | 45 make && |
Hans-G?nter@25287 | 46 make install DESTDIR=$DESTDIR |
pankso@8 | 47 } |
pankso@8 | 48 |
pankso@8 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 50 genpkg_rules() |
pankso@8 | 51 { |
Hans-G?nter@25287 | 52 cook_copy_folders bin |
Hans-G?nter@25287 | 53 |
Hans-G?nter@25287 | 54 # Configuration file is /etc/rsyncd.conf. |
Hans-G?nter@25287 | 55 # User and password in /etc/rsyncd.secrets, syntax : user:passwd |
pankso@8 | 56 # |
Hans-G?nter@25287 | 57 cp -a $stuff/etc $fs |
Hans-G?nter@25287 | 58 cp -a $stuff/usr $fs |
Hans-G?nter@25287 | 59 chown root.root $fs/etc/init.d/* |
Hans-G?nter@25287 | 60 chmod 0644 $fs/etc/rsyncd.conf |
pascal@19769 | 61 } |
pascal@19769 | 62 |
pascal@19769 | 63 post_install() |
pascal@19769 | 64 { |
pascal@19767 | 65 [ -s "$1/etc/inetd.conf" ] && |
pascal@19767 | 66 ! grep -qs rsync "$1/etc/inetd.conf" && |
pascal@19767 | 67 cat >> "$1/etc/inetd.conf" <<EOT |
pascal@17046 | 68 #rsync stream tcp nowait root rsync rsync -daemon |
pascal@17046 | 69 EOT |
pascal@19768 | 70 true |
pascal@17046 | 71 } |
erjo@1074 | 72 |
pascal@17046 | 73 post_remove() |
pascal@17046 | 74 { |
Hans-G?nter@25287 | 75 grep -q rsync "$1/etc/inetd.conf" && |
Hans-G?nter@25287 | 76 sed -i '/rsync/d' "$1/etc/inetd.conf" |
pankso@8 | 77 } |