Bug 176625 - New Port: ports-mgmt/prhistory-sync-perl Sync GNATS PR db (ports) and create SQLite3 Summary for prhistory program
Summary: New Port: ports-mgmt/prhistory-sync-perl Sync GNATS PR db (ports) and create ...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-03 21:50 UTC by Waitman Gobble
Modified: 2014-06-06 05:10 UTC (History)
0 users

See Also:


Attachments
file.shar (3.66 KB, text/plain)
2013-03-03 21: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-03-03 21:50:00 UTC
This software contains two PERL5 scripts.

sync-gnats-ports.pl <DESTDIR>

This program uses rsync to mirror the FreeBSD GNATS PR database (ports only) to
<DESTDIR>. It sets a 'lock' file in /tmp so that it will not run multiple
simultaneous instances. You should probably add 'rm -f /tmp/pr-up-running'
to your /etc/rc.local to solve problems that may happen on power loss, or
reboot.

parse-gnats-ports.pl <DESTDIR>

This program parses summary information from the PR files and builds an
SQLite3 database for the ports-mgmt/prhistory port. The database file is
stored in /var/db/ports/ports-pr.db. Also it creates a file 
/var/db/ports/lastrun.txt
to remember the last update, so it will only operate on new information.
If you delete /var/db/ports/lastrun.txt it will cause the script to reparse all
PR files and rebuild the /var/db/ports/ports-pr.db file.

<DESTDIR>

This should be an existing path to store the PR files. (presently requires
approximately 1.5GB of storage space).

example:

> mkdir /b
> sync-gnats-ports.pl /b

Fix: thanks

Patch attached with submission follows:
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2014-06-06 05:10:46 UTC
I'm sorry we never got to this submission in time.  I suspect is now OBE.