diff options
author | martti <martti@pkgsrc.org> | 2001-10-11 11:42:26 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2001-10-11 11:42:26 +0000 |
commit | e7e089570223e0d88551fc5473cb189ab92fd4b4 (patch) | |
tree | 0010a41eca4b372a520962b3874c014ea935972f /databases/gnats | |
parent | 79e431f61b880db2b51ca0662ded1155cb482e37 (diff) | |
download | pkgsrc-e7e089570223e0d88551fc5473cb189ab92fd4b4.tar.gz |
Added the GNATS package which was submitted in pkg/13330.
GNATS (GNU Problem Report Management System) is a problem tracking
system written to help report on, and track, problem reports or bugs.
Diffstat (limited to 'databases/gnats')
-rw-r--r-- | databases/gnats/Makefile | 70 | ||||
-rw-r--r-- | databases/gnats/distinfo | 7 | ||||
-rw-r--r-- | databases/gnats/patches/patch-aa | 31 | ||||
-rw-r--r-- | databases/gnats/patches/patch-ab | 22 | ||||
-rw-r--r-- | databases/gnats/patches/patch-ac | 13 | ||||
-rw-r--r-- | databases/gnats/pkg/DEINSTALL | 46 | ||||
-rw-r--r-- | databases/gnats/pkg/DESCR | 24 | ||||
-rw-r--r-- | databases/gnats/pkg/INSTALL | 40 | ||||
-rw-r--r-- | databases/gnats/pkg/MESSAGE | 10 | ||||
-rw-r--r-- | databases/gnats/pkg/PLIST | 84 |
10 files changed, 347 insertions, 0 deletions
diff --git a/databases/gnats/Makefile b/databases/gnats/Makefile new file mode 100644 index 00000000000..72df5bbd2eb --- /dev/null +++ b/databases/gnats/Makefile @@ -0,0 +1,70 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ + +DISTNAME= gnats-3.113.1 +CATEGORIES= devel +MASTER_SITES= ftp://ftp.freesoftware.com/pub/sourceware/gnats/snapshots/ \ + ftp://mirrors.rcn.net/pub/sourceware/gnats/snapshots/ \ + ftp://sunsite.org.uk/Mirrors/sourceware.cygnus.com/pub/gnats/snapshots/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://sourceware.cygnus.com/gnats/ +COMMENT= Cygnus GNATS bug tracking system + +BUILD_DEPENDS+= m4-*:../../devel/m4 + +.if exists(/usr/sbin/user) +ADDUSER= /usr/sbin/useradd +ADDGROUP= /usr/sbin/groupadd +.else +DEPENDS+= user>=20000313:../../sysutils/user +ADDUSER= ${LOCALBASE}/sbin/useradd +ADDGROUP= ${LOCALBASE}/sbin/groupadd +.endif + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-lispdir=${PREFIX}/share/emacs/site-lisp \ + --with-full-gnats \ + --with-release-based +USE_GMAKE= yes +USE_BISON= yes + +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +INSTALL_SUBST+= PREFIX="${PREFIX}" +INSTALL_SUBST+= USER="gnats" +INSTALL_SUBST+= GROUP="daemon" +INSTALL_SUBST+= ADDUSER="${ADDUSER:Q}" +INSTALL_SUBST+= ADDGROUP="${ADDGROUP:Q}" +INSTALL_SUBST+= ID="${ID:Q}" +INSTALL_SUBST+= CAT="${CAT:Q}" +INSTALL_SUBST+= MKDIR="${MKDIR:Q}" +INSTALL_SUBST+= RMDIR="${RMDIR:Q}" +INSTALL_SUBST_SED= ${INSTALL_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} + +MESSAGE_SUBST+= PREFIX="${PREFIX}" + +# this stops the configuration program from pulling installation +# information in from the standard NetBSD send-pr program +CONFIGURE_ENV= SEND_PR=/dev/null + +# the gnats distribution comes with a lot of baggage we don't want to install +# just install gnats +INSTALL_TARGET= install-gnats install-send-pr + +post-build: + (cd ${WRKSRC}/gnats; ${MAKE} info) + (cd ${WRKSRC}/send-pr; ${MAKE} info) + +pre-install: + ${SED} ${INSTALL_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} ${INSTALL_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE} + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL + +post-install: + (cd ${WRKSRC}/gnats; ${MAKE} install-info) + (cd ${WRKSRC}/send-pr; ${MAKE} install-info) + install-info ${PREFIX}/info/gnats.info ${PREFIX}/info/dir + install-info ${PREFIX}/info/send-pr.info ${PREFIX}/info/dir + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/gnats/distinfo b/databases/gnats/distinfo new file mode 100644 index 00000000000..7222d03b675 --- /dev/null +++ b/databases/gnats/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ + +SHA1 (gnats-3.113.1.tar.gz) = ad4dbafae3e643c61dbcacb721a1e11a803c67aa +Size (gnats-3.113.1.tar.gz) = 1120985 bytes +SHA1 (patch-aa) = f9fda77cd1d7bd3fc320ce70c258ed199201cd6f +SHA1 (patch-ab) = 6a4a870fe949f3897405ecf6a514b55d0ba7f8ac +SHA1 (patch-ac) = a31e14d97ff797ee1934612091e86da9aed60832 diff --git a/databases/gnats/patches/patch-aa b/databases/gnats/patches/patch-aa new file mode 100644 index 00000000000..bf7fa9b8ed1 --- /dev/null +++ b/databases/gnats/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ + +--- Makefile.in.orig Thu Nov 5 11:54:07 1998 ++++ Makefile.in Fri Jan 21 10:04:50 2000 +@@ -68,7 +68,7 @@ + HOST_PREFIX_1 = loser- + + # These flag values are normally overridden by the configure script. +-CFLAGS = -g ++CFLAGS+= -g + CXXFLAGS = -g -O2 + + LIBCFLAGS = $(CFLAGS) +@@ -121,7 +121,7 @@ + + M4 = `if [ -f $$r/m4/m4 ] ; \ + then echo $$r/m4/m4 ; \ +- else echo m4 ; fi` ++ else echo gm4 ; fi` + + MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \ + then echo $$r/texinfo/makeinfo/makeinfo ; \ +@@ -313,7 +313,7 @@ + "AR_FLAGS=$(AR_FLAGS)" \ + "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ + "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ +- "BISON=$(BISON)" \ ++ "BISON=$(YACC)" \ + "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ + "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ + "CFLAGS=$(CFLAGS)" \ diff --git a/databases/gnats/patches/patch-ab b/databases/gnats/patches/patch-ab new file mode 100644 index 00000000000..719a3007744 --- /dev/null +++ b/databases/gnats/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ + +--- gnats/Makefile.in.orig Tue Sep 21 16:18:39 1999 ++++ gnats/Makefile.in Fri Jan 21 10:06:19 2000 +@@ -465,7 +465,7 @@ + + getdate.c: getdate.y + @echo expect 10 shift/reduce conflicts +- $(BISON) $(srcdir)/getdate.y -o getdate.c ++ $(BISON) -o getdate.c $(srcdir)/getdate.y + + config-send-pr: + @if [ ! -d ../send-pr ]; then \ +@@ -496,7 +496,7 @@ + echo "*** Warning: Must chown $(GNATS_USER) $(datadir)/gnats" ; \ + fi + $(INSTALL_DATA) gnats.el $(lispdir)/gnats.el +- test -f gnats.elc && $(INSTALL_DATA) gnats.elc $(lispdir)/gnats.elc ++# test -f gnats.elc && $(INSTALL_DATA) gnats.elc $(lispdir)/gnats.elc + + install-tools-bin: all-tools + $(INSTALL_PROGRAM) query-pr $(bindir)/query-pr diff --git a/databases/gnats/patches/patch-ac b/databases/gnats/patches/patch-ac new file mode 100644 index 00000000000..c039c32d004 --- /dev/null +++ b/databases/gnats/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ + +--- libiberty/strerror.c.orig Thu Jun 28 10:32:06 2001 ++++ libiberty/strerror.c Thu Jun 28 10:34:12 2001 +@@ -7,6 +7,8 @@ + + #include "config.h" + ++#undef NEED_sys_errlist ++ + #ifndef NEED_sys_errlist + /* Note that errno.h (not sure what OS) or stdio.h (BSD 4.4, at least) + might declare sys_errlist in a way that the compiler might consider diff --git a/databases/gnats/pkg/DEINSTALL b/databases/gnats/pkg/DEINSTALL new file mode 100644 index 00000000000..98b5ce73bb7 --- /dev/null +++ b/databases/gnats/pkg/DEINSTALL @@ -0,0 +1,46 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ +# + +PKGNAME=$1 +STAGE=$2 + +PREFIX="@PREFIX@" +USER="@USER@" +GROUP="@GROUP@" +CAT="@CAT@" +RMDIR="@RMDIR@" + +case ${STAGE} in +DEINSTALL) + ;; + +POST-DEINSTALL) + ${CAT} << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want to remove: + + * the \`${USER}' user +EOF + + ${RMDIR} ${PREFIX}/share/gnats/gnats-db 2> /dev/null + if [ -e ${PREFIX}/share/gnats/gnats-db ]; then + ${CAT} << EOF + + * the databases in ${PREFIX}/share/gnats/gnats-db/ +EOF + fi + + ${RMDIR} ${PREFIX}/share/gnats 2> /dev/null + ${CAT} << EOF +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/databases/gnats/pkg/DESCR b/databases/gnats/pkg/DESCR new file mode 100644 index 00000000000..f342f8c6ba0 --- /dev/null +++ b/databases/gnats/pkg/DESCR @@ -0,0 +1,24 @@ + GNATS - GNU Problem Report Management System + +This directory contains GNATS, a problem tracking system written to +help report on, and track, problem reports or bugs. GNATS is currently +in use at Cygnus to help track all incoming bug reports. There are +many concepts or approaches to GNATS which are only useful to +organizations which track bugs related by customers as well as by bug +type. + +You will want to add a user entry to your /etc/passwd file for the user-id +that owns gnats-related databases on your server. Something of the form: + + gnats:*:61:61:GNATS database owner:/usr/pkg/share/gnats/gnats-db:/bin/sh + +should do just fine (put it in your ftpusers file!). Then add the following +line to /etc/inetd.conf and restart inetd: + + support stream tcp nowait gnats /usr/pkg/libexec/gnats/gnatsd gnatsd + +Add something like this into the crontab to process incoming bug reports: + + */5 * * * * /usr/pkg/libexec/gnats/queue-pr -r + +Don't forget to run /usr/pkg/libexec/gnats/mkcat as gnats. diff --git a/databases/gnats/pkg/INSTALL b/databases/gnats/pkg/INSTALL new file mode 100644 index 00000000000..2bf679f4ce0 --- /dev/null +++ b/databases/gnats/pkg/INSTALL @@ -0,0 +1,40 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ +# + +PKGNAME=$1 +STAGE=$2 + +USER="@USER@" +GROUP="@GROUP@" + +PREFIX="@PREFIX@" +ADDUSER="@ADDUSER@" +ADDGROUP="@ADDGROUP@" +ID="@ID@" +MKDIR="@MKDIR@" + +case ${STAGE} in +PRE-INSTALL) + ${ID} ${USER} >/dev/null 2>&1 + if [ $? -eq 0 ]; then + echo "User '${USER}' already exists...proceeding." + else + echo "Creating '${USER}' user..." + ${MKDIR} ${PREFIX}/share/gnats/gnats-db + ${ADDUSER} -c "GNATS database owner" -g ${GROUP} -s /bin/sh \ + -d ${PREFIX}/share/gnats/gnats-db ${USER} + echo "Done." + fi + ;; + +POST-INSTALL) + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/databases/gnats/pkg/MESSAGE b/databases/gnats/pkg/MESSAGE new file mode 100644 index 00000000000..a7127783c10 --- /dev/null +++ b/databases/gnats/pkg/MESSAGE @@ -0,0 +1,10 @@ +See http://sourceware.cygnus.com/gnats/ for the official web page +and don't forget to run ${PREFIX}/libexec/gnats/mkcat as gnats. + +Add the following line to /etc/inetd.conf to activate GNATS: + + support stream tcp nowait gnats ${PREFIX}/libexec/gnats/gnatsd gnatsd + +Add something like this into the crontab to process incoming bug reports: + + */5 * * * * ${PREFIX}/libexec/gnats/queue-pr -r diff --git a/databases/gnats/pkg/PLIST b/databases/gnats/pkg/PLIST new file mode 100644 index 00000000000..2eaf2034f5c --- /dev/null +++ b/databases/gnats/pkg/PLIST @@ -0,0 +1,84 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/11 11:42:26 martti Exp $ +bin/edit-pr +bin/getclose +bin/install-sid +bin/nedit-pr +bin/nquery-pr +bin/query-pr +bin/send-pr +bin/sub-type +@unexec install-info --delete %D/info/gnats.info %D/info/dir +@unexec install-info --delete %D/info/send-pr.info %D/info/dir +info/gnats.info +info/gnats.info-1 +info/gnats.info-2 +info/gnats.info-3 +info/gnats.info-4 +info/send-pr.info +@exec install-info %D/info/gnats.info %D/info/dir +@exec install-info %D/info/send-pr.info %D/info/dir +libexec/gnats/at-pr +libexec/gnats/check-db +libexec/gnats/delete-pr +libexec/gnats/file-pr +libexec/gnats/gen-index +libexec/gnats/gnats-edit-pr +libexec/gnats/gnatsd +libexec/gnats/mail-query +libexec/gnats/mkcat +libexec/gnats/mkdist +libexec/gnats/npr-addr +libexec/gnats/npr-edit +libexec/gnats/pr-addr +libexec/gnats/pr-age +libexec/gnats/pr-edit +libexec/gnats/pr-mail +libexec/gnats/queue-pr +libexec/gnats/rmcat +man/man1/edit-pr.1 +man/man1/query-pr.1 +man/man1/send-pr.1 +man/man7/gnats.7 +man/man8/mkcat.8 +man/man8/mkdist.8 +man/man8/queue-pr.8 +man/man8/file-pr.8 +man/man8/rmcat.8 +man/man8/gen-index.8 +share/emacs/site-lisp/gnats.el +share/emacs/site-lisp/send-pr.el +share/gnats/cygnus +share/gnats/dist/COPYING +share/gnats/dist/INSTALL +share/gnats/dist/MANIFEST +share/gnats/dist/README +share/gnats/dist/categ.texi +share/gnats/dist/fields.texi +share/gnats/dist/install-sid.sh +share/gnats/dist/s-usage.texi +share/gnats/dist/send-pr-el.in +share/gnats/dist/send-pr.1 +share/gnats/dist/send-pr.info +share/gnats/dist/send-pr.sh +share/gnats/dist/send-pr.texi +share/gnats/dist/states.texi +share/gnats/dist/texinfo.tex +share/gnats/dist/version.texi +share/gnats/gnats-db/gnats-adm/addresses +share/gnats/gnats-db/gnats-adm/categories +share/gnats/gnats-db/gnats-adm/classes +share/gnats/gnats-db/gnats-adm/config +share/gnats/gnats-db/gnats-adm/gnatsd.access +share/gnats/gnats-db/gnats-adm/gnatsd.conf +share/gnats/gnats-db/gnats-adm/responsible +share/gnats/gnats-db/gnats-adm/states +share/gnats/gnats-db/gnats-adm/submitters +@exec mkdir %D/share/gnats/gnats-db/gnats-queue +@exec mkdir %D/share/gnats/gnats-db/pending +@exec chown gnats %D/share/gnats/gnats-db %D/share/gnats/gnats-db/gnats-adm %D/share/gnats/gnats-db/gnats-adm/locks %D/share/gnats/gnats-db/pending %D/share/gnats/gnats-db/gnats-queue +@dirrm libexec/gnats +@dirrm share/gnats/gnats-db/gnats-adm/locks +@dirrm share/gnats/gnats-db/gnats-adm +@dirrm share/gnats/gnats-db/gnats-queue +@dirrm share/gnats/gnats-db/pending +@dirrm share/gnats/dist |