summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-01-27 02:30:22 +0000
committerMike Frysinger <vapier@gentoo.org>2010-01-27 02:30:22 +0000
commite371b50af239e5e0a955aa8d8a6ecfc66d5b989b (patch)
tree21f7a140098de2898cb19efea6a203af6607b385 /sys-apps/man
parentrevert dynamic linking for prefix, fixed in nspr (diff)
downloadgentoo-2-e371b50af239e5e0a955aa8d8a6ecfc66d5b989b.tar.gz
gentoo-2-e371b50af239e5e0a955aa8d8a6ecfc66d5b989b.tar.bz2
gentoo-2-e371b50af239e5e0a955aa8d8a6ecfc66d5b989b.zip
old
Diffstat (limited to 'sys-apps/man')
-rw-r--r--sys-apps/man/files/man-1.5m-groff-1.18.patch31
-rw-r--r--sys-apps/man/files/man-1.6e-dont-kill-shebangs.patch25
-rw-r--r--sys-apps/man/files/man-1.6e-man2html-bzip2.patch53
-rw-r--r--sys-apps/man/files/man-1.6e-readonly-whatis2.patch47
-rw-r--r--sys-apps/man/man-1.6e-r3.ebuild131
-rw-r--r--sys-apps/man/man-1.6f-r1.ebuild110
-rw-r--r--sys-apps/man/man-1.6f-r2.ebuild111
-rw-r--r--sys-apps/man/man-1.6f.ebuild110
8 files changed, 0 insertions, 618 deletions
diff --git a/sys-apps/man/files/man-1.5m-groff-1.18.patch b/sys-apps/man/files/man-1.5m-groff-1.18.patch
deleted file mode 100644
index 08dff37503bf..000000000000
--- a/sys-apps/man/files/man-1.5m-groff-1.18.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-With newer versions of groff (1.18+), we need to use -c
-so as to filter color output.
-
-Also, change the -Tlatin1 to -Tascii to get rid of '<B7>'
-gremlins and output the normal bullets 'o'.
-http://bugs.gentoo.org/show_bug.cgi?id=44201
-
---- man-1.5k/configure.orig 2002-12-26 06:23:53.000000000 +0200
-+++ man-1.5k/configure 2002-12-26 06:25:14.000000000 +0200
-@@ -473,9 +473,9 @@
- then
- if test $Fnroff = "missing"
- then
-- nroff="nroff -Tlatin1 -mandoc"
-+ nroff="nroff -Tascii -c -mandoc"
- else
-- nroff="$Fnroff -Tlatin1 -mandoc"
-+ nroff="$Fnroff -Tascii -c -mandoc"
- fi
- troff="troff -mandoc"
- echo "Warning: could not find groff"
-@@ -484,7 +484,7 @@
- then
- nroff="$Fgroff -Tlatin1 -mandoc"
- else
-- nroff="$Fnroff -Tlatin1 -mandoc"
-+ nroff="$Fnroff -Tascii -c -mandoc"
- fi
- troff="$Fgroff -Tps -mandoc"
- jnroff="$Fgroff -Tnippon -mandocj"
-
diff --git a/sys-apps/man/files/man-1.6e-dont-kill-shebangs.patch b/sys-apps/man/files/man-1.6e-dont-kill-shebangs.patch
deleted file mode 100644
index dbbc243b5631..000000000000
--- a/sys-apps/man/files/man-1.6e-dont-kill-shebangs.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-http://bugs.gentoo.org/159192
-
---- configure
-+++ configure
-@@ -1250,6 +1250,7 @@
- allargs='$@'
- infiles='$infiles'
- infile='$infile'
-+shebang='`sed -n -e 1p $infile.in`'
- cb='$cb'
- cs='$cs'
- ce='$ce'
-@@ -1273,7 +1274,11 @@
- *.1|*.5|*.8|*.man)
- cb=$mancomment; cs=$mancomment; ce=$mancomment;;
- *)
-- cb="#"; cs="#"; ce="#";;
-+ case "$shebang" in
-+ '#!'*) cb="$shebang";;
-+ *) cb="#";;
-+ esac
-+ cs="#"; ce="#";;
- esac
- echo "$cb" > $infile
- echo "$cs Generated automatically from $infile.in by the" >> $infile
diff --git a/sys-apps/man/files/man-1.6e-man2html-bzip2.patch b/sys-apps/man/files/man-1.6e-man2html-bzip2.patch
deleted file mode 100644
index 091d4bdecc80..000000000000
--- a/sys-apps/man/files/man-1.6e-man2html-bzip2.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-add support for bzip2 compression to man2html and friends
-
---- man2html/glimpse_filters
-+++ man2html/glimpse_filters
-@@ -1,3 +1,4 @@
-+*.bz2 bzip2 -d -c
- *.gz gzip -d -c
- *.Z gzip -d -c
-
---- man2html/scripts/cgi-bin/man/man2html
-+++ man2html/scripts/cgi-bin/man/man2html
-@@ -87,6 +87,9 @@
- if [ -r "$PAGE" ]
- then
- case "$PAGE" in
-+ *.bz2)
-+ bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
-+ ;;
- *.gz)
- zcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
- ;;
-@@ -94,6 +97,9 @@
- "$MAN2HTML" "$LL" "$PAGE"
- ;;
- esac
-+elif [ -r "$PAGE".bz2 ]
-+then
-+ bzcat "$PAGE".bz2 | "$MAN2HTML" "$LL" -D "$PAGE"
- elif [ -r "$PAGE".gz ]
- then
- zcat "$PAGE".gz | "$MAN2HTML" "$LL" -D "$PAGE"
---- man2html/scripts/cgi-bin/man/mansearch
-+++ man2html/scripts/cgi-bin/man/mansearch
-@@ -153,7 +153,7 @@
- }
- print "<DT> <a href=\"" cgipath "/man2html?" fullname "\">";
- textname = filename;
-- sub(/\.(gz)|Z|z$/, "", textname);
-+ sub(/\.(gz)|(bz2)|Z|z$/, "", textname);
- sub(/\./, "(", textname);
- textname = textname ")";
- print textname;
---- man2html/scripts/cgi-bin/man/mansec
-+++ man2html/scripts/cgi-bin/man/mansec
-@@ -128,7 +128,7 @@
- # Print out alphabetic quick index and other links
- }
- # Split page.n into "page" and "n" and generate an entry
-- sub(/[.]([zZ]|(gz))$/, "", manpage);
-+ sub(/[.]([zZ]|(gz)|(bz2))$/, "", manpage);
- match(manpage, /[.][^.]+$/);
- title = substr(manpage, 1, RSTART - 1);
- if (section != "all") {
diff --git a/sys-apps/man/files/man-1.6e-readonly-whatis2.patch b/sys-apps/man/files/man-1.6e-readonly-whatis2.patch
deleted file mode 100644
index 92e37d0df159..000000000000
--- a/sys-apps/man/files/man-1.6e-readonly-whatis2.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-Dont update makewhatis files if they're on readonly filesystems
-
-http://bugs.gentoo.org/163932
-
---- src/makewhatis.sh
-+++ src/makewhatis.sh
-@@ -184,6 +188,25 @@
- if [ x$verbose != x ]; then
- echo "about to enter $mandir" > /dev/stderr
- fi
-+
-+ # kludge for Slackware's /usr/man/preformat
-+ if [ $mandir = /usr/man/preformat ]
-+ then
-+ mandir1=/usr/man
-+ else
-+ mandir1=$mandir
-+ fi
-+
-+ # if $mandir is on a readonly partition and we cannot update the whatis
-+ # file, then let's simply skip it
-+ if ! touch ${mandir1}/whatis 2> /dev/null
-+ then
-+ if [ x$verbose != x ]; then
-+ echo skipping $mandir - whatis file is readonly > /dev/stderr
-+ fi
-+ continue
-+ fi
-+
- if [ -s ${mandir}/whatis -a $pages = man -a x$update = x ]; then
- if [ x$verbose != x ]; then
- echo skipping $mandir - we did it already > /dev/stderr
-@@ -407,14 +430,6 @@
-
- cd $here
-
-- # kludge for Slackware's /usr/man/preformat
-- if [ $mandir = /usr/man/preformat ]
-- then
-- mandir1=/usr/man
-- else
-- mandir1=$mandir
-- fi
--
- if [ -f ${mandir1}/whatis ]
- then
- cat ${mandir1}/whatis >> $TMPFILE
diff --git a/sys-apps/man/man-1.6e-r3.ebuild b/sys-apps/man/man-1.6e-r3.ebuild
deleted file mode 100644
index 232570ead555..000000000000
--- a/sys-apps/man/man-1.6e-r3.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6e-r3.ebuild,v 1.13 2008/01/10 09:21:46 vapier Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Standard commands to read man pages"
-HOMEPAGE="http://primates.ximian.com/~flucifredi/man/"
-SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
-IUSE="nls"
-
-DEPEND="nls? ( sys-devel/gettext )"
-RDEPEND=">=sys-apps/groff-1.18
- !sys-apps/man-db"
-PROVIDE="virtual/man"
-
-pkg_setup() {
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # add support for bzip2 pages
- epatch "${FILESDIR}"/man-1.6e-man2html-bzip2.patch
-
- # We love to cross-compile
- epatch "${FILESDIR}"/man-1.6-cross-compile.patch
-
- # Fix search order in man.conf so that system installed manpages
- # will be found first ...
- epatch "${FILESDIR}"/man-1.5p-search-order.patch
-
- # For groff-1.18 or later we need to call nroff with '-c'
- epatch "${FILESDIR}"/man-1.5m-groff-1.18.patch
-
- # makewhatis traverses manpages twice, as default manpath
- # contains two directories that are symlinked together
- epatch "${FILESDIR}"/man-1.5p-defmanpath-symlinks.patch
-
- # add more sections to default search path
- epatch "${FILESDIR}"/man-1.6b-more-sections.patch
-
- # cut out symlinked paths #90186
- epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch
-
- # Fedora patches
- epatch "${FILESDIR}"/man-1.5m2-apropos.patch
-
- # Fixes compilation in FreeBSD wrt #138123
- epatch "${FILESDIR}"/man-1.6d-fbsd.patch
-
- epatch "${FILESDIR}"/man-1.6e-dont-kill-shebangs.patch #159192
- epatch "${FILESDIR}"/man-1.6e-headers.patch
- epatch "${FILESDIR}"/man-1.6e-readonly-whatis2.patch #163932
-
- strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ })
-}
-
-src_compile() {
- 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
- ./configure \
- -confdir=/etc \
- +sgid +fhs \
- +lang ${mylang} \
- || die "configure failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- unset NLSPATH #175258
-
- emake PREFIX="${D}" install || die "make install failed"
- dosym man /usr/bin/manpath
-
- dodoc LSM README* TODO
-
- # makewhatis only adds man-pages from the last 24hrs
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/makewhatis.cron makewhatis
-
- keepdir /var/cache/man
- diropts -m0775 -g man
- local mansects=$(grep ^MANSECT "${D}"/etc/man.conf | cut -f2-)
- for x in ${mansects//:/ } ; do
- keepdir /var/cache/man/cat${x}
- done
-}
-
-pkg_postinst() {
- einfo "Forcing sane permissions onto ${ROOT}/var/cache/man (Bug #40322)"
- chown -R root:man "${ROOT}"/var/cache/man
- chmod -R g+w "${ROOT}"/var/cache/man
- [[ -e ${ROOT}/var/cache/man/whatis ]] \
- && chown root:0 "${ROOT}"/var/cache/man/whatis
-
- echo
-
- local f files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- for f in ${files} ; do
- [[ ${f} == */etc/cron.daily/makewhatis ]] && continue
- [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \
- && rm -f "${f}"
- done
- files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- if [[ ${files/$'\n'} != ${files} ]] ; then
- ewarn "You have multiple makewhatis cron files installed."
- ewarn "You might want to delete all but one of these:"
- ewarn ${files}
- fi
-}
diff --git a/sys-apps/man/man-1.6f-r1.ebuild b/sys-apps/man/man-1.6f-r1.ebuild
deleted file mode 100644
index 52f6ac5b425e..000000000000
--- a/sys-apps/man/man-1.6f-r1.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6f-r1.ebuild,v 1.10 2008/05/04 10:51:58 vapier Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Standard commands to read man pages"
-HOMEPAGE="http://primates.ximian.com/~flucifredi/man/"
-SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
-IUSE="nls"
-
-DEPEND="nls? ( sys-devel/gettext )"
-RDEPEND=">=sys-apps/groff-1.19.2-r1
- !sys-apps/man-db
- !app-arch/lzma"
-PROVIDE="virtual/man"
-
-pkg_setup() {
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/man-1.6f-man2html-compression.patch
- epatch "${FILESDIR}"/man-1.6-cross-compile.patch
- epatch "${FILESDIR}"/man-1.5p-search-order.patch
- epatch "${FILESDIR}"/man-1.6f-unicode.patch #146315
- epatch "${FILESDIR}"/man-1.5p-defmanpath-symlinks.patch
- epatch "${FILESDIR}"/man-1.6b-more-sections.patch
- epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch
- epatch "${FILESDIR}"/man-1.5m2-apropos.patch
- epatch "${FILESDIR}"/man-1.6d-fbsd.patch
- epatch "${FILESDIR}"/man-1.6e-headers.patch
-
- strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ })
-}
-
-src_compile() {
- 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
- ./configure \
- -confdir=/etc \
- +sgid +fhs \
- +lang ${mylang} \
- || die "configure failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- unset NLSPATH #175258
-
- emake PREFIX="${D}" install || die "make install failed"
- dosym man /usr/bin/manpath
-
- dodoc LSM README* TODO
-
- # makewhatis only adds man-pages from the last 24hrs
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/makewhatis.cron makewhatis
-
- keepdir /var/cache/man
- diropts -m0775 -g man
- local mansects=$(grep ^MANSECT "${D}"/etc/man.conf | cut -f2-)
- for x in ${mansects//:/ } ; do
- keepdir /var/cache/man/cat${x}
- done
-}
-
-pkg_postinst() {
- einfo "Forcing sane permissions onto ${ROOT}/var/cache/man (Bug #40322)"
- chown -R root:man "${ROOT}"/var/cache/man
- chmod -R g+w "${ROOT}"/var/cache/man
- [[ -e ${ROOT}/var/cache/man/whatis ]] \
- && chown root:0 "${ROOT}"/var/cache/man/whatis
-
- echo
-
- local f files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- for f in ${files} ; do
- [[ ${f} == */etc/cron.daily/makewhatis ]] && continue
- [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \
- && rm -f "${f}"
- done
- files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- if [[ ${files/$'\n'} != ${files} ]] ; then
- ewarn "You have multiple makewhatis cron files installed."
- ewarn "You might want to delete all but one of these:"
- ewarn ${files}
- fi
-}
diff --git a/sys-apps/man/man-1.6f-r2.ebuild b/sys-apps/man/man-1.6f-r2.ebuild
deleted file mode 100644
index 273c09a5d160..000000000000
--- a/sys-apps/man/man-1.6f-r2.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6f-r2.ebuild,v 1.8 2008/10/02 16:52:21 ranger Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Standard commands to read man pages"
-HOMEPAGE="http://primates.ximian.com/~flucifredi/man/"
-SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
-IUSE="nls"
-
-DEPEND="nls? ( sys-devel/gettext )"
-RDEPEND=">=sys-apps/groff-1.19.2-r1
- !sys-apps/man-db
- !app-arch/lzma"
-PROVIDE="virtual/man"
-
-pkg_setup() {
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/man-1.6f-man2html-compression.patch
- epatch "${FILESDIR}"/man-1.6-cross-compile.patch
- epatch "${FILESDIR}"/man-1.5p-search-order.patch
- epatch "${FILESDIR}"/man-1.6f-unicode.patch #146315
- epatch "${FILESDIR}"/man-1.5p-defmanpath-symlinks.patch
- epatch "${FILESDIR}"/man-1.6b-more-sections.patch
- epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch
- epatch "${FILESDIR}"/man-1.5m2-apropos.patch
- epatch "${FILESDIR}"/man-1.6d-fbsd.patch
- epatch "${FILESDIR}"/man-1.6e-headers.patch
- epatch "${FILESDIR}"/man-1.6f-so-search.patch
-
- strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ })
-}
-
-src_compile() {
- 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
- ./configure \
- -confdir=/etc \
- +sgid +fhs \
- +lang ${mylang} \
- || die "configure failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- unset NLSPATH #175258
-
- emake PREFIX="${D}" install || die "make install failed"
- dosym man /usr/bin/manpath
-
- dodoc LSM README* TODO
-
- # makewhatis only adds man-pages from the last 24hrs
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/makewhatis.cron makewhatis
-
- keepdir /var/cache/man
- diropts -m0775 -g man
- local mansects=$(grep ^MANSECT "${D}"/etc/man.conf | cut -f2-)
- for x in ${mansects//:/ } ; do
- keepdir /var/cache/man/cat${x}
- done
-}
-
-pkg_postinst() {
- einfo "Forcing sane permissions onto ${ROOT}/var/cache/man (Bug #40322)"
- chown -R root:man "${ROOT}"/var/cache/man
- chmod -R g+w "${ROOT}"/var/cache/man
- [[ -e ${ROOT}/var/cache/man/whatis ]] \
- && chown root:0 "${ROOT}"/var/cache/man/whatis
-
- echo
-
- local f files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- for f in ${files} ; do
- [[ ${f} == */etc/cron.daily/makewhatis ]] && continue
- [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \
- && rm -f "${f}"
- done
- files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- if [[ ${files/$'\n'} != ${files} ]] ; then
- ewarn "You have multiple makewhatis cron files installed."
- ewarn "You might want to delete all but one of these:"
- ewarn ${files}
- fi
-}
diff --git a/sys-apps/man/man-1.6f.ebuild b/sys-apps/man/man-1.6f.ebuild
deleted file mode 100644
index 796e4aaf026b..000000000000
--- a/sys-apps/man/man-1.6f.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6f.ebuild,v 1.3 2008/02/06 00:43:04 opfer Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Standard commands to read man pages"
-HOMEPAGE="http://primates.ximian.com/~flucifredi/man/"
-SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
-IUSE="nls"
-
-DEPEND="nls? ( sys-devel/gettext )"
-RDEPEND=">=sys-apps/groff-1.18
- !sys-apps/man-db
- !app-arch/lzma"
-PROVIDE="virtual/man"
-
-pkg_setup() {
- enewgroup man 15
- enewuser man 13 -1 /usr/share/man man
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}"/man-1.6f-man2html-compression.patch
- epatch "${FILESDIR}"/man-1.6-cross-compile.patch
- epatch "${FILESDIR}"/man-1.5p-search-order.patch
- epatch "${FILESDIR}"/man-1.5m-groff-1.18.patch
- epatch "${FILESDIR}"/man-1.5p-defmanpath-symlinks.patch
- epatch "${FILESDIR}"/man-1.6b-more-sections.patch
- epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch
- epatch "${FILESDIR}"/man-1.5m2-apropos.patch
- epatch "${FILESDIR}"/man-1.6d-fbsd.patch
- epatch "${FILESDIR}"/man-1.6e-headers.patch
-
- strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ })
-}
-
-src_compile() {
- 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
- ./configure \
- -confdir=/etc \
- +sgid +fhs \
- +lang ${mylang} \
- || die "configure failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- unset NLSPATH #175258
-
- emake PREFIX="${D}" install || die "make install failed"
- dosym man /usr/bin/manpath
-
- dodoc LSM README* TODO
-
- # makewhatis only adds man-pages from the last 24hrs
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/makewhatis.cron makewhatis
-
- keepdir /var/cache/man
- diropts -m0775 -g man
- local mansects=$(grep ^MANSECT "${D}"/etc/man.conf | cut -f2-)
- for x in ${mansects//:/ } ; do
- keepdir /var/cache/man/cat${x}
- done
-}
-
-pkg_postinst() {
- einfo "Forcing sane permissions onto ${ROOT}/var/cache/man (Bug #40322)"
- chown -R root:man "${ROOT}"/var/cache/man
- chmod -R g+w "${ROOT}"/var/cache/man
- [[ -e ${ROOT}/var/cache/man/whatis ]] \
- && chown root:0 "${ROOT}"/var/cache/man/whatis
-
- echo
-
- local f files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- for f in ${files} ; do
- [[ ${f} == */etc/cron.daily/makewhatis ]] && continue
- [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \
- && rm -f "${f}"
- done
- files=$(ls "${ROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
- if [[ ${files/$'\n'} != ${files} ]] ; then
- ewarn "You have multiple makewhatis cron files installed."
- ewarn "You might want to delete all but one of these:"
- ewarn ${files}
- fi
-}