Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/viewvc/
Date: Sun, 04 Jun 2017 11:33:49
Message-Id: 1496576020.bbb634585b0c2ff3658e8a46d2d2ab0f6546db3a.whissi@gentoo
1 commit: bbb634585b0c2ff3658e8a46d2d2ab0f6546db3a
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 4 11:33:23 2017 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 4 11:33:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbb63458
7
8 www-apps/viewvc: Security bump to v1.1.26 (bug #608738)
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 www-apps/viewvc/Manifest | 1 +
13 www-apps/viewvc/viewvc-1.1.26.ebuild | 111 +++++++++++++++++++++++++++++++++++
14 2 files changed, 112 insertions(+)
15
16 diff --git a/www-apps/viewvc/Manifest b/www-apps/viewvc/Manifest
17 index e5da4a72ef5..a58658d633f 100644
18 --- a/www-apps/viewvc/Manifest
19 +++ b/www-apps/viewvc/Manifest
20 @@ -1 +1,2 @@
21 DIST viewvc-1.1.20.tar.gz 616561 SHA256 ecd9b77ddcdc33594edce34751b0feae64338580c177804e2a8395874cb31ff2 SHA512 1c0129be983e6832f12cf4850ee6fe03c6a4f694d9e7643f0efe65bd3e8c7d820fdaf3bb16fd3bb3628ea133b58b1e03196f2eb439cfb6ab4727d6178516d8d1 WHIRLPOOL 5746826abcdc061b7c7fc2de49bb3034c54b8fd889038334a2b55ae5523796710b7e1f83bdddfe1127f3d795d12275939dd43c38ceb29110cf6d3a4ab1a11cd4
22 +DIST viewvc-1.1.26.tar.gz 616103 SHA256 9d718237df7fc04d511302812c0bec0363cf6b8334ab796953a764c2de426e43 SHA512 af70d4344fe92f942debb407b6fad909e250ba2656499f5229e1c2f018dfbd783d0cebd28c49a429bd7b155bb6db02cead602384f91b99b7ced6aa365e32bb8e WHIRLPOOL d8d6348d9d4c48176ff71af6aec74c4d3d73a58217b7b6b23f27d47503548df66cb0121b7d17d89c2a9a0524280b22960fcbf3a7b11a35c8411626f8759c2d50
23
24 diff --git a/www-apps/viewvc/viewvc-1.1.26.ebuild b/www-apps/viewvc/viewvc-1.1.26.ebuild
25 new file mode 100644
26 index 00000000000..2c5d23c4ed5
27 --- /dev/null
28 +++ b/www-apps/viewvc/viewvc-1.1.26.ebuild
29 @@ -0,0 +1,111 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +PYTHON_COMPAT=( python2_7 )
35 +
36 +inherit eutils python-single-r1 webapp
37 +
38 +WEBAPP_MANUAL_SLOT="yes"
39 +
40 +DESCRIPTION="ViewVC, a web interface to CVS and Subversion"
41 +HOMEPAGE="http://viewvc.org/"
42 +SRC_URI="http://viewvc.org/downloads/${P}.tar.gz"
43 +
44 +LICENSE="BSD-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc ~x86"
47 +IUSE="cvs cvsgraph mod_wsgi mysql pygments +subversion"
48 +
49 +DEPEND=""
50 +RDEPEND="${PYTHON_DEPS}
51 + cvs? ( dev-vcs/rcs )
52 + subversion? ( >=dev-vcs/subversion-1.3.1[python,${PYTHON_USEDEP}] )
53 +
54 + mod_wsgi? ( www-apache/mod_wsgi[${PYTHON_USEDEP}] )
55 + !mod_wsgi? ( virtual/httpd-cgi )
56 +
57 + cvsgraph? ( >=dev-vcs/cvsgraph-1.5.0 )
58 + mysql? ( >=dev-python/mysql-python-0.9.0[${PYTHON_USEDEP}] )
59 + pygments? (
60 + dev-python/pygments[${PYTHON_USEDEP}]
61 + app-misc/mime-types
62 + )
63 +"
64 +
65 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
66 + || ( cvs subversion )"
67 +
68 +pkg_setup() {
69 + python-single-r1_pkg_setup
70 + webapp_pkg_setup
71 +}
72 +
73 +src_prepare() {
74 + eapply_user
75 +
76 + find bin/ -type f -print0 | xargs -0 sed -i \
77 + -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"$(python_get_sitedir)/${PN}\"|g" \
78 + -e "s|\(^CONF_PATHNAME\)\(.*\$\)|\1 = \"../conf/viewvc.conf\"|g" || die
79 +
80 + sed -i -e "s|\(self\.options\.template_dir\)\(.*\$\)|\1 = \"${MY_APPDIR}/templates\"|" \
81 + lib/config.py || die
82 +
83 + sed -i -e "s|^template_dir.*|#&|" conf/viewvc.conf.dist || die
84 + sed -i -e "s|^#mime_types_files =.*|mime_types_files = /etc/mime.types|" conf/viewvc.conf.dist || die
85 + mv conf/viewvc.conf{.dist,} || die
86 + mv conf/cvsgraph.conf{.dist,} || die
87 +
88 + python_fix_shebang .
89 +}
90 +
91 +src_install() {
92 + webapp_src_preinst
93 +
94 + newbin bin/standalone.py viewvc-standalone-server
95 +
96 + dodoc CHANGES COMMITTERS INSTALL README
97 +
98 + python_moduleinto viewvc
99 + python_domodule lib/.
100 +
101 + insinto "${MY_APPDIR}"
102 + doins -r templates/ || die "doins failed"
103 + doins -r templates-contrib/
104 +
105 + if use mysql; then
106 + exeinto "${MY_HOSTROOTDIR}/bin"
107 + doexe bin/{*dbadmin,make-database,loginfo-handler}
108 + fi
109 +
110 + insinto "${MY_HOSTROOTDIR}/conf"
111 + doins conf/{viewvc,cvsgraph}.conf
112 +
113 + exeinto "${MY_CGIBINDIR}"
114 + doexe bin/cgi/viewvc.cgi
115 + if use mysql; then
116 + doexe bin/cgi/query.cgi
117 + fi
118 +
119 + exeinto "${MY_CGIBINDIR}"
120 + if use mod_wsgi; then
121 + doexe bin/wsgi/viewvc.wsgi
122 + if use mysql; then
123 + doexe bin/wsgi/query.wsgi
124 + fi
125 + else
126 + doexe bin/wsgi/viewvc.fcgi
127 + if use mysql; then
128 + doexe bin/wsgi/query.fcgi
129 + fi
130 + fi
131 +
132 + webapp_configfile "${MY_HOSTROOTDIR}/conf/"{viewvc,cvsgraph}.conf
133 +
134 + webapp_src_install
135 +}
136 +
137 +pkg_postinst() {
138 + webapp_pkg_postinst
139 + elog "Now read INSTALL in /usr/share/doc/${PF} to configure ${PN}"
140 +}