wok annotate rsync/receipt @ rev 25155
updated proxytunnel (1.9.0 -> 1.10)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 30 15:35:33 2022 +0100 (2022-06-30) |
parents | 4e5765b0f66e |
children | 298c4817ff72 |
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@24976 | 11 WGET_URL="${WEB_SITE}ftp/rsync/src/$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@24157 | 17 DEPENDS="popt attr acl xxhash-lib lz4-lib zstd" |
pascal@24157 | 18 BUILD_DEPENDS="popt-dev attr-dev acl-dev xxhash-dev lz4-dev zstd-dev" |
pascal@24157 | 19 SUGGESTED="bash openssl" |
pankso@15988 | 20 |
pankso@15988 | 21 # TazPanel |
pankso@15988 | 22 TAZPANEL_DAEMON="man::rsync|help::rsync|edit|options|web::$WEB_SITE" |
pascal@14374 | 23 |
pascal@24043 | 24 current_version() |
pascal@24043 | 25 { |
pascal@24043 | 26 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24043 | 27 sed "/$PACKAGE-/!d;/tar/!d;s|.tar.*||;s|.*-||;q" |
pascal@24043 | 28 } |
pascal@24043 | 29 |
pankso@8 | 30 # Rules to configure and make the package. |
pankso@8 | 31 compile_rules() |
pankso@8 | 32 { |
pankso@536 | 33 ./configure \ |
pankso@536 | 34 --prefix=/usr \ |
pankso@536 | 35 --mandir=/usr/share/man \ |
pankso@15988 | 36 --disable-iconv \ |
pankso@15988 | 37 --disable-iconv-open \ |
pascal@24048 | 38 --disable-openssl \ |
pascal@2972 | 39 $CONFIGURE_ARGS |
pascal@2972 | 40 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \ |
pascal@2972 | 41 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h |
pascal@2972 | 42 sed -i 's/-liconv//' Makefile |
pascal@1581 | 43 make && |
pascal@14374 | 44 make DESTDIR=$DESTDIR install |
pankso@8 | 45 } |
pankso@8 | 46 |
pankso@8 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 48 genpkg_rules() |
pankso@8 | 49 { |
pankso@8 | 50 mkdir -p $fs/usr |
pascal@14374 | 51 cp -a $install/usr/bin $fs/usr |
pankso@8 | 52 # Config file is /etc/rsyncd.conf. |
pankso@8 | 53 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd |
pankso@8 | 54 # |
pankso@15988 | 55 cp -a $stuff/etc $fs |
pascal@18324 | 56 cp -a $stuff/usr $fs |
erjo@1074 | 57 chown root.root $fs/etc/init.d/* |
pankso@8 | 58 chmod 0644 $fs/etc/rsyncd.conf |
pascal@19769 | 59 } |
pascal@19769 | 60 |
pascal@19769 | 61 post_install() |
pascal@19769 | 62 { |
pascal@19767 | 63 [ -s "$1/etc/inetd.conf" ] && |
pascal@19767 | 64 ! grep -qs rsync "$1/etc/inetd.conf" && |
pascal@19767 | 65 cat >> "$1/etc/inetd.conf" <<EOT |
pascal@17046 | 66 #rsync stream tcp nowait root rsync rsync -daemon |
pascal@17046 | 67 EOT |
pascal@19768 | 68 true |
pascal@17046 | 69 } |
erjo@1074 | 70 |
pascal@17046 | 71 post_remove() |
pascal@17046 | 72 { |
pascal@18730 | 73 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf" |
pankso@8 | 74 } |