wok-current view urbackup-server/receipt @ rev 20066
busybox: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 23 14:24:16 2017 +0200 (2017-09-23) |
parents | 781e09fb8b54 |
children | 970c5ec9a60a |
line source
1 # SliTaz package receipt.
3 PACKAGE="urbackup-server"
4 VERSION="2.1.19"
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 -n "Adding user/group $user..."
48 chroot "$1/" addgroup -S $group
49 chroot "$1/" adduser -s /bin/false -S -D -h /var/urbackup -G $group $user
50 status
51 fi
52 chroot "$1/" chown urbackup:urbackup /usr/share/urbackup /usr/share/urbackup/urbackup_ecdsa409k1.pub
53 chroot "$1/" chown -R urbackup:urbackup /usr/share/urbackup/www
54 chroot "$1/" chmod +s /usr/bin/urbackup_snapshot_helper /usr/bin/urbackup_mount_helper
55 }
57 post_remove()
58 {
59 echo "Removing user/group urbackup"
60 chroot "$1/" deluser urbackup
61 }