1 |
commit: 7f044ef89b8f5c86d57fa0739807b4ece53aea5c |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 26 00:07:25 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 00:07:25 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f044ef8 |
7 |
|
8 |
app-backup/boxbackup: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846 |
11 |
|
12 |
app-backup/boxbackup/boxbackup-0.11.1-r1.ebuild | 76 +++++++++++++++++++++++++ |
13 |
app-backup/boxbackup/files/bbackupd.rc | 4 +- |
14 |
app-backup/boxbackup/files/bbstored.rc | 4 +- |
15 |
3 files changed, 80 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/app-backup/boxbackup/boxbackup-0.11.1-r1.ebuild b/app-backup/boxbackup/boxbackup-0.11.1-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 0000000..f3b4419 |
20 |
--- /dev/null |
21 |
+++ b/app-backup/boxbackup/boxbackup-0.11.1-r1.ebuild |
22 |
@@ -0,0 +1,76 @@ |
23 |
+# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Id$ |
26 |
+ |
27 |
+EAPI="5" |
28 |
+ |
29 |
+inherit eutils user |
30 |
+ |
31 |
+DESCRIPTION="A completely automatic on-line backup system" |
32 |
+HOMEPAGE="http://boxbackup.org/" |
33 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" |
34 |
+SRC_URI="http://boxbackup.org/svn/box/packages/${P/_/}.tgz" |
35 |
+LICENSE="BSD" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="amd64 x86 ~ppc-macos ~x86-macos" |
38 |
+IUSE="client-only libressl" |
39 |
+DEPEND="sys-libs/zlib |
40 |
+ sys-libs/db:= |
41 |
+ !libressl? ( dev-libs/openssl:0= ) |
42 |
+ libressl? ( dev-libs/libressl:0= ) |
43 |
+ >=dev-lang/perl-5.6" |
44 |
+RDEPEND="${DEPEND} |
45 |
+ virtual/mta" |
46 |
+ |
47 |
+S="${WORKDIR}/${P/_/}" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ epatch "${FILESDIR}"/${PN}-0.11_rc8-testbbackupd.patch |
51 |
+} |
52 |
+ |
53 |
+src_compile() { |
54 |
+ # bug #299411 |
55 |
+ emake -j1 || die |
56 |
+} |
57 |
+ |
58 |
+src_install() { |
59 |
+ emake -j1 DESTDIR="${D}" install || die "install failed" |
60 |
+ emake -j1 DESTDIR="${D}" install-backup-client || die "client install failed" |
61 |
+ use client-only || \ |
62 |
+ emake -j1 DESTDIR="${D}" install-backup-server || die "server install failed" |
63 |
+ |
64 |
+ dodoc *.txt |
65 |
+ newinitd "${FILESDIR}"/bbackupd.rc bbackupd |
66 |
+ use client-only || \ |
67 |
+ newinitd "${FILESDIR}"/bbstored.rc bbstored |
68 |
+ |
69 |
+ keepdir /etc/boxbackup |
70 |
+ |
71 |
+ # apparently new versions have the files in the right location, so this is redundant |
72 |
+ # move executables from /usr/bin to /usr/sbin, as configuration of |
73 |
+ # this is unfortunately not optimal |
74 |
+ #mv "${D%/}${EPREFIX}/usr/bin" "${D%/}${EPREFIX}/usr/sbin" || die "could not move files from bin to sbin" |
75 |
+} |
76 |
+ |
77 |
+pkg_preinst() { |
78 |
+ if ! use client-only; |
79 |
+ then |
80 |
+ enewgroup bbstored |
81 |
+ enewuser bbstored -1 -1 -1 bbstored |
82 |
+ fi |
83 |
+} |
84 |
+ |
85 |
+pkg_postinst() { |
86 |
+ while read line; do elog "${line}"; done <<EOF |
87 |
+After configuring the Box Backup client and/or server, you can start |
88 |
+the daemon using the init scripts /etc/init.d/bbackupd and |
89 |
+/etc/init.d/bbstored. |
90 |
+The configuration files can be found in /etc/boxbackup |
91 |
+ |
92 |
+More information about configuring the client can be found at |
93 |
+${HOMEPAGE}client.html, |
94 |
+and more information about configuring the server can be found at |
95 |
+${HOMEPAGE}server.html. |
96 |
+EOF |
97 |
+ echo |
98 |
+} |
99 |
|
100 |
diff --git a/app-backup/boxbackup/files/bbackupd.rc b/app-backup/boxbackup/files/bbackupd.rc |
101 |
index a1a9ae2..d182fbd 100644 |
102 |
--- a/app-backup/boxbackup/files/bbackupd.rc |
103 |
+++ b/app-backup/boxbackup/files/bbackupd.rc |
104 |
@@ -1,5 +1,5 @@ |
105 |
-#!/sbin/runscript |
106 |
-# Copyright 1999-2005 Gentoo Foundation |
107 |
+#!/sbin/openrc-run |
108 |
+# Copyright 1999-2016 Gentoo Foundation |
109 |
# Distributed under the terms of the GNU General Public License v2 |
110 |
# $Id$ |
111 |
|
112 |
|
113 |
diff --git a/app-backup/boxbackup/files/bbstored.rc b/app-backup/boxbackup/files/bbstored.rc |
114 |
index 8d54fdb..a06a10b 100644 |
115 |
--- a/app-backup/boxbackup/files/bbstored.rc |
116 |
+++ b/app-backup/boxbackup/files/bbstored.rc |
117 |
@@ -1,5 +1,5 @@ |
118 |
-#!/sbin/runscript |
119 |
-# Copyright 1999-2005 Gentoo Foundation |
120 |
+#!/sbin/openrc-run |
121 |
+# Copyright 1999-2016 Gentoo Foundation |
122 |
# Distributed under the terms of the GNU General Public License v2 |
123 |
# $Id$ |