wok-6.x view boxbackup-client/receipt @ rev 6883

Added -j4 back into libwebkit.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Oct 21 00:34:19 2010 +0000 (2010-10-21)
parents 6a8d059b5768
children da1d7c470a31
line source
1 # SliTaz package receipt.
3 PACKAGE="boxbackup-client"
4 VERSION="0.11rc8"
5 CATEGORY="network"
6 SHORT_DESC="Client for the BoxBackup on-line backup system"
7 MAINTAINER="domcox@users.sourceforge.net"
8 DEPENDS="db libedit openssl perl zlib gcc-lib-base"
9 SOURCE="boxbackup"
10 WANTED="boxbackup-server"
11 WEB_SITE="http://www.boxbackup.org/"
12 TAGS="backup automatic client"
14 # Configuration variables
15 CONF_DIR="/etc/box"
16 DATA_DIR="/var/lib/bbackupd"
17 RUN_DMON=0
19 # Rules to gen a SliTaz package suitable for Tazpkg
20 genpkg_rules()
21 {
22 _pkg=$WOK/$WANTED/${SOURCE}-$VERSION/parcels/boxbackup-${VERSION}-backup-client-linux-gnu
23 mkdir -p $fs/usr/bin
24 cp -a $_pkg/bb* $fs/usr/bin
25 mkdir -p $fs/etc/init.d
26 cp -a stuff/bbackupd $fs/etc/init.d
27 }
29 # Pre and post install commands for Tazpkg
31 pre_install()
32 {
33 # Stop daemon
34 if [ -e /var/run/bbackupd.pid ]; then
35 /etc/init.d/bbackupd stop
36 RUN_DMON=1
37 fi
38 }
40 post_install()
41 {
42 # Creating conf dir
43 if [ ! -e $CONF_DIR ]; then
44 mkdir -p $CONF_DIR && chmod 755 $CONF_DIR
45 fi
46 if [ ! -e $DATA_DIR ]; then
47 mkdir -p $DATA_DIR && chmod 700 $DATA_DIR
48 fi
49 # Start daemon (if stopped by install)
50 if [ $RUN_DMON -eq 1 ]; then
51 /etc/init.d/bbackupd start
52 fi
53 }
55 # Pre and post remove commands for Tazpkg
57 pre_remove()
58 {
59 # Stop daemon
60 if [ -e /var/run/bbackupd.pid ]; then
61 /etc/init.d/bbackupd stop
62 fi
63 }
65 post_remove()
66 {
67 # Delete DATA directory
68 rm -rf $DATA_DIR
70 # Delete Client config files
71 rm -rf $CONF_DIR/bbackupd*
73 # Delete CONF dir (if empty)
74 if [ `ls -lA $CONF_DIR | wc -l` -eq 0 ]; then
75 echo -n "Removing $CONF_DIR..."
76 rm -rf $CONF_DIR
77 status
78 fi
79 # Delete PID, sock files
80 rm -f /var/run/bbackupd.*
81 }