pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/gnats update to gnats 4.2.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/84fddd806e22
branches: trunk
changeset: 650239:84fddd806e22
user: spz <spz%pkgsrc.org@localhost>
date: Sun Apr 19 19:35:00 2015 +0000
description:
update to gnats 4.2.0
upstream Changes highlights:
- GNU v3 license update
- Buid now uses automake, and code has been adjusted to compile
properly in various environments (tested with gcc 2.95, 3.4, 4.8,
4.9, clang 3.1, 3.4, and several different versions of Linux,
FreeBSD, Solaris, OS X)
- New --global-databases-file command-line option for gnatsd and other programs
- New host/port/user/passwd command-line options for send-pr
- Many bugfixes, including:
- FreeBSD-SA-05:20.cvsbug security advisory (affected send-pr)
- Fixed PR#484: "send-pr --request-id" sends just a template
- Fixed PR#501: Safer open/fopen for gen-index (no longer installing as suid)
- Fixed PR#504: gnatsd crashes when trying to lock a nonexistent PR
- Fixed PR#508: Emacs interface gnats-change-database fails when
gnats-port isn't set
- Fixed PR#691: Portability problem with sed and tr
- Fixed PR#746: install-sid is a bash script (and not /bin/sh)
- Fixed PR#767: edit-pr returns incorect exit status
- Fixed PR#768: make install DESTDIR=/anywhere fails
- Fixed PR#771: "EXPR" queries with spaces sometimes fail
- Fixed PR#773: using responsible alias as email address for edit-pr
- "invalid query format" bug for queries that included whitespace
- edit-pr will now correctly exit with an error if it cannot lock the PR
- edit-pr will now use the email alias in the responsibles field
- Solaris 7/8/10 compilation fixed
diffstat:
databases/gnats/Makefile | 5 +-
databases/gnats/PLIST | 5 +-
databases/gnats/distinfo | 24 +-
databases/gnats/patches/patch-aa | 238 ++++++++----------
databases/gnats/patches/patch-ab | 27 --
databases/gnats/patches/patch-ac | 13 -
databases/gnats/patches/patch-ad | 23 -
databases/gnats/patches/patch-ae | 23 -
databases/gnats/patches/patch-ah | 13 -
databases/gnats/patches/patch-configure | 15 +
databases/gnats/patches/patch-gnats_configure | 29 --
databases/gnats/patches/patch-gnats_ds-file_mkcat.sh | 15 +
databases/gnats/patches/patch-gnats_ds-file_mkdb.sh | 15 +
databases/gnats/patches/patch-gnats_ds-file_rmcat.sh | 25 +
databases/gnats/patches/patch-gnats_edit-pr.sh | 54 ++++
databases/gnats/patches/patch-gnats_gnats_h | 6 +-
databases/gnats/patches/patch-makefile_in | 77 ------
17 files changed, 245 insertions(+), 362 deletions(-)
diffs (truncated from 720 to 300 lines):
diff -r a4e15100b10a -r 84fddd806e22 databases/gnats/Makefile
--- a/databases/gnats/Makefile Sun Apr 19 19:33:58 2015 +0000
+++ b/databases/gnats/Makefile Sun Apr 19 19:35:00 2015 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.37 2014/02/08 15:38:44 wiedi Exp $
+# $NetBSD: Makefile,v 1.38 2015/04/19 19:35:00 spz Exp $
-DISTNAME= gnats-4.1.0
-PKGREVISION= 4
+DISTNAME= gnats-4.2.0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GNU:=gnats/}
diff -r a4e15100b10a -r 84fddd806e22 databases/gnats/PLIST
--- a/databases/gnats/PLIST Sun Apr 19 19:33:58 2015 +0000
+++ b/databases/gnats/PLIST Sun Apr 19 19:35:00 2015 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2009/06/14 17:43:15 joerg Exp $
+@comment $NetBSD: PLIST,v 1.13 2015/04/19 19:35:00 spz Exp $
bin/edit-pr
bin/getclose
bin/install-sid
@@ -11,6 +11,7 @@
libexec/gnats/delete-pr
libexec/gnats/diff-prs
libexec/gnats/file-pr
+libexec/gnats/gen-closed-date
libexec/gnats/gen-index
libexec/gnats/gnats-pwconv
libexec/gnats/gnatsd
@@ -27,6 +28,7 @@
man/man1/send-pr.1
man/man5/databases.5
man/man5/dbconfig.5
+man/man5/send-pr.conf.5
man/man7/gnats.7
man/man8/delete-pr.8
man/man8/file-pr.8
@@ -47,7 +49,6 @@
share/gnats/defaults/categories
share/gnats/defaults/classes
share/gnats/defaults/dbconfig
-share/gnats/defaults/gnatsd.user_access
share/gnats/defaults/responsible
share/gnats/defaults/states
share/gnats/defaults/submitters
diff -r a4e15100b10a -r 84fddd806e22 databases/gnats/distinfo
--- a/databases/gnats/distinfo Sun Apr 19 19:33:58 2015 +0000
+++ b/databases/gnats/distinfo Sun Apr 19 19:35:00 2015 +0000
@@ -1,14 +1,12 @@
-$NetBSD: distinfo,v 1.14 2013/12/01 23:27:11 bsiegert Exp $
+$NetBSD: distinfo,v 1.15 2015/04/19 19:35:00 spz Exp $
-SHA1 (gnats-4.1.0.tar.gz) = 7f8ce7fbb7594698c5ba71421cad3cbc7e079003
-RMD160 (gnats-4.1.0.tar.gz) = b16bfa3ffa4f1c7dc351d1c5639061c358c64afd
-Size (gnats-4.1.0.tar.gz) = 1221364 bytes
-SHA1 (patch-aa) = 46ee888dd1726d7c7178247dd8c11c3bc8790911
-SHA1 (patch-ab) = 605e0caaed659405fff46af6c610d52c9dca948e
-SHA1 (patch-ac) = f6fdd1c2353961d47bd0e58866b56ac6f0d6173a
-SHA1 (patch-ad) = ffacd88288036eb74eccd6687292c5a456e2f027
-SHA1 (patch-ae) = ff99ebd3f6d2d1aa75b32ead56db0082eeb69753
-SHA1 (patch-ah) = 1a21ef20bbc4a2e8ed2559687a2cd8983d1c3f5f
-SHA1 (patch-gnats_configure) = 6f7daa160a13bc05bb59a362f89f05044b1fedd9
-SHA1 (patch-gnats_gnats_h) = 08cb25700672bddda30075c9a7a01443afcd5199
-SHA1 (patch-makefile_in) = a32d9f3f93cb4ec9d82d4ce204a12cd43e7a88c0
+SHA1 (gnats-4.2.0.tar.gz) = 1f277bba896ee0941f3cd8b16788efd8f0f273cc
+RMD160 (gnats-4.2.0.tar.gz) = 4dc473a242f8047bbe547f7b38a820e48a74bf90
+Size (gnats-4.2.0.tar.gz) = 1264845 bytes
+SHA1 (patch-aa) = 484254c68f456cc78986af3cefaea6724c4eff81
+SHA1 (patch-configure) = e31b335643fa2b2cfbbdd11e299183b3e93ce59c
+SHA1 (patch-gnats_ds-file_mkcat.sh) = b3eff03ae12e9bf3e4e33c3fa8f6d62dbe9ec49c
+SHA1 (patch-gnats_ds-file_mkdb.sh) = 40dd8276d9e43cd48c7ef1011f84049c29670a79
+SHA1 (patch-gnats_ds-file_rmcat.sh) = 63eee5890e09311c0d986cff081b131f2d350d11
+SHA1 (patch-gnats_edit-pr.sh) = 7f7244975dd70d13714d48a14ec82ddc63cde7b3
+SHA1 (patch-gnats_gnats_h) = e6838f94a8f83551efc8808c9b7ba64f5b506f29
diff -r a4e15100b10a -r 84fddd806e22 databases/gnats/patches/patch-aa
--- a/databases/gnats/patches/patch-aa Sun Apr 19 19:33:58 2015 +0000
+++ b/databases/gnats/patches/patch-aa Sun Apr 19 19:35:00 2015 +0000
@@ -1,145 +1,111 @@
-$NetBSD: patch-aa,v 1.4 2005/08/28 12:36:42 recht Exp $
+$NetBSD: patch-aa,v 1.5 2015/04/19 19:35:00 spz Exp $
+
+pkgsrcification
---- gnats/Makefile.in.orig 2005-02-24 21:35:55.000000000 +0100
-+++ gnats/Makefile.in 2005-08-28 14:24:22.000000000 +0200
-@@ -93,7 +93,7 @@
+--- gnats/Makefile.in.orig 2015-02-27 02:10:23.000000000 +0000
++++ gnats/Makefile.in
+@@ -574,11 +574,10 @@ CLEANFILES = $(bin_SCRIPTS) $(pkglibexec
- INSTALL = $(srcdir)/../install-sh -c
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
--INSTALL_SCRIPT = @INSTALL_PROGRAM@
-+INSTALL_SCRIPT = @INSTALL_SCRIPT@
- INSTALL_DATA = @INSTALL_DATA@
- SUB_INSTALL = `echo $(INSTALL) | sed 's,^\([^/]\),../\1,'`
-@@ -250,7 +250,7 @@
+ # Data files
+-dist_pkgdata_DATA = addresses categories classes gnatsd.host_access \
+- gnatsd.user_access responsible states submitters \
+- databases send-pr.conf
++dist_pkgdata_DATA = addresses categories classes dbconfig \
++ responsible states submitters
- mkcat: mkcat.sh Makefile
- @echo Creating mkcat...
-- @cat $(srcdir)/mkcat.sh > $@-t
-+ @sed -e 's,xBINDIRx,$(bindir),g' $(srcdir)/mkcat.sh > $@-t
- @mv $@-t $@
- @chmod a+x $@
-
-@@ -265,7 +265,7 @@
+-pkgdata_DATA = dbconfig
++pkgdata_DATA = databases gnatsd.host_access gnatsd.user_access send-pr.conf
+ all: $(BUILT_SOURCES) autoconf.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
- rmcat: rmcat.sh Makefile
- @echo Creating rmcat...
-- @cat $(srcdir)/rmcat.sh > $@-t
-+ @sed -e 's,xBINDIRx,$(bindir),g' $(srcdir)/rmcat.sh > $@-t
- @mv $@-t $@
- @chmod a+x $@
-
-@@ -369,7 +369,7 @@
-
- install-tools-arch-indep: all-tools
- $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(datadir)/gnats
-- $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(sysconfdir)/gnats/defaults
-+ $(SHELL) $(srcdir)/../mkinstalldirs %%GNATS_DEFAULTS%%
- @if [ `whoami` = root -o `whoami` = $(GNATS_USER) ] ; then \
- echo "chown $(GNATS_USER) $(DESTDIR)$(datadir)/gnats" ; \
- chown $(GNATS_USER) $(DESTDIR)$(datadir)/gnats ; \
-@@ -379,9 +379,9 @@
- $(INSTALL_DATA) $(srcdir)/gnats.el $(DESTDIR)$(lispdir)/gnats.el
- for i in categories submitters responsible gnatsd.user_access addresses states classes dbconfig ; do \
- if [ -f "$$i" ] ; then \
-- $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir)/gnats/defaults/$$i ; \
-+ $(INSTALL_DATA) $$i %%GNATS_DEFAULTS%%/$$i ; \
- else \
-- $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/gnats/defaults/$$i ; \
-+ $(INSTALL_DATA) $(srcdir)/$$i %%GNATS_DEFAULTS%%/$$i ; \
- fi ; \
+@@ -881,18 +880,18 @@ distclean-compile:
+ $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE)
+ install-dist_lispDATA: $(dist_lisp_DATA)
+ @$(NORMAL_INSTALL)
+- @list='$(dist_lisp_DATA)'; test -n "$(lispdir)" || list=; \
++ @list='$(dist_lisp_DATA)'; test -n "%%GNATS_DEFAULTS%%" || list=; \
+ if test -n "$$list"; then \
+- echo " $(MKDIR_P) '$(DESTDIR)$(lispdir)'"; \
+- $(MKDIR_P) "$(DESTDIR)$(lispdir)" || exit 1; \
++ echo " $(MKDIR_P) '%%GNATS_DEFAULTS%%'"; \
++ $(MKDIR_P) "%%GNATS_DEFAULTS%%" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lispdir)'"; \
+- $(INSTALL_DATA) $$files "$(DESTDIR)$(lispdir)" || exit $$?; \
++ echo " $(INSTALL_DATA) $$files '%%GNATS_DEFAULTS%%/..'"; \
++ $(INSTALL_DATA) $$files "%%GNATS_DEFAULTS%%/.." || exit $$?; \
done
-@@ -391,17 +391,9 @@
- $(INSTALL_SCRIPT) edit-pr $(DESTDIR)$(bindir)/edit-pr
- $(INSTALL_SCRIPT) diff-prs $(DESTDIR)$(libexecdir)/gnats/diff-prs
- $(INSTALL_SCRIPT) mail-agent $(DESTDIR)$(libexecdir)/gnats/mail-agent
-- $(INSTALL_PROGRAM) file-pr $(DESTDIR)$(libexecdir)/gnats/file-pr
-+ $(INSTALL_SCRIPT) file-pr $(DESTDIR)$(libexecdir)/gnats/file-pr
- $(INSTALL_PROGRAM) pr-age $(DESTDIR)$(libexecdir)/gnats/pr-age
- $(INSTALL_PROGRAM) pr-edit $(DESTDIR)$(libexecdir)/gnats/pr-edit
-- @if [ `whoami` = root -o `whoami` = $(GNATS_USER) ] ; then \
-- echo "chown $(GNATS_USER) $(DESTDIR)$(libexecdir)/gnats/pr-edit" ; \
-- echo "chmod 4555 $(DESTDIR)$(libexecdir)/gnats/pr-edit" ; \
-- chown $(GNATS_USER) $(DESTDIR)$(libexecdir)/gnats/pr-edit ; \
-- chmod 4555 $(DESTDIR)$(libexecdir)/gnats/pr-edit ; \
-- else \
-- echo "*** Warning: Must make pr-edit suid $(DESTDIR)$(GNATS_USER)" ; \
-- fi
-
- EXTRA_INSTALL =
-
-@@ -409,29 +401,42 @@
- install-gnats-arch-dep: install-gnats-bin $(EXTRA_INSTALL)
+ uninstall-dist_lispDATA:
+@@ -902,18 +901,18 @@ uninstall-dist_lispDATA:
+ dir='$(DESTDIR)$(lispdir)'; $(am__uninstall_files_from_dir)
+ install-dist_pkgdataDATA: $(dist_pkgdata_DATA)
+ @$(NORMAL_INSTALL)
+- @list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
++ @list='$(dist_pkgdata_DATA)'; test -n "%%GNATS_DEFAULTS%%" || list=; \
+ if test -n "$$list"; then \
+- echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
+- $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
++ echo " $(MKDIR_P) '%%GNATS_DEFAULTS%%'"; \
++ $(MKDIR_P) "%%GNATS_DEFAULTS%%" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
+- $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
++ echo " $(INSTALL_DATA) $$files '%%GNATS_DEFAULTS%%'"; \
++ $(INSTALL_DATA) $$files "%%GNATS_DEFAULTS%%" || exit $$?; \
+ done
- install-gnats-arch-indep: all-gnats install-tools-arch-indep
-- @if [ -f $(DESTDIR)$(GLOBAL_DB_LIST_FILE) ]; then \
-- echo "Not putting gnats-databases file in $(DESTDIR)$(GLOBAL_DB_LIST_FILE), it's already there." ; \
-+ @if [ -f %%EGDIR%%/databases ]; then \
-+ echo "Not putting gnats-databases file in %%EGDIR%%/databases, it's already there." ; \
- true ; \
- else \
- if [ `whoami` = root -o `whoami` = $(GNATS_USER) ] ; then \
- $(INSTALL_DATA) -o $(GNATS_USER) gnats-databases \
-- $(DESTDIR)$(GLOBAL_DB_LIST_FILE) ; \
-+ %%EGDIR%%/databases ; \
- else \
-- $(INSTALL_DATA) gnats-databases $(DESTDIR)$(GLOBAL_DB_LIST_FILE) ; \
-- echo "*** Warning: Must chown $(GNATS_USER) $(DESTDIR)$(GLOBAL_DB_LIST_FILE)" ; \
-+ $(INSTALL_DATA) gnats-databases %%EGDIR%%/databases ; \
-+ echo "*** Warning: Must chown $(GNATS_USER) %%EGDIR%%/databases" ; \
- fi \
- fi
-- @if [ -f $(DESTDIR)$(GNATSD_HOST_ACCESS_FILE) ]; then \
-- echo "Not putting gnats.host_access file in $(DESTDIR)$(GNATSD_HOST_ACCESS_FILE), it's already there." ; \
-+ @if [ -f %%EGDIR%%/gnatsd.host_access ]; then \
-+ echo "Not putting gnats.host_access file in %%EGDIR%%/gnatsd.host_access, it's already there." ; \
- true ; \
- else \
- if [ `whoami` = root -o `whoami` = $(GNATS_USER) ] ; then \
- $(INSTALL_DATA) -o $(GNATS_USER) $(srcdir)/gnatsd.host_access \
-- $(DESTDIR)$(GNATSD_HOST_ACCESS_FILE) ; \
-+ %%EGDIR%%/gnatsd.host_access ; \
- else \
- $(INSTALL_DATA) $(srcdir)/gnatsd.host_access \
-- $(DESTDIR)$(GNATSD_HOST_ACCESS_FILE) ; \
-- echo "*** Warning: Must chown $(GNATS_USER) $(DESTDIR)$(GNATSD_HOST_ACCESS_FILE)" ; \
-+ %%EGDIR%%/gnatsd.host_access ; \
-+ echo "*** Warning: Must chown $(GNATS_USER) %%EGDIR%%/gnatsd.host_access" ; \
-+ fi \
-+ fi
-+ @if [ -f %%EGDIR%%/gnatsd.user_access ]; then \
-+ echo "Not putting gnats.user_access file in %%EGDIR%%/gnatsd.user_access, it's already there." ; \
-+ true ; \
-+ else \
-+ if [ `whoami` = root -o `whoami` = $(GNATS_USER) ] ; then \
-+ $(INSTALL_DATA) -o $(GNATS_USER) $(srcdir)/gnatsd.user_access \
-+ %%EGDIR%%/gnatsd.user_access ; \
-+ else \
-+ $(INSTALL_DATA) $(srcdir)/gnatsd.user_access \
-+ %%EGDIR%%/gnatsd.user_access ; \
-+ echo "*** Warning: Must chown $(GNATS_USER) %%EGDIR%%/gnatsd.user_access" ; \
- fi \
- fi
- @echo "*** If you're a first-time user, you'll want to create a new database";
-@@ -450,20 +455,6 @@
- $(INSTALL_PROGRAM) gen-index $(DESTDIR)$(libexecdir)/gnats/gen-index
- $(INSTALL_SCRIPT) mail-query $(DESTDIR)$(libexecdir)/gnats/mail-query
- $(INSTALL_PROGRAM) gnats-pwconv $(DESTDIR)$(libexecdir)/gnats/gnats-pwconv
-- @if [ `whoami` = root -o `whoami` = $(GNATS_USER) ] ; then \
-- echo "chown $(GNATS_USER) $(DESTDIR)$(libexecdir)/gnats/queue-pr $(DESTDIR)$(libexecdir)/gnats/file-pr $(DESTDIR)$(libexecdir)/gnats/gen-index" ; \
-- echo "chmod 4555 $(DESTDIR)$(libexecdir)/gnats/queue-pr $(DESTDIR)$(libexecdir)/gnats/file-pr $(DESTDIR)$(libexecdir)/gnats/gen-index" ; \
-- echo "chown $(GNATS_USER) $(DESTDIR)$(libexecdir)/gnats/gnatsd" ; \
-- echo "chmod 555 $(DESTDIR)$(libexecdir)/gnats/gnatsd" ; \
-- chown $(GNATS_USER) $(DESTDIR)$(libexecdir)/gnats/queue-pr ; \
-- chown $(GNATS_USER) $(DESTDIR)$(libexecdir)/gnats/gen-index ; \
-- chmod 4555 $(DESTDIR)$(libexecdir)/gnats/queue-pr ; \
-- chmod 4555 $(DESTDIR)$(libexecdir)/gnats/gen-index ; \
-- chown $(GNATS_USER) $(DESTDIR)$(libexecdir)/gnats/gnatsd ; \
-- chmod 555 $(DESTDIR)$(libexecdir)/gnats/gnatsd ; \
-- else \
-- echo "*** Warning: must make queue-pr and gen-index suid $(GNATS_USER)." ; \
-- fi
+ uninstall-dist_pkgdataDATA:
+@@ -925,16 +924,16 @@ install-pkgdataDATA: $(pkgdata_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
+ if test -n "$$list"; then \
+- echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
+- $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
++ echo " $(MKDIR_P) '%%EGDIR%%"; \
++ $(MKDIR_P) "%%EGDIR%%" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
+- $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
++ echo " $(INSTALL_DATA) $$files '%%EGDIR%%"; \
++ $(INSTALL_DATA) $$files "%%EGDIR%%" || exit $$?; \
Home |
Main Index |
Thread Index |
Old Index