1 |
commit: d8f17fdb5f98fc1329eaa0cc569e19e5d58c99e9 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 27 23:32:32 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 27 23:32:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8f17fdb |
7 |
|
8 |
app-backup/backuppc: remove 3.3.1-r4 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.4 |
11 |
|
12 |
app-backup/backuppc/backuppc-3.3.1-r4.ebuild | 196 --------------------------- |
13 |
1 file changed, 196 deletions(-) |
14 |
|
15 |
diff --git a/app-backup/backuppc/backuppc-3.3.1-r4.ebuild b/app-backup/backuppc/backuppc-3.3.1-r4.ebuild |
16 |
deleted file mode 100644 |
17 |
index 62d816fa2e8..00000000000 |
18 |
--- a/app-backup/backuppc/backuppc-3.3.1-r4.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,196 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=5 |
25 |
-inherit depend.apache eutils user systemd |
26 |
- |
27 |
-MY_P="BackupPC-${PV}" |
28 |
- |
29 |
-DESCRIPTION="High-performance backups to a server's disk" |
30 |
-HOMEPAGE="http://backuppc.sourceforge.net/" |
31 |
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
32 |
- |
33 |
-LICENSE="GPL-2" |
34 |
-KEYWORDS="amd64 x86" |
35 |
- |
36 |
-IUSE="rss samba" |
37 |
- |
38 |
-# The CGI modules are handled in $RDEPEND. |
39 |
-APACHE_MODULES="apache2_modules_alias," # RedirectMatch |
40 |
-APACHE_MODULES+="apache2_modules_authn_core," # AuthType |
41 |
-APACHE_MODULES+="apache2_modules_authz_core," # Require |
42 |
-APACHE_MODULES+="apache2_modules_authz_host," # Require host |
43 |
-APACHE_MODULES+="apache2_modules_authz_user" # Require valid-user |
44 |
- |
45 |
-DEPEND="dev-lang/perl |
46 |
- app-admin/apache-tools |
47 |
- app-admin/makepasswd" |
48 |
- |
49 |
-# Older versions of mod_perl think they're compatibile with apache-2.4, |
50 |
-# so we require the new one explicitly. |
51 |
-RDEPEND="${DEPEND} |
52 |
- virtual/perl-IO-Compress |
53 |
- dev-perl/Archive-Zip |
54 |
- dev-perl/CGI |
55 |
- dev-perl/libwww-perl |
56 |
- app-arch/tar |
57 |
- app-arch/par2cmdline |
58 |
- app-arch/gzip |
59 |
- app-arch/bzip2 |
60 |
- virtual/mta |
61 |
- >=www-apache/mod_perl-2.0.9 |
62 |
- www-apache/mpm_itk |
63 |
- || ( >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgi] |
64 |
- >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgid] |
65 |
- >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_fcgid] ) |
66 |
- net-misc/rsync |
67 |
- dev-perl/File-RsyncP |
68 |
- rss? ( dev-perl/XML-RSS ) |
69 |
- samba? ( net-fs/samba )" |
70 |
- |
71 |
-need_apache2_4 |
72 |
- |
73 |
-SLOT="0" |
74 |
- |
75 |
-S="${WORKDIR}/${MY_P}" |
76 |
- |
77 |
-CGIDIR="/usr/lib/backuppc/htdocs" |
78 |
-CONFDIR="/etc/BackupPC" |
79 |
-DATADIR="/var/lib/backuppc" |
80 |
-DOCDIR="/usr/share/doc/${PF}" |
81 |
-LOGDIR="/var/log/BackupPC" |
82 |
- |
83 |
-pkg_setup() { |
84 |
- enewgroup backuppc |
85 |
- enewuser backuppc -1 /bin/bash /var/lib/backuppc backuppc |
86 |
-} |
87 |
- |
88 |
-src_prepare() { |
89 |
- epatch "${FILESDIR}/3.3.0/01-fix-configure.pl.patch" |
90 |
- epatch "${FILESDIR}/3.3.0/02-fix-config.pl-formatting.patch" |
91 |
- epatch "${FILESDIR}/3.3.0/03-reasonable-config.pl-defaults.patch" |
92 |
- |
93 |
- epatch "${FILESDIR}/3.2.0/04-add-docdir-marker.patch" |
94 |
- epatch "${FILESDIR}/3.2.0/05-nicelevel.patch" |
95 |
- |
96 |
- epatch "${FILESDIR}"/${P}-perl522.patch #580254 |
97 |
- |
98 |
- # Fix docs location using the marker that we've patched in. |
99 |
- sed -i "s+__DOCDIR__+${DOCDIR}+" "lib/BackupPC/CGI/View.pm" \ |
100 |
- || die "failed to sed the documentation location" |
101 |
-} |
102 |
- |
103 |
-src_install() { |
104 |
- local myconf |
105 |
- myconf="" |
106 |
- if use samba ; then |
107 |
- myconf="--bin-path smbclient=$(type -p smbclient)" |
108 |
- myconf="${myconf} --bin-path nmblookup=$(type -p nmblookup)" |
109 |
- fi |
110 |
- |
111 |
- /usr/bin/env perl ./configure.pl \ |
112 |
- --batch \ |
113 |
- --bin-path perl=$(type -p perl) \ |
114 |
- --bin-path tar=$(type -p tar) \ |
115 |
- --bin-path rsync=$(type -p rsync) \ |
116 |
- --bin-path ping=$(type -p ping) \ |
117 |
- --bin-path df=$(type -p df) \ |
118 |
- --bin-path ssh=$(type -p ssh) \ |
119 |
- --bin-path sendmail=$(type -p sendmail) \ |
120 |
- --bin-path hostname=$(type -p hostname) \ |
121 |
- --bin-path gzip=$(type -p gzip) \ |
122 |
- --bin-path bzip2=$(type -p bzip2) \ |
123 |
- --config-dir "${CONFDIR}" \ |
124 |
- --install-dir /usr \ |
125 |
- --data-dir "${DATADIR}" \ |
126 |
- --hostname 127.0.0.1 \ |
127 |
- --uid-ignore \ |
128 |
- --dest-dir "${D%/}" \ |
129 |
- --html-dir "${CGIDIR}"/image \ |
130 |
- --html-dir-url /image \ |
131 |
- --cgi-dir "${CGIDIR}" \ |
132 |
- --fhs \ |
133 |
- ${myconf} || die "failed the configure.pl script" |
134 |
- |
135 |
- ebegin "Installing documentation" |
136 |
- |
137 |
- pod2man \ |
138 |
- -errors=none \ |
139 |
- --section=8 \ |
140 |
- --center="BackupPC manual" \ |
141 |
- "${S}"/doc/BackupPC.pod backuppc.8 \ |
142 |
- || die "failed to generate man page" |
143 |
- |
144 |
- doman backuppc.8 |
145 |
- |
146 |
- # Place the documentation in the correct location |
147 |
- dodoc "${D}/usr/doc/BackupPC.html" |
148 |
- dodoc "${D}/usr/doc/BackupPC.pod" |
149 |
- rm -rf "${D}/usr/doc" || die |
150 |
- |
151 |
- eend 0 |
152 |
- |
153 |
- # Setup directories |
154 |
- dodir "${CONFDIR}/pc" |
155 |
- |
156 |
- keepdir "${CONFDIR}" |
157 |
- keepdir "${CONFDIR}/pc" |
158 |
- keepdir "${DATADIR}"/{trash,pool,pc,cpool} |
159 |
- keepdir "${LOGDIR}" |
160 |
- |
161 |
- ebegin "Setting up init.d/conf.d/systemd scripts" |
162 |
- newinitd "${S}"/init.d/gentoo-backuppc backuppc |
163 |
- newconfd "${S}"/init.d/gentoo-backuppc.conf backuppc |
164 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
165 |
- |
166 |
- insinto "${APACHE_MODULES_CONFDIR}" |
167 |
- doins "${FILESDIR}"/99_backuppc.conf |
168 |
- |
169 |
- # Make sure that the ownership is correct |
170 |
- chown -R backuppc:backuppc "${D}${CONFDIR}" || die |
171 |
- chown -R backuppc:backuppc "${D}${DATADIR}" || die |
172 |
- chown -R backuppc:backuppc "${D}${LOGDIR}" || die |
173 |
-} |
174 |
- |
175 |
-pkg_postinst() { |
176 |
- elog "Installation finished, you may now start using BackupPC." |
177 |
- elog |
178 |
- elog "- Read the documentation in /usr/share/doc/${PF}/BackupPC.html" |
179 |
- elog " Please pay special attention to the security section." |
180 |
- elog |
181 |
- elog "- You can launch backuppc by running:" |
182 |
- elog |
183 |
- elog " # /etc/init.d/backuppc start" |
184 |
- elog |
185 |
- elog "- To enable the GUI, first edit ${ROOT}etc/conf.d/apache2 and add," |
186 |
- elog |
187 |
- elog " \"-D BACKUPPC -D PERL -D MPM_ITK\"" |
188 |
- elog |
189 |
- elog " to the APACHE2_OPTS line." |
190 |
- elog |
191 |
- elog " Then you must edit ${ROOT}etc/apache2/modules.d/00_mpm_itk.conf" |
192 |
- elog " and adjust the values of LimitUIDRange/LimitGIDRange to include" |
193 |
- elog " the UID and GID of the backuppc user." |
194 |
- elog |
195 |
- elog " Finally, start apache:" |
196 |
- elog |
197 |
- elog " # /etc/init.d/apache2 start" |
198 |
- elog |
199 |
- elog " The web interface should now be running on," |
200 |
- elog |
201 |
- elog " http://127.0.0.1:8080/" |
202 |
- elog |
203 |
- |
204 |
- # Generate a new password if there's no auth file |
205 |
- if [[ ! -f "${CONFDIR}/users.htpasswd" ]]; then |
206 |
- adminuser="backuppc" |
207 |
- adminpass=$( makepasswd --chars=12 ) |
208 |
- htpasswd -bc "${CONFDIR}/users.htpasswd" $adminuser $adminpass |
209 |
- |
210 |
- elog "" |
211 |
- elog "- Created admin user $adminuser with password $adminpass" |
212 |
- elog " To add new users, run: " |
213 |
- elog "" |
214 |
- elog " # htpasswd ${CONFDIR}/users.htpasswd newUser" |
215 |
- fi |
216 |
-} |