1 |
commit: 38a67164d4b8bc37452130c45ed1a73e8188b632 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 5 06:24:18 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 5 06:24:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38a67164 |
7 |
|
8 |
sys-apps/man-db: Security cleanup (bug #602588). |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
sys-apps/man-db/man-db-2.7.6.1-r1.ebuild | 94 -------------------------------- |
13 |
1 file changed, 94 deletions(-) |
14 |
|
15 |
diff --git a/sys-apps/man-db/man-db-2.7.6.1-r1.ebuild b/sys-apps/man-db/man-db-2.7.6.1-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 5ff7d97b731..00000000000 |
18 |
--- a/sys-apps/man-db/man-db-2.7.6.1-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,94 +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 |
- |
26 |
-inherit eutils user versionator |
27 |
- |
28 |
-DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" |
29 |
-HOMEPAGE="http://www.nongnu.org/man-db/" |
30 |
-SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz" |
31 |
- |
32 |
-LICENSE="GPL-3" |
33 |
-SLOT="0" |
34 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux" |
35 |
-IUSE="berkdb +gdbm +manpager nls selinux static-libs zlib" |
36 |
- |
37 |
-CDEPEND=">=dev-libs/libpipeline-1.4.0 |
38 |
- berkdb? ( sys-libs/db:= ) |
39 |
- gdbm? ( sys-libs/gdbm ) |
40 |
- !berkdb? ( !gdbm? ( sys-libs/gdbm ) ) |
41 |
- sys-apps/groff |
42 |
- zlib? ( sys-libs/zlib ) |
43 |
- !sys-apps/man" |
44 |
-DEPEND="${CDEPEND} |
45 |
- app-arch/xz-utils |
46 |
- virtual/pkgconfig |
47 |
- nls? ( |
48 |
- >=app-text/po4a-0.45 |
49 |
- sys-devel/gettext |
50 |
- )" |
51 |
-RDEPEND="${CDEPEND} |
52 |
- selinux? ( sec-policy/selinux-mandb ) |
53 |
-" |
54 |
-PDEPEND="manpager? ( app-text/manpager )" |
55 |
- |
56 |
-pkg_setup() { |
57 |
- # Create user now as Makefile in src_install does setuid/chown |
58 |
- enewgroup man 15 |
59 |
- enewuser man 13 -1 /usr/share/man man |
60 |
- |
61 |
- if (use gdbm && use berkdb) || (use !gdbm && use !berkdb) ; then #496150 |
62 |
- ewarn "Defaulting to USE=gdbm due to ambiguous berkdb/gdbm USE flag settings" |
63 |
- fi |
64 |
-} |
65 |
- |
66 |
-src_configure() { |
67 |
- export ac_cv_lib_z_gzopen=$(usex zlib) |
68 |
- econf \ |
69 |
- --docdir='$(datarootdir)'/doc/${PF} \ |
70 |
- --with-systemdtmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \ |
71 |
- --enable-setuid \ |
72 |
- --enable-cache-owner=man \ |
73 |
- --with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \ |
74 |
- $(use_enable nls) \ |
75 |
- $(use_enable static-libs static) \ |
76 |
- --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm)) |
77 |
- |
78 |
- # Disable color output from groff so that the manpager can add it. #184604 |
79 |
- sed -i \ |
80 |
- -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ |
81 |
- src/man_db.conf || die |
82 |
-} |
83 |
- |
84 |
-src_install() { |
85 |
- default |
86 |
- dodoc docs/{HACKING,TODO} |
87 |
- prune_libtool_files |
88 |
- |
89 |
- exeinto /etc/cron.daily |
90 |
- newexe "${FILESDIR}"/man-db.cron man-db #289884 |
91 |
-} |
92 |
- |
93 |
-pkg_preinst() { |
94 |
- local cachedir="${EROOT}var/cache/man" |
95 |
- if [[ -f ${cachedir}/whatis ]] ; then |
96 |
- einfo "Cleaning ${cachedir} from sys-apps/man" |
97 |
- find "${cachedir}" -type f '!' '(' -name index.bt -o -name index.db ')' -delete |
98 |
- fi |
99 |
- if [[ -g ${cachedir} ]] ; then |
100 |
- einfo "Resetting permissions on ${cachedir}" |
101 |
- chown -R man:man "${cachedir}" || die |
102 |
- find "${cachedir}" -type d -exec chmod g-s {} + || die |
103 |
- elif [[ ! -d ${cachedir} ]] ; then |
104 |
- mkdir -p "${cachedir}" || die |
105 |
- chown man:man "${cachedir}" || die |
106 |
- fi |
107 |
-} |
108 |
- |
109 |
-pkg_postinst() { |
110 |
- if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then |
111 |
- einfo "Rebuilding man-db from scratch with new database format!" |
112 |
- mandb --quiet --create |
113 |
- fi |
114 |
-} |