From dec2d973a08b785de5f479d2886ac22f1e30f658 Mon Sep 17 00:00:00 2001
From: Christian Weisgerber <naddy@FreeBSD.org>
Date: Sat, 19 Apr 2003 14:00:38 +0000
Subject: Add man2web 0.87.

man2web is a program for converting man (manual) output to HTML on
the fly (as a CGI program) or on the command line.
---
 www/man2web/Makefile                               | 29 +++++++++++++++++++++
 www/man2web/distinfo                               |  1 +
 .../patch-doc_man__sources_package__name.1.in      | 14 ++++++++++
 ...patch-doc_man__sources_package__name__conf.5.in | 14 ++++++++++
 www/man2web/files/patch-src_cover__page.h          | 30 ++++++++++++++++++++++
 www/man2web/pkg-descr                              |  4 +++
 www/man2web/pkg-plist                              |  3 +++
 7 files changed, 95 insertions(+)
 create mode 100644 www/man2web/Makefile
 create mode 100644 www/man2web/distinfo
 create mode 100644 www/man2web/files/patch-doc_man__sources_package__name.1.in
 create mode 100644 www/man2web/files/patch-doc_man__sources_package__name__conf.5.in
 create mode 100644 www/man2web/files/patch-src_cover__page.h
 create mode 100644 www/man2web/pkg-descr
 create mode 100644 www/man2web/pkg-plist

(limited to 'www/man2web')

diff --git a/www/man2web/Makefile b/www/man2web/Makefile
new file mode 100644
index 000000000000..3aec91942885
--- /dev/null
+++ b/www/man2web/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for:   man2web
+# Date created:                2003-04-19
+# Whom:                        Christian Weisgerber <naddy@freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME=	man2web
+PORTVERSION=	0.87
+CATEGORIES=	www
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER=	naddy@FreeBSD.org
+COMMENT=	Convert man pages to HTML
+
+GNU_CONFIGURE=	yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS= --bindir="${PREFIX}/${CGIDIR}" \
+		--sysconfdir="${PREFIX}/etc"
+
+PLIST_SUB=	CGIDIR="${CGIDIR}"
+
+CGIDIR=	www/cgi-bin
+
+MAN1=	man2web.1
+MAN5=	man2web.conf.5
+
+.include <bsd.port.mk>
diff --git a/www/man2web/distinfo b/www/man2web/distinfo
new file mode 100644
index 000000000000..dfd0e654f057
--- /dev/null
+++ b/www/man2web/distinfo
@@ -0,0 +1 @@
+MD5 (man2web-0.87.tar.gz) = d22afc6574dd840db25fc44788d0da4d
diff --git a/www/man2web/files/patch-doc_man__sources_package__name.1.in b/www/man2web/files/patch-doc_man__sources_package__name.1.in
new file mode 100644
index 000000000000..51fca53b0400
--- /dev/null
+++ b/www/man2web/files/patch-doc_man__sources_package__name.1.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- doc/man_sources/package_name.1.in.orig	Sat Apr 19 14:12:16 2003
++++ doc/man_sources/package_name.1.in	Sat Apr 19 14:13:07 2003
+@@ -215,7 +215,7 @@
+ .IP "\fB@PACKAGE_NAME@ \-\-print\-config\fR > \fI@PACKAGE_NAME@.conf\fR" 4
+ .IX Item "@PACKAGE_NAME@ --print-config > @PACKAGE_NAME@.conf"
+ This would print out the current configuration, saving it to
+-\&\fI@PACKAGE_NAME.conf\fR.
++\&\fI@PACKAGE_NAME@.conf\fR.
+ .RE
+ .RS 4
+ .RE
diff --git a/www/man2web/files/patch-doc_man__sources_package__name__conf.5.in b/www/man2web/files/patch-doc_man__sources_package__name__conf.5.in
new file mode 100644
index 000000000000..c9c9520279d6
--- /dev/null
+++ b/www/man2web/files/patch-doc_man__sources_package__name__conf.5.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- doc/man_sources/package_name_conf.5.in.orig	Sat Apr 19 14:18:37 2003
++++ doc/man_sources/package_name_conf.5.in	Sat Apr 19 14:19:06 2003
+@@ -152,7 +152,7 @@
+ .IX Header "DESCRIPTION"
+ .RS 4
+ \&\fI@PACKAGE_NAME@.conf\fR contains configuration directives for
+-\&\fB@PACKAGE_NAME@\fR.  It is usually located in \fI/usr/local/etc\fR.
++\&\fB@PACKAGE_NAME@\fR.  It is usually located in \fI@sysconfdir@\fR.
+ .Sp
+ All directives are upper case, followed by whitespace, followed by the
+ value.  If a directive is not specified in the file, the compile time default
diff --git a/www/man2web/files/patch-src_cover__page.h b/www/man2web/files/patch-src_cover__page.h
new file mode 100644
index 000000000000..e3e41eb7bf61
--- /dev/null
+++ b/www/man2web/files/patch-src_cover__page.h
@@ -0,0 +1,30 @@
+
+$FreeBSD$
+
+--- src/cover_page.h.orig	Sat Apr 19 13:56:03 2003
++++ src/cover_page.h	Sat Apr 19 13:58:38 2003
+@@ -8,15 +8,16 @@
+ char *find_section(struct section_entry **node, char *pseudo);
+ 
+ /* default section entries that are used if configuration file is disabled*/
+-#define SECTION_COUNT 8
++#define SECTION_COUNT 9
+ struct section_entry section_matrix[] = {
+-        { "1", "1",	"User Commands" },
+-        { "2", "2",     "System Calls" },
+-        { "3", "3",     "Library Functions" },
+-        { "4", "4",     "Device Drivers & Files" },
++        { "1", "1",	"General Commands (Tools and Utilities)" },
++        { "2", "2",     "System Calls and Error Numbers" },
++        { "3", "3",     "C Libraries" },
++        { "4", "4",     "Devices and Device Drivers" },
+         { "5", "5",     "File Formats" },
+-        { "6", "6",     "Games and Demos" },
+-        { "7", "7",     "Conventions & Miscellany" },
+-        { "8", "8",     "System Administration Commands" }
++        { "6", "6",     "Games" },
++        { "7", "7",     "Miscellaneous Information Pages" },
++        { "8", "8",     "System Maintenance and Operation Commands" },
++        { "9", "9",     "Kernel Interfaces" }
+ };
+ 
diff --git a/www/man2web/pkg-descr b/www/man2web/pkg-descr
new file mode 100644
index 000000000000..84205ac68c84
--- /dev/null
+++ b/www/man2web/pkg-descr
@@ -0,0 +1,4 @@
+man2web is a program for converting man (manual) output to HTML on
+the fly (as a CGI program) or on the command line.
+
+WWW: http://man2web.sourceforge.net/
diff --git a/www/man2web/pkg-plist b/www/man2web/pkg-plist
new file mode 100644
index 000000000000..6ba858a34d7a
--- /dev/null
+++ b/www/man2web/pkg-plist
@@ -0,0 +1,3 @@
+@comment $FreeBSD$
+%%CGIDIR%%/man2web
+etc/man2web.conf.default
-- 
cgit v1.2.3