Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added man-db-2.6.5 , masked for testing.

  • Loading branch information...
commit c6f705e4144f191acb91da6bfa7ea210e692e3a3 1 parent 05e7082
@rh1 rh1 authored
Showing with 141 additions and 0 deletions.
  1. +1 −0  sys-apps/man-db/Manifest
  2. +140 −0 sys-apps/man-db/man-db-2.6.5.ebuild
View
1  sys-apps/man-db/Manifest
@@ -1,3 +1,4 @@
DIST man-1.6g.tar.gz 256906 SHA256 ccdcb8c3f4e0080923d7e818f0e4a202db26c46415eaef361387c20995b8959f SHA512 c786fa2201aed92293e5590dc3ad5d550cf14e5059fa274ef7719af86ee4c892e747576495b6dc0a09286e73e2f0f0caf860216e0c8032d9ef13e5d26853048b WHIRLPOOL 1b531476108c27a3993023da430831c2d20f8045a51490d559a7f588f0771931defd7a3a745e9f1f03797e681eea8767aad4a27ab9abdd5d06ad935dc96a5020
DIST man-db-2.6.1.tar.gz 2507898 SHA256 1517c2cfd98e71b946c6d1b5686b1d3b47a6643fda4294a290beef503fb07d1e
DIST man-db-2.6.2.tar.gz 2524214 SHA256 602aea73460dc94ec2aef6d8996bbe3d85372c087384d9e7c1ffda0821642709 SHA512 697dd1c44b49b1e9246412c0a045a0254ea09ad31a84b24fd90b3eaba98e74a48288380784e8b0b5c1d233478854d365aa86609abb53ea1f8be968add86291dd WHIRLPOOL 7a6ee1708690ba3d948cbcb0cda3da259c11a85a9f6ef83ad04f0441970b38d23045f7d636b0df90f06f84ef77a88faf6b1cfd0cd57020b916268c0a6468a61e
+DIST man-db-2.6.5.tar.xz 1409284 SHA256 97ec8a2a580574f18978101d6d10de43c00c3b5093a6b8679664ada660e42112 SHA512 96f37217be423b93b029d82da1f2e71870bad4c3d34760bc1791fa518e65e234dd2c60d3cebd53b0d0e90bada4db64d584baf99c076408db4564e444d635cdd5 WHIRLPOOL b7b767a879f6d63da5f1b3babf4e26699ac9f25cd0dba801413f00e8a250695e50d57f29a754b3e257c32c6e3778ccff8cade8d5a5094bd72d9d8d6d2698a205
View
140 sys-apps/man-db/man-db-2.6.5.ebuild
@@ -0,0 +1,140 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils user
+
+MAN_PKG="man-1.6g"
+MAN2HTML_SRC="http://primates.ximian.com/~flucifredi/man/${MAN_PKG}.tar.gz"
+
+DESCRIPTION="a man replacement that utilizes berkdb instead of flat files"
+HOMEPAGE="http://www.nongnu.org/man-db/"
+SRC_URI="http://download.savannah.nongnu.org/releases/man-db/${P}.tar.xz
+ ${MAN2HTML_SRC}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~*"
+IUSE="berkdb +gdbm nls static-libs zlib"
+
+RDEPEND="dev-libs/libpipeline
+ berkdb? ( sys-libs/db )
+ gdbm? ( sys-libs/gdbm )
+ !berkdb? ( !gdbm? ( sys-libs/gdbm ) )
+ || ( sys-apps/groff >=app-doc/heirloom-doctools-080407-r2 )
+ zlib? ( sys-libs/zlib )
+ !sys-apps/man"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ nls? (
+ app-text/po4a
+ sys-devel/gettext
+ )"
+
+pkg_setup() {
+ # Create user now as Makefile in src_install does setuid/chown
+ enewgroup man 15
+ enewuser man 13 -1 /usr/share/man man
+}
+
+
+src_prepare() {
+ # FL-258 build man package so we can extract man2html
+ cd "${WORKDIR}"/"${MAN_PKG}"
+ epatch "${FILESDIR}"/man-1.6f-man2html-compression-2.patch
+ epatch "${FILESDIR}"/man-1.6-cross-compile.patch
+ epatch "${FILESDIR}"/man-1.6f-unicode.patch #146315
+ epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch
+ epatch "${FILESDIR}"/man-1.5m2-apropos.patch
+ epatch "${FILESDIR}"/man-1.6g-fbsd.patch #138123
+ epatch "${FILESDIR}"/man-1.6e-headers.patch
+ epatch "${FILESDIR}"/man-1.6f-so-search-2.patch
+ epatch "${FILESDIR}"/man-1.6g-compress.patch #205147
+ epatch "${FILESDIR}"/man-1.6f-parallel-build.patch #207148 #258916
+ epatch "${FILESDIR}"/man-1.6g-xz.patch #302380
+ epatch "${FILESDIR}"/man-1.6f-makewhatis-compression-cleanup.patch #331979
+
+ # make sure `less` handles escape sequences #287183
+ sed -i -e '/^DEFAULTLESSOPT=/s:"$:R":' configure
+}
+
+src_configure() {
+ export ac_cv_lib_z_gzopen=$(usex zlib)
+ econf \
+ --docdir='$(datarootdir)'/doc/${PF} \
+ --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))
+
+ # FL-258 build man package so we can extract man2html
+ cd "${WORKDIR}"/"${MAN_PKG}"
+ strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ })
+ unset NLSPATH #175258
+ tc-export CC BUILD_CC
+ local mylang=
+ if use nls ; then
+ if [[ -z ${LINGUAS} ]] ; then
+ mylang="all"
+ else
+ mylang="${LINGUAS// /,}"
+ fi
+ else
+ mylang="none"
+ fi
+ export COMPRESS
+ if use lzma ; then
+ COMPRESS=/usr/bin/xz
+ else
+ COMPRESS=/bin/bzip2
+ fi
+ ./configure -confdir=/etc +sgid +fhs +lang ${mylang} || die "configure failed in man"
+}
+
+src_compile() {
+ cd "${S}"
+ emake || die "emake failed in man-db"
+
+ # FL-258 build man package so we can extract man2html
+ cd "${WORKDIR}"/"${MAN_PKG}"
+ make || die "emake failed in man"
+}
+
+src_install() {
+ cd "${S}"
+ emake install DESTDIR="${D}" || die
+ dodoc README ChangeLog NEWS docs/{HACKING,TODO}
+ prune_libtool_files
+
+ exeinto /etc/cron.daily
+ newexe "${FILESDIR}"/man-db.cron man-db #289884
+
+ keepdir /var/cache/man
+ fowners man:root /var/cache/man
+ fperms 2755 /var/cache/man
+
+ # FL-258 Install just the man2html part of man.
+ cd "${WORKDIR}"/"${MAN_PKG}"/man2html
+ make PREFIX="${D}" install || die "make install failed for man2html"
+}
+
+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:root "${EROOT}"var/cache/man
+ find "${EROOT}"var/cache/man -type d '!' -perm /g=s -exec chmod 2755 {} +
+ fi
+}
+
+pkg_postinst() {
+ if [[ "${EROOT}" = "/" ]] ; then
+ einfo "Generating/updating man-db cache..."
+ /etc/cron.daily/man-db
+ fi
+}
Please sign in to comment.
Something went wrong with that request. Please try again.