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