blob: 70e64e289479f6b346940b111bd21905503684d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
#
# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=boxbackup
PKG_VERSION:=0.11.1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.boxbackup.org/trac/export/2998/box/packages
PKG_MD5SUM:=c4c4786a918a9c026f80833614c40a6b
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/boxbackup/Default
SUBMENU:=backup
SECTION:=utils
CATEGORY:=Utilities
URL:=http://www.boxbackup.org/
MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
endef
define Package/boxbackup
$(call Package/boxbackup/Default)
TITLE:=Secure network backup
MENU:=1
endef
define Package/bbstored
$(call Package/boxbackup/Default)
TITLE:=Server for secure network backup
DEPENDS:=boxbackup +libopenssl +zlib +libdb47 +libopenssl +libstdcpp +libreadline +libncurses
endef
define Package/bbstored/description
Boxbackup is an open source, completely automatic, on-line backup system.
This package is for the server (where the backups are stored). The
server is known as bbstored.
endef
define Package/bbstored/conffiles
/etc/config/bbbstored
endef
define Package/bbstored-config-external
$(call Package/boxbackup/Default)
TITLE:=Configure network backup server
DEPENDS:=boxbackup +openssl-util +microperl
endef
define Package/boxbackup-certs
$(call Package/boxbackup/Default)
TITLE:=Manage network backup security certificates
DEPENDS:=boxbackup +openssl-util +microperl
endef
define Package/bbackupd
$(call Package/boxbackup/Default)
TITLE:=Client for secure network backup
DEPENDS:=boxbackup +libopenssl +zlib +libdb47 +libopenssl +libreadline +libstdcpp +libncurses +openssl-util +microperl
endef
define Package/bbackupd/description
Box Backup is an open source, completely automatic, on-line backup system.
This package is for the client (host to be backed up).
endef
TARGET_CFLAGS += $(FPIC) -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib
CONFIGURE_ARGS += \
--sysconfdir=/var/etc \
--enable-gnu-readline \
--with-bdb-headers=$(STAGING_DIR)/usr/include \
--with-bdb-lib=$(STAGING_DIR)/usr/lib \
--with-ssl-header=$(STAGING_DIR)/usr/include \
--with-ssl-lib=$(STAGING_DIR)/usr/lib \
--with-random=/dev/urandom \
--disable-static-bin
define Build/Install
mkdir -p $(PKG_INSTALL_DIR)
tar -C $(PKG_INSTALL_DIR) -xzf $(PKG_BUILD_DIR)/parcels/$(PKG_NAME)-$(PKG_VERSION)-backup-server-linux-gnu.tgz
tar -C $(PKG_INSTALL_DIR) -xzf $(PKG_BUILD_DIR)/parcels/$(PKG_NAME)-$(PKG_VERSION)-backup-client-linux-gnu.tgz
endef
BXBK_SRV_INSTALL_DIR = $(PKG_INSTALL_DIR)/$(PKG_NAME)-$(PKG_VERSION)-backup-server-linux-gnu
BXBK_CLIENT_INSTALL_DIR = $(PKG_INSTALL_DIR)/$(PKG_NAME)-$(PKG_VERSION)-backup-client-linux-gnu
define Package/boxbackup/install
true
endef
define Package/bbstored/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(BXBK_SRV_INSTALL_DIR)/bbstored $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/lib/boxbackup
$(INSTALL_BIN) $(BXBK_SRV_INSTALL_DIR)/bbstoreaccounts $(1)/usr/lib/boxbackup/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/bbstored.init $(1)/etc/init.d/bbstored
$(INSTALL_DIR) $(1)/lib/functions
$(INSTALL_DATA) ./files/bbstored.sh $(1)/lib/functions/
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/bbstored.config $(1)/etc/config/bbstored
$(INSTALL_BIN) ./files/bbstoreaccounts $(1)/usr/sbin/
endef
define Package/bbstored-config-external/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(BXBK_SRV_INSTALL_DIR)/bbstored-config $(1)/usr/sbin/
$(INSTALL_BIN) $(BXBK_SRV_INSTALL_DIR)/raidfile-config $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/bbstored
endef
define Package/boxbackup-certs/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(BXBK_SRV_INSTALL_DIR)/bbstored-certs $(1)/usr/sbin/
endef
define Package/bbackupd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(BXBK_CLIENT_INSTALL_DIR)/bbackupd $(1)/usr/sbin/
$(INSTALL_BIN) $(BXBK_CLIENT_INSTALL_DIR)/bbackupquery $(1)/usr/sbin/
$(INSTALL_BIN) $(BXBK_CLIENT_INSTALL_DIR)/bbackupctl $(1)/usr/sbin/
$(INSTALL_BIN) $(BXBK_CLIENT_INSTALL_DIR)/bbackupd-config $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,boxbackup))
$(eval $(call BuildPackage,bbstored))
$(eval $(call BuildPackage,boxbackup-certs))
$(eval $(call BuildPackage,bbstored-config-external))
$(eval $(call BuildPackage,bbackupd))
|