wok-current annotate rsync/receipt @ rev 24047
Up ipxe (1.21.1), rsync (3.2.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 10 19:33:04 2021 +0000 (2021-05-10) |
parents | d44f69067aca |
children | 9ea6d3207601 |
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@24047 | 17 DEPENDS="popt attr acl xxhash" |
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@2972 | 37 $CONFIGURE_ARGS |
pascal@2972 | 38 sed -i -e 's/HAVE_ICONV_H ./HAVE_ICONV_H 0/' \ |
pascal@2972 | 39 -e 's/HAVE_ICONV_OPEN ./HAVE_ICONV_OPEN 0/' config.h |
pascal@2972 | 40 sed -i 's/-liconv//' Makefile |
pascal@1581 | 41 make && |
pascal@14374 | 42 make DESTDIR=$DESTDIR install |
pankso@8 | 43 } |
pankso@8 | 44 |
pankso@8 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 46 genpkg_rules() |
pankso@8 | 47 { |
pankso@8 | 48 mkdir -p $fs/usr |
pascal@14374 | 49 cp -a $install/usr/bin $fs/usr |
pankso@8 | 50 # Config file is /etc/rsyncd.conf. |
pankso@8 | 51 # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd |
pankso@8 | 52 # |
pankso@15988 | 53 cp -a $stuff/etc $fs |
pascal@18324 | 54 cp -a $stuff/usr $fs |
erjo@1074 | 55 chown root.root $fs/etc/init.d/* |
pankso@8 | 56 chmod 0644 $fs/etc/rsyncd.conf |
pascal@19769 | 57 } |
pascal@19769 | 58 |
pascal@19769 | 59 post_install() |
pascal@19769 | 60 { |
pascal@19767 | 61 [ -s "$1/etc/inetd.conf" ] && |
pascal@19767 | 62 ! grep -qs rsync "$1/etc/inetd.conf" && |
pascal@19767 | 63 cat >> "$1/etc/inetd.conf" <<EOT |
pascal@17046 | 64 #rsync stream tcp nowait root rsync rsync -daemon |
pascal@17046 | 65 EOT |
pascal@19768 | 66 true |
pascal@17046 | 67 } |
erjo@1074 | 68 |
pascal@17046 | 69 post_remove() |
pascal@17046 | 70 { |
pascal@18730 | 71 grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf" |
pankso@8 | 72 } |