wok annotate urbackup-server/receipt @ rev 22018

updated xcircuit (3.7.32 -> 3.10.12)
author Hans-G?nter Theisgen
date Sat Oct 19 17:56:32 2019 +0100 (2019-10-19)
parents 970c5ec9a60a
children 4ffed9fa96a7
rev   line source
pascal@19952 1 # SliTaz package receipt.
pascal@19952 2
pascal@19952 3 PACKAGE="urbackup-server"
pascal@21882 4 VERSION="2.3.8"
pascal@19952 5 CATEGORY="network"
pascal@19952 6 SHORT_DESC="An easy to setup Open Source client/server backup system."
pascal@19952 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19952 8 LICENSE="GPL3"
pascal@19952 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@19952 10 WEB_SITE="https://www.urbackup.org/"
pascal@19952 11 WGET_URL="https://hndl.urbackup.org/Server/$VERSION/$TARBALL"
pascal@19952 12 TAGS="backup"
pascal@19952 13
pascal@19952 14 DEPENDS="libcurl cryptopp"
pascal@19952 15 BUILD_DEPENDS="curl-dev cryptopp"
pascal@19952 16
pascal@19952 17 # Rules to configure and make the package.
pascal@19952 18 compile_rules()
pascal@19952 19 {
pascal@19954 20 sed -i 's/chown/echo &/;s/adduser/echo &/g' Makefile*
pascal@19952 21 ./configure --prefix=/usr \
pascal@19952 22 --localstatedir=/var \
pascal@19952 23 $CONFIGURE_ARGS &&
pascal@19952 24 make &&
pascal@19952 25 make DESTDIR=$DESTDIR install
pascal@19952 26 }
pascal@19952 27
pascal@19952 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19952 29 genpkg_rules()
pascal@19952 30 {
pascal@19952 31 cp -a $install/* $fs
pascal@19952 32 mkdir -p $install/usr/share/man
pascal@19952 33 cp $src/docs/* $install/usr/share/man
pascal@19952 34 }
pascal@19953 35
pascal@19953 36 # Pre and post install commands for Tazpkg.
pascal@19953 37 post_install()
pascal@19953 38 {
pascal@19953 39
pascal@19953 40 local user
pascal@19953 41 local group
pascal@19953 42
pascal@19953 43 user=urbackup
pascal@19953 44 group=urbackup
pascal@19953 45
pascal@19953 46 if ! grep -q $user "$1/etc/passwd"; then
pascal@20319 47 echo
pascal@19953 48 echo -n "Adding user/group $user..."
pascal@19953 49 chroot "$1/" addgroup -S $group
pascal@19954 50 chroot "$1/" adduser -s /bin/false -S -D -h /var/urbackup -G $group $user
pascal@19953 51 status
pascal@19953 52 fi
pascal@19953 53 chroot "$1/" chown urbackup:urbackup /usr/share/urbackup /usr/share/urbackup/urbackup_ecdsa409k1.pub
pascal@19953 54 chroot "$1/" chown -R urbackup:urbackup /usr/share/urbackup/www
pascal@19953 55 chroot "$1/" chmod +s /usr/bin/urbackup_snapshot_helper /usr/bin/urbackup_mount_helper
pascal@19953 56 }
pascal@19953 57
pascal@19953 58 post_remove()
pascal@19953 59 {
pascal@19953 60 echo "Removing user/group urbackup"
pascal@19953 61 chroot "$1/" deluser urbackup
pascal@19953 62 }