Bug 175627 - New Port: ports-mgmt/prhistory Query tool for PR that match ports
Summary: New Port: ports-mgmt/prhistory Query tool for PR that match ports
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jason Helfman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-27 10:50 UTC by Waitman Gobble
Modified: 2013-03-02 02:00 UTC (History)
0 users

See Also:


Attachments
file.shar (1.87 KB, text/plain)
2013-01-27 10:50 UTC, Waitman Gobble
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Waitman Gobble 2013-01-27 10:50:00 UTC
This program searches the GNATS database for all PR corresponding to a port. The user can get a list of PR for the port by changing to the path of the port and typing `prhistory`, or they may type `prhistory` and specify <portname>. The PR summary database is stored in an SQLite3 database in /var/db/ports, and can be updated by using the `-u` option of the command. 

Examples:

1) within a port path:
# cd /usr/ports/lang/perl5.16
# prhistory

2) anywhere, specifying the port
# prhistory perl

3) display the PR from the GNATS database.
# prhistory -p 123456

For more information please see the man page (7)

Thank you,

Fix: Patch attached with submission follows:
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2013-01-27 19:46:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-01 19:06:10 UTC
Author: jgh
Date: Fri Mar  1 19:06:01 2013
New Revision: 313161
URL: http://svnweb.freebsd.org/changeset/ports/313161

Log:
  - add new port: ports-mgmt/prhistory
  
  prhistory shows PR from the FreeBSD GNATS database corresponding
  to a port. Show a summary view of all PR related to a port and
  request an individual PR by number.
  
  WWW: https://github.com/waitman/prhistory
  
  PR:		175627
  Submitted by:	uzimac@da3m0n8t3r.com

Added:
  head/ports-mgmt/prhistory/
  head/ports-mgmt/prhistory/Makefile   (contents, props changed)
  head/ports-mgmt/prhistory/distinfo   (contents, props changed)
  head/ports-mgmt/prhistory/files/
  head/ports-mgmt/prhistory/files/pkg-message.in   (contents, props changed)
  head/ports-mgmt/prhistory/pkg-descr   (contents, props changed)
  head/ports-mgmt/prhistory/pkg-plist   (contents, props changed)
Modified:
  head/ports-mgmt/Makefile   (contents, props changed)

Modified: head/ports-mgmt/Makefile
==============================================================================
--- head/ports-mgmt/Makefile	Fri Mar  1 18:55:56 2013	(r313160)
+++ head/ports-mgmt/Makefile	Fri Mar  1 19:06:01 2013	(r313161)
@@ -75,6 +75,7 @@
     SUBDIR += portupgrade-devel
     SUBDIR += poudriere
     SUBDIR += poudriere-devel
+    SUBDIR += prhistory
     SUBDIR += psearch
     SUBDIR += pver
     SUBDIR += qtpkg

Added: head/ports-mgmt/prhistory/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/prhistory/Makefile	Fri Mar  1 19:06:01 2013	(r313161)
@@ -0,0 +1,39 @@
+# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
+# $FreeBSD$
+
+PORTNAME=	prhistory
+PORTVERSION=	1.0
+CATEGORIES=	ports-mgmt
+MASTER_SITES=	GH
+
+MAINTAINER=	waitman@waitman.net
+COMMENT=	PR review for ports
+
+LICENSE=	PRHISTORY
+LICENSE_NAME=	PRHISTORY BSD LICENSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+LICENSE_PERMS=	${_LICENSE_PERMS_DEFAULT}
+
+LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl \
+		sqlite3:${PORTSDIR}/databases/sqlite3
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	waitman
+GH_TAGNAME=	master
+GH_COMMIT=	9113c59
+
+MAN7=	prhistory.7
+
+SUB_FILES=	pkg-message
+PORTDOCS=	*
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+	@${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>

Added: head/ports-mgmt/prhistory/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/prhistory/distinfo	Fri Mar  1 19:06:01 2013	(r313161)
@@ -0,0 +1,2 @@
+SHA256 (prhistory-1.0.tar.gz) = eb3e02a91a7b0c9dae96dd77706029d91e91fbad1cec4faf4b67825e6b5e1788
+SIZE (prhistory-1.0.tar.gz) = 4237

Added: head/ports-mgmt/prhistory/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/prhistory/files/pkg-message.in	Fri Mar  1 19:06:01 2013	(r313161)
@@ -0,0 +1,24 @@
+************************************************************************
+
+NOTICE
+
+prhistory has been installed as %%PREFIX%%/bin/prhistory
+
+In order to download the pr (ports only) database, 
+run the following command:
+# prhistory -u
+
+WARNING
+
+This command will download an SQLite db file to 
+/var/db/ports/ports-pr.db
+
+The remote file ports-pr.db is updated at most once per hour.
+
+MORE INFORMATION
+
+To create your own ports-pr.db see the notes at the following URL:
+https://dx.burplex.com/bin/prhistory.html
+
+************************************************************************
+

Added: head/ports-mgmt/prhistory/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/prhistory/pkg-descr	Fri Mar  1 19:06:01 2013	(r313161)
@@ -0,0 +1,5 @@
+prhistory shows PR from the FreeBSD GNATS database corresponding
+to a port. Show a summary view of all PR related to a port and 
+request an individual PR by number.
+
+WWW: https://github.com/waitman/prhistory

Added: head/ports-mgmt/prhistory/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/prhistory/pkg-plist	Fri Mar  1 19:06:01 2013	(r313161)
@@ -0,0 +1,2 @@
+bin/prhistory
+@unexec echo "NOTICE: If you are permanently removing this utility, you may wish to delete the database file /var/db/ports/ports-pr.db"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Jason Helfman freebsd_committer freebsd_triage 2013-03-01 19:07:24 UTC
State Changed
From-To: open->closed

New port added, with minor changes. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-03-02 01:56:10 UTC
Author: jgh (ports committer)
Date: Sat Mar  2 01:56:02 2013
New Revision: 41070
URL: http://svnweb.freebsd.org/changeset/doc/41070

Log:
  - add Waitman Gobble for ports-mgmt/prhistory
  
  PR:		175627

Modified:
  head/en_US.ISO8859-1/articles/contributors/contrib.additional.xml

Modified: head/en_US.ISO8859-1/articles/contributors/contrib.additional.xml
==============================================================================
--- head/en_US.ISO8859-1/articles/contributors/contrib.additional.xml	Fri Mar  1 19:58:25 2013	(r41069)
+++ head/en_US.ISO8859-1/articles/contributors/contrib.additional.xml	Sat Mar  2 01:56:02 2013	(r41070)
@@ -10709,6 +10709,11 @@
     </listitem>
 
     <listitem>
+      <para>Waitman Gobble
+	<email>waitman@waitman.net</email></para>
+    </listitem>
+
+    <listitem>
       <para>Walt Howard
 	<email>howard@ee.utah.edu</email></para>
     </listitem>
_______________________________________________
svn-doc-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "svn-doc-all-unsubscribe@freebsd.org"