1 |
commit: 21642531418df4bbf19c2bbb1460b474b9053339 |
2 |
Author: Dennis Eisele <kernlpanic <AT> dennis-eisele <DOT> de> |
3 |
AuthorDate: Sat Apr 2 22:17:10 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 05:13:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21642531 |
7 |
|
8 |
app-backup/backuppc: bump to version 4.4.0 and take over package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/613538 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Dennis Eisele <kernlpanic <AT> dennis-eisele.de> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/24363 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
app-backup/backuppc/Manifest | 1 + |
17 |
app-backup/backuppc/backuppc-4.4.0.ebuild | 187 ++++++++++++++++++++++++++++++ |
18 |
app-backup/backuppc/metadata.xml | 9 +- |
19 |
3 files changed, 196 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/app-backup/backuppc/Manifest b/app-backup/backuppc/Manifest |
22 |
index f08fa93f29ea..81a72c05dff6 100644 |
23 |
--- a/app-backup/backuppc/Manifest |
24 |
+++ b/app-backup/backuppc/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST BackupPC-3.3.1.tar.gz 556461 BLAKE2B 91477196506291fb542a266aca4182ad727758ccf8379c135dcd5147d42b5f1f58d094473430fee64f67e0fc75e077fdf92bfcdaf2313dd53480737666746160 SHA512 b6bb9de3103c5062098d80755055b7461ae9133a4a46a66b3d0af89d081086571694db1898e7d85880defa15b030bad522812116ae5361c0fbde90b877d139c6 |
27 |
+DIST BackupPC-4.4.0.tar.gz 657309 BLAKE2B db977b73b09e1b2a051e38ecc94567cb516e2b11eca79c23bb0c4eef508e78cbbc984aaee4c84dc4ecd0524d849195c14dfe395ff97f77b6c7cf8adff152d75e SHA512 0c88447ab000c4a452034d5d8a074cd56801c7b38b0886e686e446c73ecfd0a40f0aa08703f76d16c31b24aec85c10c4ed1815d0cb67be5a1d66e5caeb3de418 |
28 |
|
29 |
diff --git a/app-backup/backuppc/backuppc-4.4.0.ebuild b/app-backup/backuppc/backuppc-4.4.0.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..0f8ea69edd64 |
32 |
--- /dev/null |
33 |
+++ b/app-backup/backuppc/backuppc-4.4.0.ebuild |
34 |
@@ -0,0 +1,187 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+MY_P="BackupPC-${PV}" |
41 |
+ |
42 |
+inherit depend.apache systemd |
43 |
+ |
44 |
+DESCRIPTION="High-performance backups to a server's disk" |
45 |
+HOMEPAGE="http://backuppc.sourceforge.net/" |
46 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${MY_P}.tar.gz" |
47 |
+S="${WORKDIR}/${MY_P}" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="rss samba" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ acct-group/backuppc |
56 |
+ acct-user/backuppc |
57 |
+ app-admin/apache-tools |
58 |
+ app-admin/makepasswd |
59 |
+ dev-lang/perl |
60 |
+" |
61 |
+ |
62 |
+# The CGI modules are handled in ${RDEPEND}. |
63 |
+APACHE_MODULES="apache2_modules_alias," # RedirectMatch |
64 |
+APACHE_MODULES+="apache2_modules_authn_core," # AuthType |
65 |
+APACHE_MODULES+="apache2_modules_authz_core," # Require |
66 |
+APACHE_MODULES+="apache2_modules_authz_host," # Require host |
67 |
+APACHE_MODULES+="apache2_modules_authz_user" # Require valid-user |
68 |
+ |
69 |
+# Older versions of mod_perl think they're compatible with apache-2.4, |
70 |
+# so we require the new one explicitly. |
71 |
+RDEPEND=" |
72 |
+ ${DEPEND} |
73 |
+ app-arch/par2cmdline |
74 |
+ dev-perl/Archive-Zip |
75 |
+ dev-perl/CGI |
76 |
+ dev-perl/File-RsyncP |
77 |
+ dev-perl/libwww-perl |
78 |
+ dev-perl/BackupPC-XS |
79 |
+ net-misc/rsync-bpc |
80 |
+ virtual/mta |
81 |
+ virtual/perl-IO-Compress |
82 |
+ www-apache/mod_perl |
83 |
+ www-apache/mpm_itk |
84 |
+ || ( |
85 |
+ >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgi] |
86 |
+ >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgid] |
87 |
+ ) |
88 |
+ rss? ( dev-perl/XML-RSS ) |
89 |
+ samba? ( net-fs/samba )" |
90 |
+ |
91 |
+CGIDIR="/usr/lib/backuppc/htdocs" |
92 |
+CONFDIR="${EROOT}/etc/${EPREFIX}" |
93 |
+DATADIR="/var/lib/backuppc" |
94 |
+DOCDIR="/usr/share/doc/${PF}" |
95 |
+LOGDIR="/var/log/BackupPC" |
96 |
+need_apache2_4 |
97 |
+ |
98 |
+src_prepare() { |
99 |
+ default |
100 |
+ |
101 |
+ # Fix docs location using the marker that we've patched in. |
102 |
+ sed "s+__DOCDIR__+${DOCDIR}+" -i lib/BackupPC/CGI/View.pm || die |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ local myconf |
107 |
+ if use samba ; then |
108 |
+ myconf=( |
109 |
+ --bin-path smbclient=$(type -p smbclient) |
110 |
+ --bin-path nmblookup=$(type -p nmblookup) |
111 |
+ ) |
112 |
+ fi |
113 |
+ |
114 |
+ /usr/bin/env perl ./configure.pl \ |
115 |
+ --batch \ |
116 |
+ --bin-path perl=$(type -p perl) \ |
117 |
+ --bin-path tar=$(type -p tar) \ |
118 |
+ --bin-path rsync=$(type -p rsync) \ |
119 |
+ --bin-path ping=$(type -p ping) \ |
120 |
+ --bin-path df=$(type -p df) \ |
121 |
+ --bin-path ssh=$(type -p ssh) \ |
122 |
+ --bin-path sendmail=$(type -p sendmail) \ |
123 |
+ --bin-path hostname=$(type -p hostname) \ |
124 |
+ --bin-path gzip=$(type -p gzip) \ |
125 |
+ --bin-path bzip2=$(type -p bzip2) \ |
126 |
+ --config-dir "${CONFDIR}" \ |
127 |
+ --install-dir /usr \ |
128 |
+ --data-dir "${DATADIR}" \ |
129 |
+ --hostname 127.0.0.1 \ |
130 |
+ --uid-ignore \ |
131 |
+ --dest-dir "${D}" \ |
132 |
+ --html-dir "${CGIDIR}"/image \ |
133 |
+ --html-dir-url /image \ |
134 |
+ --cgi-dir "${CGIDIR}" \ |
135 |
+ --fhs \ |
136 |
+ ${myconf[@]} || die "failed the configure.pl script" |
137 |
+ |
138 |
+ ebegin "Installing documentation" |
139 |
+ |
140 |
+ pod2man \ |
141 |
+ -errors=none \ |
142 |
+ --section=8 \ |
143 |
+ --center="BackupPC manual" \ |
144 |
+ "${S}"/doc/BackupPC.pod backuppc.8 \ |
145 |
+ || die "failed to generate man page" |
146 |
+ |
147 |
+ doman backuppc.8 |
148 |
+ |
149 |
+ # Place the documentation in the correct location |
150 |
+ dodoc "${ED}/usr/share/doc/BackupPC/BackupPC.html" |
151 |
+ dodoc "${ED}/usr/share/doc/BackupPC/BackupPC.pod" |
152 |
+ rm -rf "${ED}/usr/share/doc" || die |
153 |
+ |
154 |
+ eend 0 |
155 |
+ |
156 |
+ # Setup directories |
157 |
+ dodir "${CONFDIR}/pc" |
158 |
+ |
159 |
+ keepdir "${CONFDIR}" |
160 |
+ keepdir "${CONFDIR}/pc" |
161 |
+ keepdir "${DATADIR}"/{trash,pool,pc,cpool} |
162 |
+ keepdir "${LOGDIR}" |
163 |
+ |
164 |
+ ebegin "Setting up init.d/conf.d/systemd scripts" |
165 |
+ newinitd "${S}"/systemd/init.d/gentoo-backuppc backuppc |
166 |
+ newconfd "${S}"/systemd/init.d/gentoo-backuppc.conf backuppc |
167 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
168 |
+ |
169 |
+ insinto "${APACHE_MODULES_CONFDIR}" |
170 |
+ doins "${FILESDIR}"/99_backuppc.conf |
171 |
+ |
172 |
+ # Make sure that the ownership is correct |
173 |
+ chown -R backuppc:backuppc "${D}${CONFDIR}" || die |
174 |
+ chown -R backuppc:backuppc "${D}${DATADIR}" || die |
175 |
+ chown -R backuppc:backuppc "${D}${LOGDIR}" || die |
176 |
+ |
177 |
+ eend 0 |
178 |
+} |
179 |
+ |
180 |
+pkg_postinst() { |
181 |
+ elog "Installation finished, you may now start using BackupPC." |
182 |
+ elog |
183 |
+ elog "- Read the documentation in ${EROOT}/usr/share/doc/${PF}/BackupPC.html" |
184 |
+ elog " Please pay special attention to the security section." |
185 |
+ elog |
186 |
+ elog "- You can launch backuppc by running:" |
187 |
+ elog |
188 |
+ elog " # /etc/init.d/backuppc start" |
189 |
+ elog |
190 |
+ elog "- To enable the GUI, first edit ${EROOT}/etc/conf.d/apache2 and add," |
191 |
+ elog |
192 |
+ elog " \"-D BACKUPPC -D PERL -D MPM_ITK\"" |
193 |
+ elog |
194 |
+ elog " to the APACHE2_OPTS line." |
195 |
+ elog |
196 |
+ elog " Then you must edit ${EROOT}/etc/apache2/modules.d/00_mpm_itk.conf" |
197 |
+ elog " and adjust the values of LimitUIDRange/LimitGIDRange to include" |
198 |
+ elog " the UID and GID of the backuppc user." |
199 |
+ elog |
200 |
+ elog " Finally, start apache:" |
201 |
+ elog |
202 |
+ elog " # /etc/init.d/apache2 start" |
203 |
+ elog |
204 |
+ elog " The web interface should now be running on," |
205 |
+ elog |
206 |
+ elog " http://127.0.0.1:8080/" |
207 |
+ elog |
208 |
+ |
209 |
+ # Generate a new password if there's no auth file |
210 |
+ if [[ ! -f "${CONFDIR}/users.htpasswd" ]]; then |
211 |
+ adminuser="backuppc" |
212 |
+ adminpass=$(makepasswd --chars=12) |
213 |
+ htpasswd -bc "${CONFDIR}/users.htpasswd" ${adminuser} ${adminpass} |
214 |
+ |
215 |
+ elog "" |
216 |
+ elog "- Created admin user ${adminuser} with password ${adminpass}" |
217 |
+ elog " To add new users, run: " |
218 |
+ elog "" |
219 |
+ elog " # htpasswd ${CONFDIR}/users.htpasswd newUser" |
220 |
+ fi |
221 |
+} |
222 |
|
223 |
diff --git a/app-backup/backuppc/metadata.xml b/app-backup/backuppc/metadata.xml |
224 |
index 63af74d14b21..4d83df8d74ca 100644 |
225 |
--- a/app-backup/backuppc/metadata.xml |
226 |
+++ b/app-backup/backuppc/metadata.xml |
227 |
@@ -1,7 +1,14 @@ |
228 |
<?xml version="1.0" encoding="UTF-8"?> |
229 |
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
230 |
<pkgmetadata> |
231 |
- <!-- maintainer-needed --> |
232 |
+ <maintainer type="person" proxied="yes"> |
233 |
+ <email>kernlpanic@×××××××××××××.de</email> |
234 |
+ <name>Dennis Eisele</name> |
235 |
+ </maintainer> |
236 |
+ <maintainer type="project" proxied="proxy"> |
237 |
+ <email>proxy-maint@g.o</email> |
238 |
+ <name>Proxy Maintainers</name> |
239 |
+ </maintainer> |
240 |
<upstream> |
241 |
<remote-id type="sourceforge">backuppc</remote-id> |
242 |
<remote-id type="github">backuppc/backuppc</remote-id> |