wok annotate rsync/receipt @ rev 25808
created recipe for xmenu
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 19 16:09:37 2024 +0100 (9 days ago) |
parents | 298c4817ff72 |
children |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="rsync" |
pascal@25672 | 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@25672 | 26 # What is the latest version available today? |
pascal@24043 | 27 current_version() |
pascal@24043 | 28 { |
pascal@24043 | 29 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24043 | 30 sed "/$PACKAGE-/!d;/tar/!d;s|.tar.*||;s|.*-||;q" |
pascal@24043 | 31 } |
pascal@24043 | 32 |
pankso@8 | 33 # Rules to configure and make the package. |
pankso@8 | 34 compile_rules() |
pankso@8 | 35 { |
Hans-G?nter@25287 | 36 ./configure \ |
Hans-G?nter@25287 | 37 --prefix=/usr \ |
Hans-G?nter@25287 | 38 --mandir=/usr/share/man \ |
Hans-G?nter@25287 | 39 --disable-iconv \ |
Hans-G?nter@25287 | 40 --disable-iconv-open \ |
Hans-G?nter@25287 | 41 --disable-openssl \ |
pascal@2972 | 42 $CONFIGURE_ARGS |
pascal@2972 | 43 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \ |
pascal@2972 | 44 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h |
Hans-G?nter@25287 | 45 sed -i 's/-liconv//' Makefile |
pascal@1581 | 46 make && |
Hans-G?nter@25287 | 47 make install DESTDIR=$DESTDIR |
pankso@8 | 48 } |
pankso@8 | 49 |
pankso@8 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 51 genpkg_rules() |
pankso@8 | 52 { |
Hans-G?nter@25287 | 53 cook_copy_folders bin |
Hans-G?nter@25287 | 54 |
Hans-G?nter@25287 | 55 # Configuration file is /etc/rsyncd.conf. |
Hans-G?nter@25287 | 56 # User and password in /etc/rsyncd.secrets, syntax : user:passwd |
pankso@8 | 57 # |
Hans-G?nter@25287 | 58 cp -a $stuff/etc $fs |
Hans-G?nter@25287 | 59 cp -a $stuff/usr $fs |
Hans-G?nter@25287 | 60 chown root.root $fs/etc/init.d/* |
Hans-G?nter@25287 | 61 chmod 0644 $fs/etc/rsyncd.conf |
pascal@19769 | 62 } |
pascal@19769 | 63 |
pascal@19769 | 64 post_install() |
pascal@19769 | 65 { |
pascal@19767 | 66 [ -s "$1/etc/inetd.conf" ] && |
pascal@19767 | 67 ! grep -qs rsync "$1/etc/inetd.conf" && |
pascal@19767 | 68 cat >> "$1/etc/inetd.conf" <<EOT |
pascal@17046 | 69 #rsync stream tcp nowait root rsync rsync -daemon |
pascal@17046 | 70 EOT |
pascal@19768 | 71 true |
pascal@17046 | 72 } |
erjo@1074 | 73 |
pascal@17046 | 74 post_remove() |
pascal@17046 | 75 { |
Hans-G?nter@25287 | 76 grep -q rsync "$1/etc/inetd.conf" && |
Hans-G?nter@25287 | 77 sed -i '/rsync/d' "$1/etc/inetd.conf" |
pankso@8 | 78 } |