Re: sysutils/bsdststs

2015-01-01 Thread A.J. Kehoe IV (Nanoman)

Paul Schmehl wrote:

I got my monthly report and noticed that a number of ports were corrupt.

pkg_info: the package info for package 'OpenSP-1.5.2_2' is corrupt
pkg_info: the package info for package 'apache22-2.2.27_2' is corrupt
pkg_info: the package info for package 'autoconf-2.69' is corrupt

My ports are fine according to %pkg info.

Why is bsdstats still using the old ports utilities?  Is it going to be
updated?


pkg support was added to the FreeBSD BSDstats port in 2012:

http://svnweb.freebsd.org/ports/head/sysutils/bsdstats/files/300.statistics.in?r1=300897r2=301654pathrev=301654

If the file /var/db/pkg/local.sqlite exists on your system, BSDstats should try 
to use pkg as expected.  Checking for this file was the method recommended in 
2012 by the pkgng IRC channel, but I'm not sure if this method has since been 
replaced by something else.

The LEGACY section was intended for backward compatibility with pkg_* tools.  Given 
that there are still two supported FreeBSD releases (8.4-RELEASE and 9.3-RELEASE) that come with 
pkg_* tools, I think the LEGACY section should remain until support ends for both of 
these releases.

--
A.J. Kehoe IV (Nanoman) |  /\  ASCII Ribbon Campaign
Nanoman's Company   |  \ /   - No HTML/RTF in E-mail
E-mail: nano...@nanoman.ca  |   X- No proprietary attachments
WWW: http://www.nanoman.ca/ |  / \   - Respect for open standards


smime.p7s
Description: S/MIME cryptographic signature


sysutils/bsdststs

2015-01-01 Thread Paul Schmehl

I got my monthly report and noticed that a number of ports were corrupt.

pkg_info: the package info for package 'OpenSP-1.5.2_2' is corrupt
pkg_info: the package info for package 'apache22-2.2.27_2' is corrupt
pkg_info: the package info for package 'autoconf-2.69' is corrupt

My ports are fine according to %pkg info.

Why is bsdstats still using the old ports utilities?  Is it going to be 
updated?


Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: sysutils/bsdststs

2015-01-01 Thread A.J. Kehoe IV (Nanoman)

Paul Schmehl wrote:

--On January 1, 2015 at 3:32:19 PM -0500 A.J. Kehoe IV (Nanoman)
nano...@nanoman.ca wrote:


Paul Schmehl wrote:

I got my monthly report and noticed that a number of ports were corrupt.

pkg_info: the package info for package 'OpenSP-1.5.2_2' is corrupt
pkg_info: the package info for package 'apache22-2.2.27_2' is corrupt
pkg_info: the package info for package 'autoconf-2.69' is corrupt

My ports are fine according to %pkg info.

Why is bsdstats still using the old ports utilities?  Is it going to be
updated?


pkg support was added to the FreeBSD BSDstats port in 2012:

http://svnweb.freebsd.org/ports/head/sysutils/bsdstats/files/300.statisti
cs.in?r1=300897r2=301654pathrev=301654

If the file /var/db/pkg/local.sqlite exists on your system, BSDstats
should try to use pkg as expected.


It does.
# ls -lsa /var/db/pkg/local.sqlite
15696 -rw-r--r--  1 root  wheel  16044032 Jan  1 19:13
/var/db/pkg/local.sqlite

Maybe there's a logic flaw?


That's possible, but it seems pretty simple:

-BEGIN SUMMARY-
if [ -e /var/db/pkg/local.sqlite ]; then
echo pkg
else
echo pkg_* tools
fi
-END SUMMARY-

Are you using bsdstats-5.3_3 or later?  bsdstats-5.5_5 is the current port 
version.

$ pkg info -E bsdstats
bsdstats-5.5_5

Was it /usr/local/etc/periodic/monthly/300.statistics that gave the package 
corruption errors?

# /usr/local/etc/periodic/monthly/300.statistics -nodelay
Posting monthly OS statistics to rpt.bsdstats.org

--
A.J. Kehoe IV (Nanoman) |  /\  ASCII Ribbon Campaign
Nanoman's Company   |  \ /   - No HTML/RTF in E-mail
E-mail: nano...@nanoman.ca  |   X- No proprietary attachments
WWW: http://www.nanoman.ca/ |  / \   - Respect for open standards


smime.p7s
Description: S/MIME cryptographic signature


Re: sysutils/bsdststs

2015-01-01 Thread Paul Schmehl
--On January 1, 2015 at 3:32:19 PM -0500 A.J. Kehoe IV (Nanoman) 
nano...@nanoman.ca wrote:



Paul Schmehl wrote:

I got my monthly report and noticed that a number of ports were corrupt.

pkg_info: the package info for package 'OpenSP-1.5.2_2' is corrupt
pkg_info: the package info for package 'apache22-2.2.27_2' is corrupt
pkg_info: the package info for package 'autoconf-2.69' is corrupt

My ports are fine according to %pkg info.

Why is bsdstats still using the old ports utilities?  Is it going to be
updated?


pkg support was added to the FreeBSD BSDstats port in 2012:

http://svnweb.freebsd.org/ports/head/sysutils/bsdstats/files/300.statisti
cs.in?r1=300897r2=301654pathrev=301654

If the file /var/db/pkg/local.sqlite exists on your system, BSDstats
should try to use pkg as expected.


It does.
# ls -lsa /var/db/pkg/local.sqlite
15696 -rw-r--r--  1 root  wheel  16044032 Jan  1 19:13 
/var/db/pkg/local.sqlite


Maybe there's a logic flaw?

Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead. Thomas Jefferson
There are some ideas so wrong that only a very
intelligent person could believe in them. George Orwell

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org