wok view urbackup-server/receipt @ rev 23848

inkscape: update build_depends
author Richard Dunbar <mojo@slitaz.org>
date Sun Jun 14 23:18:03 2020 -0400 (2020-06-14)
parents fffb92e609f9
children 922f061231c2
line source
1 # SliTaz package receipt.
3 PACKAGE="urbackup-server"
4 VERSION="2.4.12"
5 CATEGORY="network"
6 TAGS="backup"
7 SHORT_DESC="An easy to setup Open Source client-server backup system."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://www.urbackup.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://hndl.urbackup.org/Server/$VERSION/$TARBALL"
15 DEPENDS="cryptopp libcurl"
16 BUILD_DEPENDS="cryptopp curl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/chown/echo &/;s/adduser/echo &/g' Makefile*
23 ./configure \
24 --prefix=/usr \
25 --localstatedir=/var \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $install/usr/share/man
36 cp -a $install/* $fs
37 cp $src/docs/* $install/usr/share/man
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
44 local user
45 local group
47 user=urbackup
48 group=urbackup
50 if ! grep -q $user "$1/etc/passwd"
51 then
52 echo
53 echo -n "Adding user/group $user..."
54 chroot "$1/" addgroup -S $group
55 chroot "$1/" adduser -s /bin/false -S -D -h /var/urbackup -G $group $user
56 status
57 fi
58 chroot "$1/" chown urbackup:urbackup /usr/share/urbackup /usr/share/urbackup/urbackup_ecdsa409k1.pub
59 chroot "$1/" chown -R urbackup:urbackup /usr/share/urbackup/www
60 chroot "$1/" chmod +s /usr/bin/urbackup_snapshot_helper /usr/bin/urbackup_mount_helper
61 }
63 post_remove()
64 {
65 echo "Removing user/group urbackup"
66 chroot "$1/" deluser urbackup
67 }