diff options
author | agc <agc@pkgsrc.org> | 2001-02-01 12:31:43 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-02-01 12:31:43 +0000 |
commit | c1669922c71c404b0e42b7ca4b21e89e2c7819a7 (patch) | |
tree | e779b9368cd06b7f4e478c470406ebdc8bfcafaf /pkgtools/pkgsurvey | |
parent | a6a576bb2c729b325f3bf9bc3c99de80d152f7fc (diff) | |
download | pkgsrc-c1669922c71c404b0e42b7ca4b21e89e2c7819a7.tar.gz |
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.
Diffstat (limited to 'pkgtools/pkgsurvey')
-rw-r--r-- | pkgtools/pkgsurvey/Makefile | 24 | ||||
-rw-r--r-- | pkgtools/pkgsurvey/files/pkgsurvey.sh | 5 | ||||
-rw-r--r-- | pkgtools/pkgsurvey/pkg/COMMENT | 1 | ||||
-rw-r--r-- | pkgtools/pkgsurvey/pkg/DESCR | 19 | ||||
-rw-r--r-- | pkgtools/pkgsurvey/pkg/MESSAGE | 11 | ||||
-rw-r--r-- | pkgtools/pkgsurvey/pkg/PLIST | 2 |
6 files changed, 62 insertions, 0 deletions
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 |