From 51f86913f74ae0fed2b54692e829a6521b0adbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Tue, 28 Oct 2003 09:46:47 +0000 Subject: Add GnatsWeb 4, the web interface for Gnats 4. PR: ports/57078 Submitted by: Oliver Eikemeier --- databases/Makefile | 1 + databases/gnatsweb4/Makefile | 63 +++++++++++++++++++++++++++++++++++++++++++ databases/gnatsweb4/distinfo | 1 + databases/gnatsweb4/pkg-descr | 8 ++++++ databases/gnatsweb4/pkg-plist | 19 +++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 databases/gnatsweb4/Makefile create mode 100644 databases/gnatsweb4/distinfo create mode 100644 databases/gnatsweb4/pkg-descr create mode 100644 databases/gnatsweb4/pkg-plist (limited to 'databases') diff --git a/databases/Makefile b/databases/Makefile index 54895ed2209f..0c37ccf6c1f6 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -37,6 +37,7 @@ SUBDIR += gmysql SUBDIR += gnats SUBDIR += gnats4 + SUBDIR += gnatsweb4 SUBDIR += gnomedb SUBDIR += gqlplus SUBDIR += grass diff --git a/databases/gnatsweb4/Makefile b/databases/gnatsweb4/Makefile new file mode 100644 index 000000000000..4ddbcc32dd83 --- /dev/null +++ b/databases/gnatsweb4/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: gnatsweb4 +# Date created: 20 Sep 2003 +# Whom: Oliver Eikemeier +# +# $FreeBSD$ +# + +PORTNAME= gnatsweb +PORTVERSION= 4.00 +CATEGORIES= databases devel www +MASTER_SITES= ${MASTER_SITE_GNU} +MASTER_SITE_SUBDIR= gnatsweb + +MAINTAINER= eikemeier@fillmore-labs.com +COMMENT= Gnatsweb, a GNATS web interface + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 + +.ifdef WITH_APACHE2 +RUN_DEPENDS+= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache2 +.endif + +USE_PERL5_RUN= yes +NO_BUILD= yes + +CGI_DIR?= ${PREFIX}/www/cgi-bin + +PLIST_SUB= CGI_DIR="${CGI_DIR:S,^${PREFIX}/,,}" + +DOCFILES= CUSTOMIZE CUSTOMIZE.cb CUSTOMIZE.vars \ + ChangeLog INSTALL NEWS README TROUBLESHOOTING + +EXAMPLEFILES= gnatsweb-site-example.pl + +do-install: + @${MKDIR} ${PREFIX}/etc/gnatsweb + @${INSTALL_DATA} ${WRKSRC}/gnatsweb-site.pl \ + ${PREFIX}/etc/gnatsweb/gnatsweb-site.pl.default + @[ -f ${PREFIX}/etc/gnatsweb/gnatsweb-site.pl ] || \ + ${INSTALL_DATA} ${WRKSRC}/gnatsweb-site.pl \ + ${PREFIX}/etc/gnatsweb + @${MKDIR} ${CGI_DIR} + @${INSTALL_SCRIPT} ${WRKSRC}/gnatsweb.pl ${CGI_DIR} + @${LN} -s ${PREFIX}/etc/gnatsweb/gnatsweb-site.pl ${CGI_DIR} + @${INSTALL_DATA} ${WRKSRC}/gnatsweb.html ${CGI_DIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @for doc in ${DOCFILES}; do \ + ${INSTALL_DATA} ${WRKSRC}/$${doc} ${DOCSDIR}; \ + done + @${MKDIR} ${EXAMPLESDIR} + @for example in ${EXAMPLEFILES}; do \ + ${INSTALL_DATA} ${WRKSRC}/$${example} ${EXAMPLESDIR}; \ + done +.endif + +.include + +.if ${PERL_LEVEL} < 500600 +RUN_DEPENDS+= ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm +.endif + +.include diff --git a/databases/gnatsweb4/distinfo b/databases/gnatsweb4/distinfo new file mode 100644 index 000000000000..cbf85c9ecab5 --- /dev/null +++ b/databases/gnatsweb4/distinfo @@ -0,0 +1 @@ +MD5 (gnatsweb-4.00.tar.gz) = 1d715610ea05ad3aa498d20158b01667 diff --git a/databases/gnatsweb4/pkg-descr b/databases/gnatsweb4/pkg-descr new file mode 100644 index 000000000000..4a4fda19782e --- /dev/null +++ b/databases/gnatsweb4/pkg-descr @@ -0,0 +1,8 @@ +Gnatsweb is a web interface to GNATS, the GNU Problem Report +Management System. It is a Perl CGI script which runs on your +web server. + +WWW: http://www.gnu.org/software/gnats + +- Oliver Eikemeier +eikemeier@fillmore-labs.com diff --git a/databases/gnatsweb4/pkg-plist b/databases/gnatsweb4/pkg-plist new file mode 100644 index 000000000000..64b648f94ab4 --- /dev/null +++ b/databases/gnatsweb4/pkg-plist @@ -0,0 +1,19 @@ +@comment $FreeBSD$ +@unexec if cmp -s %D/etc/gnatsweb/gnatsweb-site.pl %D/etc/gnatsweb/gnatsweb-site.pl.default; then rm -f %D/etc/gnatsweb/gnatsweb-site.pl; fi +etc/gnatsweb/gnatsweb-site.pl.default +@exec [ -f %B/gnatsweb-site.pl ] || cp %B/%f %B/gnatsweb-site.pl +@unexec rmdir %D/etc/gnatsweb 2>/dev/null || true +%%CGI_DIR%%/gnatsweb.pl +%%CGI_DIR%%/gnatsweb-site.pl +%%CGI_DIR%%/gnatsweb.html +%%PORTDOCS%%%%DOCSDIR%%/CUSTOMIZE +%%PORTDOCS%%%%DOCSDIR%%/CUSTOMIZE.cb +%%PORTDOCS%%%%DOCSDIR%%/CUSTOMIZE.vars +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TROUBLESHOOTING +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%%%EXAMPLESDIR%%/gnatsweb-site-example.pl +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% -- cgit v1.2.3