sys-apps/man-db: Version bump.
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 18 Aug 2015 05:40:34 +0000 (07:40 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 18 Aug 2015 05:41:14 +0000 (07:41 +0200)
Package-Manager: portage-2.2.20.1
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/man-db/Manifest
sys-apps/man-db/man-db-2.7.2.ebuild [new file with mode: 0644]

index 65d14004dacb3ba9bbc3ff77c18352b2c723820a..3dc49d5062e48004ea82b444145bb80b9a826248 100644 (file)
@@ -1,3 +1,4 @@
 DIST man-db-2.6.6.tar.xz 1448576 SHA256 7da90f8d8df91e0e682769d50f4bdb905f525b5d0f01e7e5b8cc3c6da45f66c3 SHA512 7abb8609e1113dd1852076c4c71557c3b376fefa7e42fa39198f7b882f4b3fe733983045742c4b3903be2c953c09c724f735619b4396283a4ed2ad7816aaf4ec WHIRLPOOL e5c7b41afd7374bb1df3024134f9bd8a1af42b5ad63d4e516e946b0e8ccc88bafc055fdba707b0c764030e92748b225a72672bfe07e2bc3e8d78526d17f5ff72
 DIST man-db-2.6.7.1.tar.xz 1452280 SHA256 8d65559838fccca774e3ef7c15c073180c786e728785c735e136297facca41fc SHA512 91e1036701174c5623a4cf4208a93130822dc9c61ffd9c6bf0dddaf7c4c5b2401e6238f60578dfa81a11d67d360cbc4d45af920542fb4a0624c7169b17a618f8 WHIRLPOOL 30c510289d1444b3231704c22ddf2c17b58d4aa8b9e8a94552537fbc971b23f16b2c43a32fa9f85fb7b8eca2fd71a73d52955fcd0ab24ef49d3903832eafecf7
 DIST man-db-2.7.1.tar.xz 1498272 SHA256 c4876204a3fafb4d8ccc1d172c0431ee581d95558cbd6c4e79caca7717049e0e SHA512 246d833bd456a6dd178035b4be37dc810872b6480145d6c2c605deeb664d105b285f61827b739717d6936de28c4275a99ed8fae2d173b16c1c0673b1171a65ce WHIRLPOOL 10c56b861411674f4ca92bafe7c0faf4f6c2cbcc6b2db8f87f2e2ee59152797667619e60ae50cae33ee21ff3e58cb7b10627ce2f16adf65fd8794b0fabb71290
+DIST man-db-2.7.2.tar.xz 1501264 SHA256 22674eaf51dce8bcc83fd86b1c8d11f99de5c6d8962d7fad7b02307c4ad6e492 SHA512 fd0659f002980ba902bcd1186de09f82d840b039cbeea3457377926991ce5aaa602fe228c0969ea643140a4d5e7bdfbdab7c747943ac93b51c17a591677a7b84 WHIRLPOOL 51ad5e4580b5ff9ede9a0c2e17d579ed2a14c5ef1b11a43b92f99e5467db3e1627eed58c76040710e6fb7ae24258a4904142db8951c21e0981318082710dd772
diff --git a/sys-apps/man-db/man-db-2.7.2.ebuild b/sys-apps/man-db/man-db-2.7.2.ebuild
new file mode 100644 (file)
index 0000000..30b5a8b
--- /dev/null
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils user versionator
+
+DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
+HOMEPAGE="http://www.nongnu.org/man-db/"
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux"
+IUSE="berkdb +gdbm nls selinux static-libs zlib"
+
+CDEPEND=">=dev-libs/libpipeline-1.4.0
+       berkdb? ( sys-libs/db )
+       gdbm? ( sys-libs/gdbm )
+       !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
+       sys-apps/groff
+       zlib? ( sys-libs/zlib )
+       !sys-apps/man"
+DEPEND="${CDEPEND}
+       app-arch/xz-utils
+       virtual/pkgconfig
+       nls? (
+               >=app-text/po4a-0.45
+               sys-devel/gettext
+       )"
+RDEPEND="${CDEPEND}
+       selinux? ( sec-policy/selinux-mandb )
+"
+
+pkg_setup() {
+       # Create user now as Makefile in src_install does setuid/chown
+       enewgroup man 15
+       enewuser man 13 -1 /usr/share/man man
+
+       if (use gdbm && use berkdb) || (use !gdbm && use !berkdb) ; then #496150
+               ewarn "Defaulting to USE=gdbm due to ambiguous berkdb/gdbm USE flag settings"
+       fi
+}
+
+src_configure() {
+       export ac_cv_lib_z_gzopen=$(usex zlib)
+       econf \
+               --docdir='$(datarootdir)'/doc/${PF} \
+               --with-systemdtmpfilesdir="${EPREFIX}"/usr/lib/tmpfiles.d \
+               --enable-setuid \
+               --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" \
+               $(use_enable nls) \
+               $(use_enable static-libs static) \
+               --with-db=$(usex gdbm gdbm $(usex berkdb db gdbm))
+}
+
+src_install() {
+       default
+       dodoc docs/{HACKING,TODO}
+       prune_libtool_files
+
+       exeinto /etc/cron.daily
+       newexe "${FILESDIR}"/man-db.cron man-db #289884
+
+       keepdir /var/cache/man
+       fowners man:0 /var/cache/man
+       fperms 2755 /var/cache/man
+}
+
+pkg_preinst() {
+       if [[ -f ${EROOT}var/cache/man/whatis ]] ; then
+               einfo "Cleaning ${EROOT}var/cache/man from sys-apps/man"
+               find "${EROOT}"var/cache/man -type f '!' '(' -name index.bt -o -name index.db ')' -delete
+       fi
+       if [[ ! -g ${EROOT}var/cache/man ]] ; then
+               einfo "Resetting permissions on ${EROOT}var/cache/man" #447944
+               mkdir -p "${EROOT}var/cache/man"
+               chown -R man:0 "${EROOT}"var/cache/man
+               find "${EROOT}"var/cache/man -type d '!' -perm /g=s -exec chmod 2755 {} +
+       fi
+}
+
+pkg_postinst() {
+       if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then
+               einfo "Rebuilding man-db from scratch with new database format!"
+               mandb --quiet --create
+       fi
+}