1 |
commit: a8d10a2503f7421292653168c45b75fe983f73a6 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 6 09:02:00 2017 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 6 09:17:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8d10a25 |
7 |
|
8 |
app-backup/burp: trigger tmpfiles update in pkg_postinst() |
9 |
|
10 |
Without this, at least some tmpfiles implementations will not create |
11 |
/run/burp until after a reboot. |
12 |
|
13 |
Gentoo-Bug: 620654 |
14 |
|
15 |
Package-Manager: Portage-2.3.5, Repoman-2.3.1 |
16 |
|
17 |
app-backup/burp/burp-2.0.54-r1.ebuild | 112 ++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 112 insertions(+) |
19 |
|
20 |
diff --git a/app-backup/burp/burp-2.0.54-r1.ebuild b/app-backup/burp/burp-2.0.54-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..a1a1eb7ff9a |
23 |
--- /dev/null |
24 |
+++ b/app-backup/burp/burp-2.0.54-r1.ebuild |
25 |
@@ -0,0 +1,112 @@ |
26 |
+# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=6 |
30 |
+ |
31 |
+inherit autotools systemd tmpfiles user versionator |
32 |
+ |
33 |
+DESCRIPTION="Network backup and restore client and server for Unix and Windows" |
34 |
+HOMEPAGE="http://burp.grke.org/" |
35 |
+SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="AGPL-3" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="acl ipv6 libressl test xattr" |
41 |
+ |
42 |
+CDEPEND="dev-libs/uthash |
43 |
+ net-libs/librsync |
44 |
+ sys-libs/ncurses:0= |
45 |
+ sys-libs/zlib |
46 |
+ !libressl? ( dev-libs/openssl:0= ) |
47 |
+ libressl? ( dev-libs/libressl:0= ) |
48 |
+ acl? ( sys-apps/acl ) |
49 |
+ xattr? ( sys-apps/attr )" |
50 |
+DEPEND="${CDEPEND} |
51 |
+ test? ( dev-libs/check )" |
52 |
+RDEPEND="${CDEPEND} |
53 |
+ virtual/logger" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch |
57 |
+ "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch |
58 |
+ "${FILESDIR}"/${PN}-2.0.54-server_user.patch |
59 |
+) |
60 |
+ |
61 |
+pkg_setup() { |
62 |
+ enewgroup "${PN}" |
63 |
+ enewuser "${PN}" -1 "" "" "${PN}" |
64 |
+} |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ eautoreconf |
70 |
+} |
71 |
+ |
72 |
+src_configure() { |
73 |
+ local myeconfargs=( |
74 |
+ --localstatedir=/var |
75 |
+ --sysconfdir=/etc/burp |
76 |
+ --enable-largefile |
77 |
+ $(use_enable acl) |
78 |
+ $(use_enable ipv6) |
79 |
+ $(use_enable xattr) |
80 |
+ ) |
81 |
+ # --runstatedir option will only work from autoconf-2.70 onwards |
82 |
+ runstatedir='/run/burp' \ |
83 |
+ econf "${myeconfargs[@]}" |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ default |
88 |
+ fowners -R root:${PN} /var/spool/burp |
89 |
+ fperms 0770 /var/spool/burp |
90 |
+ |
91 |
+ emake DESTDIR="${D}" install-configs |
92 |
+ fowners -R root:${PN} /etc/burp |
93 |
+ fperms 0775 /etc/burp |
94 |
+ fperms 0640 /etc/burp/burp-server.conf |
95 |
+ fperms 0750 /etc/burp/clientconfdir |
96 |
+ |
97 |
+ newinitd "${FILESDIR}"/${PN}2.initd ${PN} |
98 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
99 |
+ |
100 |
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ tmpfiles_process ${PN}.conf |
105 |
+ |
106 |
+ elog "Burp ebuilds now support the autoupgrade mechanism in both" |
107 |
+ elog "client and server mode. In both cases it is disabled by" |
108 |
+ elog "default. You almost certainly do NOT want to enable it in" |
109 |
+ elog "client mode because upgrades obtained this way will not be" |
110 |
+ elog "managed by Portage." |
111 |
+ |
112 |
+ if [[ ! -e /etc/burp/CA/index.txt ]]; then |
113 |
+ elog "" |
114 |
+ elog "At first run burp server will generate DH parameters and SSL" |
115 |
+ elog "certificates. You should adjust configuration before." |
116 |
+ elog "Server configuration is located at" |
117 |
+ elog "" |
118 |
+ elog " /etc/burp/burp-server.conf" |
119 |
+ elog "" |
120 |
+ fi |
121 |
+ |
122 |
+ # According to PMS this can be a space-separated list of version |
123 |
+ # numbers, even though in practice it is typically just one. |
124 |
+ local oldver |
125 |
+ for oldver in ${REPLACING_VERSIONS}; do |
126 |
+ if [[ $(get_major_version ${oldver}) -lt 2 ]]; then |
127 |
+ ewarn "Starting with version 2.0.54 we no longer patch bedup to use" |
128 |
+ ewarn "the server config file by default. If you use bedup, please" |
129 |
+ ewarn "update your scripts to invoke it as" |
130 |
+ ewarn "" |
131 |
+ ewarn " bedup -c /etc/burp/burp-server.conf" |
132 |
+ ewarn "" |
133 |
+ ewarn "Otherwise deduplication will not work!" |
134 |
+ break |
135 |
+ fi |
136 |
+ done |
137 |
+} |