From 63b2a76f649ce017accfc9b1cf9b0bffaeb6f1b1 Mon Sep 17 00:00:00 2001 From: agc Date: Thu, 1 Feb 2001 12:31:43 +0000 Subject: Initial import of pkgsurvey, a utility to feedback package usage information, when run, to the NetBSD pkgsrc people. There is a possibility that you may not want to divulge this information - in which case, you should consider deleting this package from your system (to ensure that no-one can run it). Information is only sent when pkgsurvey is invoked. The information gathered will not be divulged to anyone. It will be used for pkgsrc scheduling purposes. --- pkgtools/pkgsurvey/Makefile | 24 ++++++++++++++++++++++++ pkgtools/pkgsurvey/files/pkgsurvey.sh | 5 +++++ pkgtools/pkgsurvey/pkg/COMMENT | 1 + pkgtools/pkgsurvey/pkg/DESCR | 19 +++++++++++++++++++ pkgtools/pkgsurvey/pkg/MESSAGE | 11 +++++++++++ pkgtools/pkgsurvey/pkg/PLIST | 2 ++ 6 files changed, 62 insertions(+) create mode 100644 pkgtools/pkgsurvey/Makefile create mode 100644 pkgtools/pkgsurvey/files/pkgsurvey.sh create mode 100644 pkgtools/pkgsurvey/pkg/COMMENT create mode 100644 pkgtools/pkgsurvey/pkg/DESCR create mode 100644 pkgtools/pkgsurvey/pkg/MESSAGE create mode 100644 pkgtools/pkgsurvey/pkg/PLIST diff --git a/pkgtools/pkgsurvey/Makefile b/pkgtools/pkgsurvey/Makefile new file mode 100644 index 00000000000..d18be52a06e --- /dev/null +++ b/pkgtools/pkgsurvey/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/02/01 12:31:43 agc Exp $ +# + +DISTNAME= pkgsurvey-0.0 +CATEGORIES= pkgtools +MASTER_SITES= # empty +DISTFILES= # empty + +MAINTAINER= agc@pkgsrc.org + +WRKSRC= ${WRKDIR} +NO_CHECKSUM= yes +NO_PATCH= yes +NO_CONFIGURE= yes +NO_BUILD= yes +NO_MTREE= yes + +do-install: + ${SED} -e 's|\$${PKG_INFO}|${PKG_INFO}|' \ + -e 's|\$${UNAME}|${UNAME}|g' \ + ${FILESDIR}/pkgsurvey.sh > ${PREFIX}/bin/pkgsurvey + ${CHMOD} 755 ${PREFIX}/bin/pkgsurvey + +.include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/pkgsurvey/files/pkgsurvey.sh b/pkgtools/pkgsurvey/files/pkgsurvey.sh new file mode 100644 index 00000000000..455144c2e45 --- /dev/null +++ b/pkgtools/pkgsurvey/files/pkgsurvey.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +${PKG_INFO} | sort | mail -s "`hostname` `${UNAME} -s`-`${UNAME} -p`-`${UNAME} -r`" agc-pkgsurvey@pkgsrc.org + +exit 0 diff --git a/pkgtools/pkgsurvey/pkg/COMMENT b/pkgtools/pkgsurvey/pkg/COMMENT new file mode 100644 index 00000000000..88982081b3a --- /dev/null +++ b/pkgtools/pkgsurvey/pkg/COMMENT @@ -0,0 +1 @@ +utility to collate pkg information, and mail to central census site diff --git a/pkgtools/pkgsurvey/pkg/DESCR b/pkgtools/pkgsurvey/pkg/DESCR new file mode 100644 index 00000000000..ede22c4469c --- /dev/null +++ b/pkgtools/pkgsurvey/pkg/DESCR @@ -0,0 +1,19 @@ +pkgsurvey is a small utility to add the pkgsrc people at pkgsrc.org + +Information of currently-installed packages is taken from the current +machine, along with Operating System type, hardware architecture, and +operating system release version information, and mailed to a central +site. + +No information will be divulged to anyone - it is simply meant for use +by the pkgsrc people, for finding the most popular packages. + +If the idea of divulging package or operating system version +information is distasteful to you, or does not conform to your site's +policy, then please feel free to delete pkgsurvey from your system: +as root, type + + pkg_delete -v pkgsurvey + +Alistair G. Crooks +Thu Feb 1 07:48:48 GMT 2001 diff --git a/pkgtools/pkgsurvey/pkg/MESSAGE b/pkgtools/pkgsurvey/pkg/MESSAGE new file mode 100644 index 00000000000..9492f9cfdb8 --- /dev/null +++ b/pkgtools/pkgsurvey/pkg/MESSAGE @@ -0,0 +1,11 @@ +========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2001/02/01 12:31:43 agc Exp $ + +If the idea of divulging package or operating system version +information is distasteful to you, or does not conform to your site's +policy, then please feel free to delete pkgsurvey from your system: +as root, type + + pkg_delete -v pkgsurvey + +========================================================================== diff --git a/pkgtools/pkgsurvey/pkg/PLIST b/pkgtools/pkgsurvey/pkg/PLIST new file mode 100644 index 00000000000..06a3fb9fda7 --- /dev/null +++ b/pkgtools/pkgsurvey/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/01 12:31:43 agc Exp $ +bin/pkgsurvey -- cgit v1.2.3