diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2015-10-14 22:57:47 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2015-10-14 22:57:47 +0200 |
commit | 549492411b84f8b92b083bf383ca31d497d82831 (patch) | |
tree | bb28e34d3ce1b0c4a81a159aaea5fc32fb41014d /sys-apps | |
parent | media-gfx/freewrl: fix repoman warnings (diff) | |
download | gentoo-549492411b84f8b92b083bf383ca31d497d82831.tar.gz gentoo-549492411b84f8b92b083bf383ca31d497d82831.tar.bz2 gentoo-549492411b84f8b92b083bf383ca31d497d82831.zip |
sys-apps/man-db: Bump to version 2.7.4
Package-Manager: portage-2.2.23
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/man-db/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/man-db/man-db-2.7.4.ebuild | 95 |
2 files changed, 96 insertions, 0 deletions
diff --git a/sys-apps/man-db/Manifest b/sys-apps/man-db/Manifest index 2856d8f65330..5e251ec4763b 100644 --- a/sys-apps/man-db/Manifest +++ b/sys-apps/man-db/Manifest @@ -2,3 +2,4 @@ DIST man-db-2.6.6.tar.xz 1448576 SHA256 7da90f8d8df91e0e682769d50f4bdb905f525b5d DIST man-db-2.6.7.1.tar.xz 1452280 SHA256 8d65559838fccca774e3ef7c15c073180c786e728785c735e136297facca41fc SHA512 91e1036701174c5623a4cf4208a93130822dc9c61ffd9c6bf0dddaf7c4c5b2401e6238f60578dfa81a11d67d360cbc4d45af920542fb4a0624c7169b17a618f8 WHIRLPOOL 30c510289d1444b3231704c22ddf2c17b58d4aa8b9e8a94552537fbc971b23f16b2c43a32fa9f85fb7b8eca2fd71a73d52955fcd0ab24ef49d3903832eafecf7 DIST man-db-2.7.2.tar.xz 1501264 SHA256 22674eaf51dce8bcc83fd86b1c8d11f99de5c6d8962d7fad7b02307c4ad6e492 SHA512 fd0659f002980ba902bcd1186de09f82d840b039cbeea3457377926991ce5aaa602fe228c0969ea643140a4d5e7bdfbdab7c747943ac93b51c17a591677a7b84 WHIRLPOOL 51ad5e4580b5ff9ede9a0c2e17d579ed2a14c5ef1b11a43b92f99e5467db3e1627eed58c76040710e6fb7ae24258a4904142db8951c21e0981318082710dd772 DIST man-db-2.7.3.tar.xz 1502928 SHA256 9d4744c9956007e7aad59efcc6bb8b6da410ee507df46f9e81311431f80114ea SHA512 0b265b52d8278f80dfbe34cd3ae13382ecea42a8e55046ddd9be3d552b1b404eb7afc6956001ecdb4500ce352a4cded6a4875bba935ca4dbaaed0b51e9b3119e WHIRLPOOL 77c6fd8df3aec6bf40ab8d7cabb0e1aeb53f63db8d2b015f529333972d0792bad49b36b7ec9481dfffefd2b3b079c0701c6164ce4ee616bfa6d2b0f73b5b34e8 +DIST man-db-2.7.4.tar.xz 1503972 SHA256 153f4d3c33f5f9b0c8484bb39d9d271f6ae4aa1b3f5d6d515879692dba944f0b SHA512 979f4b8380a57d2e7275095a31903c112c36558aba33f5d3c26d5bbb5d846c3dae11b943a32db8a5cd9af34605558329666c3830e932a81af8647c370f509139 WHIRLPOOL 7ad145e7b6f04707059b31c7a01c931d4b9f3fb0d638f8c17f91f6f249d91b9121a2d22b0a4115dffb41949cf60e4d8c5e940f6fb39257cf7bcfbdf03885e7a7 diff --git a/sys-apps/man-db/man-db-2.7.4.ebuild b/sys-apps/man-db/man-db-2.7.4.ebuild new file mode 100644 index 000000000000..bf66d3865377 --- /dev/null +++ b/sys-apps/man-db/man-db-2.7.4.ebuild @@ -0,0 +1,95 @@ +# 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 +manpager 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 ) +" +PDEPEND="manpager? ( app-text/manpager )" + +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)) + + # Disable color output from groff so that the manpager can add it. #184604 + sed -i \ + -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \ + src/man_db.conf || die +} + +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 +} |