aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-09-20 13:16:46 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-09-20 13:16:46 +0000
commit0ff9b555dc3e395b1398baff82a46a91752c440f (patch)
treeaa42c6dbda0f520fdda023776ef8f27018214d80 /databases
parent497c13571f23bbbe77a41d527abf20f4022c3ece (diff)
downloadports-0ff9b555dc3e395b1398baff82a46a91752c440f.tar.gz
ports-0ff9b555dc3e395b1398baff82a46a91752c440f.zip
Gnats 4.0, a complete rewrite of the good old GNU bug tracking system.
PR: ports/55876 Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Notes
Notes: svn path=/head/; revision=89076
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/gnats4/Makefile67
-rw-r--r--databases/gnats4/distinfo1
-rw-r--r--databases/gnats4/files/patch-gnats::Makefile.in13
-rw-r--r--databases/gnats4/files/patch-libiberty::configure11
-rw-r--r--databases/gnats4/pkg-descr11
-rw-r--r--databases/gnats4/pkg-install34
-rw-r--r--databases/gnats4/pkg-message13
-rw-r--r--databases/gnats4/pkg-plist37
9 files changed, 188 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 9f344427f7b2..662d2f5097e4 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -36,6 +36,7 @@
SUBDIR += gigabase
SUBDIR += gmysql
SUBDIR += gnats
+ SUBDIR += gnats4
SUBDIR += gnomedb
SUBDIR += gqlplus
SUBDIR += grass
diff --git a/databases/gnats4/Makefile b/databases/gnats4/Makefile
new file mode 100644
index 000000000000..d648d93445a6
--- /dev/null
+++ b/databases/gnats4/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: gnats4
+# Date created: 22 Aug 2003
+# Whom: Oliver Eikemeier <eikemeier@fillmore-labs.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnats
+PORTVERSION= 4.0
+CATEGORIES= databases
+MASTER_SITES= http://www.yngve.com/%SUBDIR%/ # ${MASTER_SITE_GNU}
+MASTER_SITE_SUBDIR= gnats
+
+MAINTAINER= eikemeier@fillmore-labs.com
+COMMENT= GNATS, the GNU Problem Report Management System
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --sharedstatedir=${PREFIX}/share/gnats
+
+LATEST_LINK= ${PKGNAMEPREFIX}gnats4${PKGNAMESUFFIX}
+CONFLICTS= gnats-3.*
+
+USE_GMAKE= yes
+MAN1= edit-pr.1 query-pr.1 send-pr.1
+MAN5= databases.5 dbconfig.5
+MAN7= gnats.7
+MAN8= delete-pr.8 file-pr.8 gen-index.8 gnatsd.8 mkcat.8 mkdb.8 pr-edit.8 queue-pr.8 rmcat.8
+INFO= gnats-faq gnats
+
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+STRIP=
+
+BINARIES= bin/getclose bin/query-pr libexec/gnats/gen-index libexec/gnats/gnats-pwconv \
+ libexec/gnats/gnatsd libexec/gnats/pr-age libexec/gnats/pr-edit libexec/gnats/queue-pr
+
+.if defined(WITH_EMACS_PORT)
+EMACS_PORT_NAME= ${WITH_EMACS_PORT}
+CONFIGURE_ARGS+= --with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR}
+.else
+PLIST_SUB+= EMACS_SITE_LISPDIR="@comment "
+.endif
+
+pre-everything::
+ @${ECHO} "============================================================="
+ @${ECHO}
+ @${ECHO} "You can build ${PKGNAME} with the following options:"
+ @${ECHO}
+ @${ECHO} "WITH_EMACS_PORT=emacs with Emacs support"
+ @${ECHO}
+ @${ECHO} "============================================================="
+ @${ECHO}
+
+post-build:
+ ${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGDIR}/pkg-message >${PKGMESSAGE}
+
+pre-install:
+ @${MKDIR} ${PREFIX}/libexec/gnats
+ @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+post-install:
+ @for binary in ${BINARIES}; do \
+ ${STRIP_CMD} ${PREFIX}/$${binary}; \
+ done
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/databases/gnats4/distinfo b/databases/gnats4/distinfo
new file mode 100644
index 000000000000..bb326b44ae6d
--- /dev/null
+++ b/databases/gnats4/distinfo
@@ -0,0 +1 @@
+MD5 (gnats-4.0.tar.gz) = 3bf0d3336b976549553c64ac4bc15f75
diff --git a/databases/gnats4/files/patch-gnats::Makefile.in b/databases/gnats4/files/patch-gnats::Makefile.in
new file mode 100644
index 000000000000..ab6fa83805d5
--- /dev/null
+++ b/databases/gnats4/files/patch-gnats::Makefile.in
@@ -0,0 +1,13 @@
+--- gnats/Makefile.in.orig Sun Jul 27 01:23:17 2003
++++ gnats/Makefile.in Fri Aug 22 18:41:18 2003
+@@ -371,7 +371,9 @@
+ else \
+ echo "*** Warning: Must chown $(GNATS_USER) $(datadir)/gnats" ; \
+ fi
+- $(INSTALL_DATA) $(srcdir)/gnats.el $(lispdir)/gnats.el
++ @if [ x"$(lispdir)" != x ]; then \
++ $(INSTALL_DATA) $(srcdir)/gnats.el $(lispdir)/gnats.el ; \
++ fi
+ for i in categories submitters responsible gnatsd.user_access addresses states classes dbconfig ; do \
+ if [ -f "$$i" ] ; then \
+ $(INSTALL_DATA) $$i $(sysconfdir)/gnats/defaults/$$i ; \
diff --git a/databases/gnats4/files/patch-libiberty::configure b/databases/gnats4/files/patch-libiberty::configure
new file mode 100644
index 000000000000..afb4cfa0b9d2
--- /dev/null
+++ b/databases/gnats4/files/patch-libiberty::configure
@@ -0,0 +1,11 @@
+--- libiberty/configure.orig Tue Dec 11 00:03:27 2001
++++ libiberty/configure Fri Aug 22 16:07:09 2003
+@@ -836,7 +836,7 @@
+
+ if test $ac_cv_prog_gcc = yes; then
+ GCC=yes
+- ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
++ ac_libiberty_warn_cflags='-W -Wall -Wno-long-long -pedantic'
+ ac_test_CFLAGS="${CFLAGS+set}"
+ ac_save_CFLAGS="$CFLAGS"
+ CFLAGS=
diff --git a/databases/gnats4/pkg-descr b/databases/gnats4/pkg-descr
new file mode 100644
index 000000000000..cfd5523393a4
--- /dev/null
+++ b/databases/gnats4/pkg-descr
@@ -0,0 +1,11 @@
+GNU GNATS is a set of tools for tracking bugs reported by users to a
+central site. It allows problem report management and communication
+with users through various means, including e-mail, Web and a network
+daemon. GNATS stores all the information about problem reports in its
+databases, consisting of plain text files and it provides tools for
+querying, editing and maintaining these databases.
+
+WWW: http://www.gnu.org/software/gnats
+
+- Oliver Eikemeier
+eikemeier@fillmore-labs.com
diff --git a/databases/gnats4/pkg-install b/databases/gnats4/pkg-install
new file mode 100644
index 000000000000..6dbcc2492c6b
--- /dev/null
+++ b/databases/gnats4/pkg-install
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+ECHO_CMD=echo
+GREP=/usr/bin/grep
+ID=/usr/bin/id
+PW=/usr/sbin/pw
+FTPUSERS=/etc/ftpusers
+
+case $2 in
+PRE-INSTALL)
+ if ! ${ID} -u gnats >/dev/null 2>&1; then
+ if ${PW} add user -n gnats -u 61 -g 1 -d ${PKG_PREFIX}/share/gnats \
+ -c "GNATS database owner" -p "*"; then
+ ${GREP} -qs '^gnats$' ${FTPUSERS} || ${ECHO_CMD} gnats >>/etc/ftpusers
+ else
+ ${ECHO_CMD}
+ ${ECHO_CMD} "The FreeBSD standard userid for gnats is 61, but this system"
+ ${ECHO_CMD} "has already a different account with this userid: \``${ID} -un 61`'"
+ ${ECHO_CMD}
+ ${ECHO_CMD} "You can either delete this account (which may be dangerous) with"
+ ${ECHO_CMD} " ${PW} userdel -u 61"
+ ${ECHO_CMD} "or add the gnats user with an other userid with"
+ ${ECHO_CMD} " ${PW} useradd -n gnats -g 1 \\"
+ ${ECHO_CMD} " -d ${PKG_PREFIX}/share/gnats -c 'GNATS database owner' -p '*'"
+ ${ECHO_CMD} "and retry installing this package"
+ ${ECHO_CMD}
+ exit 1
+ fi
+ fi
+ ;;
+esac
diff --git a/databases/gnats4/pkg-message b/databases/gnats4/pkg-message
new file mode 100644
index 000000000000..a35d93a8c8d1
--- /dev/null
+++ b/databases/gnats4/pkg-message
@@ -0,0 +1,13 @@
+************************************************************
+
+GNATS has been successfully installed.
+
+Run
+ su gnats %%PREFIX%%/libexec/gnats/mkdb default
+to create the default database.
+
+Try "man gnats" or "info gnats" or the online manual at
+ <http://www.gnu.org/software/gnats/gnats_toc.html>
+for more information
+
+************************************************************
diff --git a/databases/gnats4/pkg-plist b/databases/gnats4/pkg-plist
new file mode 100644
index 000000000000..28e41d462221
--- /dev/null
+++ b/databases/gnats4/pkg-plist
@@ -0,0 +1,37 @@
+@comment $FreeBSD$
+bin/edit-pr
+bin/getclose
+bin/install-sid
+bin/query-pr
+bin/send-pr
+etc/gnats/databases
+etc/gnats/defaults/addresses
+etc/gnats/defaults/categories
+etc/gnats/defaults/classes
+etc/gnats/defaults/dbconfig
+etc/gnats/defaults/gnatsd.user_access
+etc/gnats/defaults/responsible
+etc/gnats/defaults/states
+etc/gnats/defaults/submitters
+etc/gnats/gnatsd.host_access
+@dirrm etc/gnats/defaults
+@dirrm etc/gnats
+libexec/gnats/at-pr
+libexec/gnats/check-db
+libexec/gnats/delete-pr
+libexec/gnats/diff-prs
+libexec/gnats/file-pr
+libexec/gnats/gen-index
+libexec/gnats/gnats-pwconv
+libexec/gnats/gnatsd
+libexec/gnats/mail-agent
+libexec/gnats/mail-query
+libexec/gnats/mkcat
+libexec/gnats/mkdb
+libexec/gnats/pr-age
+libexec/gnats/pr-edit
+libexec/gnats/queue-pr
+libexec/gnats/rmcat
+@dirrm libexec/gnats
+%%EMACS_SITE_LISPDIR%%/gnats.el
+@unexec rmdir %D/share/gnats 2>/dev/null || true