From bded9d2111774d2dba4f4758dbe1f9e63a999881 Mon Sep 17 00:00:00 2001 From: Tom William Payne Date: Sun, 28 Sep 2003 02:03:59 +0000 Subject: Initial commit --- app-text/man2html/Manifest | 8 +++- app-text/man2html/files/digest-man2html-1.5l | 1 + app-text/man2html/files/man2html.cron | 3 ++ app-text/man2html/files/mansearch-gentoo.patch | 17 +++++++ app-text/man2html/files/manwhatis-gentoo.patch | 16 +++++++ app-text/man2html/man2html-1.5l.ebuild | 63 ++++++++++++++++++++++++++ app-text/man2html/metadata.xml | 9 ++++ 7 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 app-text/man2html/files/digest-man2html-1.5l create mode 100644 app-text/man2html/files/man2html.cron create mode 100644 app-text/man2html/files/mansearch-gentoo.patch create mode 100644 app-text/man2html/files/manwhatis-gentoo.patch create mode 100644 app-text/man2html/man2html-1.5l.ebuild create mode 100644 app-text/man2html/metadata.xml (limited to 'app-text/man2html') diff --git a/app-text/man2html/Manifest b/app-text/man2html/Manifest index 0820f62fe501..a650ff0b94e6 100644 --- a/app-text/man2html/Manifest +++ b/app-text/man2html/Manifest @@ -1,3 +1,7 @@ -MD5 a2903c8ea25e9bc37754b14b4c8fc16c man2html-1.5l.ebuild 1449 +MD5 b3f7f8a6fa972adce408f9077051324d man2html-1.5l.ebuild 1561 +MD5 d992d28bec4a3bfd72b441145091a58e metadata.xml 244 +MD5 a9994e42689a20c50fc6f5a49fd9d8c8 ChangeLog 340 MD5 a63bfea0511bb4ea9292d63dc11348b3 files/digest-man2html-1.5l 60 -MD5 cc4443b206a96b25c569d6fb800f717d files/man2html-1.5l-gentoo.patch 686 +MD5 8907539a119c6fcb706af01a90e6923f files/man2html.cron 120 +MD5 56100920b7436cf90ed14c82d9d6475e files/manwhatis-gentoo.patch 638 +MD5 cc4443b206a96b25c569d6fb800f717d files/mansearch-gentoo.patch 686 diff --git a/app-text/man2html/files/digest-man2html-1.5l b/app-text/man2html/files/digest-man2html-1.5l new file mode 100644 index 000000000000..1d4a35da11da --- /dev/null +++ b/app-text/man2html/files/digest-man2html-1.5l @@ -0,0 +1 @@ +MD5 07fa5ab41c39afcd59cdef5139ef563b man-1.5l.tar.gz 218249 diff --git a/app-text/man2html/files/man2html.cron b/app-text/man2html/files/man2html.cron new file mode 100644 index 000000000000..5031fff6ef6a --- /dev/null +++ b/app-text/man2html/files/man2html.cron @@ -0,0 +1,3 @@ +#!/bin/sh +nice -n 19 /usr/bin/glimpseindex -f -z -H /var/man2html `man -w | tr : ' '` +chmod 644 /var/man2html/.glimpse* diff --git a/app-text/man2html/files/mansearch-gentoo.patch b/app-text/man2html/files/mansearch-gentoo.patch new file mode 100644 index 000000000000..8d6332132b7c --- /dev/null +++ b/app-text/man2html/files/mansearch-gentoo.patch @@ -0,0 +1,17 @@ +diff -Naur man-1.5k/man2html/scripts/cgi-bin/man/mansearch man/man2html/scripts/cgi-bin/man/mansearch +--- man-1.5l/man2html/scripts/cgi-bin/man/mansearch 2002-07-17 15:20:42.000000000 +0100 ++++ man/man2html/scripts/cgi-bin/man/mansearch 2003-02-28 11:56:41.000000000 +0000 +@@ -69,11 +69,11 @@ + } + # Have to be careful to single quote this + # string later. +- gsub(/[^a-zA-Z0-9-_+ \t\/@%:;,$*|]/, " ", string); ++ gsub(/[^a-zA-Z0-9\-_+ \t\/@%:;,$*|]/, " ", string); + + string = removeopts(string); + +- gsub(/[^a-zA-Z0-9-_+ \t\/@%:,]/, " ", options); ++ gsub(/[^a-zA-Z0-9\-_+ \t\/@%:,]/, " ", options); + + if (!string) { + if (system("test -r " searchdocument ) != 0) { diff --git a/app-text/man2html/files/manwhatis-gentoo.patch b/app-text/man2html/files/manwhatis-gentoo.patch new file mode 100644 index 000000000000..58c62a832198 --- /dev/null +++ b/app-text/man2html/files/manwhatis-gentoo.patch @@ -0,0 +1,16 @@ +--- man-1.5l/man2html/scripts/cgi-bin/man/manwhatis 2002-07-17 15:20:42.000000000 +0100 ++++ man/man2html/scripts/cgi-bin/man/manwhatis 2003-09-28 02:50:49.000000000 +0100 +@@ -100,9 +100,10 @@ + $1 = $1 ":"; + gsub(":", " ", $1); + +- find_cmd = "find " man_path " -maxdepth 1 -name whatis -printf '%p '"; +- find_cmd | getline whatis_files; +- close(find_cmd); ++ # find_cmd = "find " man_path " -maxdepth 1 -name whatis -printf '%p '"; ++ # find_cmd | getline whatis_files; ++ # close(find_cmd); ++ whatis_files = "/var/cache/man/whatis"; + + if (whatis_files == "") { + print "Content-type: text/html\n\n"; diff --git a/app-text/man2html/man2html-1.5l.ebuild b/app-text/man2html/man2html-1.5l.ebuild new file mode 100644 index 000000000000..0143b1715a7b --- /dev/null +++ b/app-text/man2html/man2html-1.5l.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/man2html/man2html-1.5l.ebuild,v 1.1 2003/09/28 02:03:47 twp Exp $ + +DESCRIPTION="Convert manual pages to HTML" +HOMEPAGE="http://freshmeat.net/projects/man/" +SRC_URI="http://www.kernel.org/pub/linux/utils/man/man-${PV}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha arm hppa mips sparc x86" +DEPEND="app-misc/glimpse sys-apps/gawk sys-apps/man" +S="${WORKDIR}/man-${PV}" + +inherit eutils +inherit webapp-apache + +webapp-detect || NO_HTTPD=1 + +pkg_setup() { + webapp-pkg_setup "${NO_HTTPD}" + einfo "Installing into ${ROOT}${HTTPD_ROOT}" +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/mansearch-gentoo.patch + epatch ${FILESDIR}/manwhatis-gentoo.patch +} + +src_compile() { + : +} + +src_install() { + cd man2html + exeinto ${HTTPD_CGIBIN}/man + doexe scripts/cgi-bin/man/* + insinto ${HTTPD_CGIBIN/bin/aux}/man + doins scripts/cgi-aux/man/* + insinto /var/man2html + newins glimpse_filters .glimpse_filters + fperms 1777 /var/man2html + exeinto /etc/cron.daily + doexe ${FILESDIR}/man2html.cron +} + +pkg_postinst() { + einfo Run + einfo "\tebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" + einfo to complete installation. +} + +pkg_config() { + einfo Running makewhatis + /usr/sbin/makewhatis + eend $? + einfo Running glimpseindex + /usr/bin/glimpseindex -z -H /var/man2html `man -w | tr : ' '` + eend $? + chmod 644 /var/man2html/.glimpse* + einfo Manual pages are available at http://localhost/cgi-bin/man/man2html +} diff --git a/app-text/man2html/metadata.xml b/app-text/man2html/metadata.xml new file mode 100644 index 000000000000..d9bb4626fb2b --- /dev/null +++ b/app-text/man2html/metadata.xml @@ -0,0 +1,9 @@ + + + +no-herd + + twp@gentoo.org + Tom Payne + + -- cgit v1.2.3-65-gdbad