Subject: Re: pkgsrc survey
To: Michael Parson <mparson@bl.org>
From: Stefan Sperling <stsp@stsp.in-berlin.de>
List: netbsd-users
Date: 10/05/2005 21:58:18
On Wed, Oct 05, 2005 at 02:42:17PM -0500, Michael Parson wrote:
> On Tue, Oct 04, 2005 at 09:42:43PM -0600, Tillman Hodgson wrote:
> > On Tue, Oct 04, 2005 at 02:14:26PM -0700, Jeremy C. Reed wrote:
> >> Please consider installing pkgsrc/pkgtools/pkgsurvey and running it.
> >>
> >> It will email your hostname, your operating system processor and version, 
> >> and list of your installed packages to an email alias setup by a member of 
> >> the pkgsrc Project Management Committee.
> >
> > I gave it a try on 3 hosts this evening. All three had their email
> > bounced, an example of which follows:
> 
> Agreed, I've got a couple of boxes I'm not willing to set up sendmail on
> for sending mail out.  An option for this to output to a file or even
> stdout for moving to a better-connected host & emailed from there would
> allow me to submit data from at least two more machines in my personal
> setup, probably more with others.

UTSL. It's really not that difficult ;)

pkgsurvey is just a one-line shell script:

  #! /bin/sh

  /usr/sbin/pkg_info -K /var/db/pkg | sort | mail -s "`hostname` \
     `/usr/bin/uname -s`-`/usr/bin/uname -p`-`/usr/bin/uname -r`" \
     agc-pkgsurvey@pkgsrc.org

  exit 0

You can simply cut and paste the commands to glue together a suitable mail.

I sent mine with mutt and I still got a nice "thank you for participating"
reply from Mr. Alistair Crooks. Well worth it :)
-- 
stefan
http://stsp.in-berlin.de                                 PGP Key: 0xF59D25F0