1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

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>
This commit is contained in:
Dag-Erling Smørgrav 2003-09-20 13:16:46 +00:00
parent 497c13571f
commit 0ff9b555dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89076
9 changed files with 188 additions and 0 deletions

View File

@ -36,6 +36,7 @@
SUBDIR += gigabase
SUBDIR += gmysql
SUBDIR += gnats
SUBDIR += gnats4
SUBDIR += gnomedb
SUBDIR += gqlplus
SUBDIR += grass

67
databases/gnats4/Makefile Normal file
View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (gnats-4.0.tar.gz) = 3bf0d3336b976549553c64ac4bc15f75

View File

@ -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 ; \

View File

@ -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=

View File

@ -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

View File

@ -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

View File

@ -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
************************************************************

View File

@ -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