diff options
author | joerg <joerg@pkgsrc.org> | 2015-05-10 19:47:03 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-05-10 19:47:03 +0000 |
commit | d064697df0534164956f75645825fc143be8f0f2 (patch) | |
tree | c97d4eb06efbe1f275f9ec60e9952e0d8faf4024 /pkgtools/pkgsurvey | |
parent | 8b3f8c2be63c73e537610b7ad77fbb95fc38d65c (diff) | |
download | pkgsrc-d064697df0534164956f75645825fc143be8f0f2.tar.gz |
pkgsurvey-1.0: Build the package list in a more useful format by
including package name, package location and automatic flag. Send to a
new list to keep the new format separate from the old one.
Diffstat (limited to 'pkgtools/pkgsurvey')
-rw-r--r-- | pkgtools/pkgsurvey/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkgsurvey/files/pkgsurvey.sh | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/pkgtools/pkgsurvey/Makefile b/pkgtools/pkgsurvey/Makefile index a19007cb7f5..bfc5af00aa3 100644 --- a/pkgtools/pkgsurvey/Makefile +++ b/pkgtools/pkgsurvey/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.13 2014/03/03 03:30:55 obache Exp $ +# $NetBSD: Makefile,v 1.14 2015/05/10 19:47:03 joerg Exp $ # -PKGNAME= pkgsurvey-0.0 +PKGNAME= pkgsurvey-1.0 CATEGORIES= pkgtools MAINTAINER= agc@pkgsrc.org diff --git a/pkgtools/pkgsurvey/files/pkgsurvey.sh b/pkgtools/pkgsurvey/files/pkgsurvey.sh index 455144c2e45..af33ece999d 100644 --- a/pkgtools/pkgsurvey/files/pkgsurvey.sh +++ b/pkgtools/pkgsurvey/files/pkgsurvey.sh @@ -1,5 +1,12 @@ #! /bin/sh -${PKG_INFO} | sort | mail -s "`hostname` `${UNAME} -s`-`${UNAME} -p`-`${UNAME} -r`" agc-pkgsurvey@pkgsrc.org +${PKG_INFO} -e '*' | while read pkg; do + path=`${PKG_INFO} -Q PKGPATH "$pkg"` + automatic=`${PKG_INFO} -Q automatic "$pkg"` + if [ -z "$automatic" ]; then + automatic=no + fi + echo "$path $pkg $automatic" +done | sort | mail -s "`hostname` `${UNAME} -s`-`${UNAME} -p`-`${UNAME} -r`" pkgsurvey1.0@pkgsrc.org exit 0 |