Date: Tue, 5 Dec 2006 12:44:22 GMT From: "George L. Yermulnik"<yz@yz.kiev.ua> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/106373: sysutils/bsdstats periodic script uses /usr/bin/nc which is not a part of base system on FreeBSD 4x Message-ID: <200612051244.kB5CiMgk041413@www.freebsd.org> Resent-Message-ID: <200612051250.kB5Co6NE035592@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 106373 >Category: ports >Synopsis: sysutils/bsdstats periodic script uses /usr/bin/nc which is not a part of base system on FreeBSD 4x >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 05 12:50:05 GMT 2006 >Closed-Date: >Last-Modified: >Originator: George L. Yermulnik >Release: 4.11-STABLE >Organization: >Environment: FreeBSD yz.iptelecom.net.ua 4.11-STABLE FreeBSD 4.11-STABLE #66: Thu Oct 19 19:13:39 EEST 2006 root@yz.iptelecom.net.ua:/usr/src/sys/compile/YZ i386 >Description: sysutils/bsdstats periodic script uses /usr/bin/nc which is not a part of base system on FreeBSD 4x and is installed from a port to /usr/local/bin/nc So on FreeBSD 4x the port sysutils/bsdstats should depend on net/netcat >How-To-Repeat: Install sysutils/bsdstats on FreeBSD 4x and run /usr/local/etc/periodic/monthly/300.statistics - you'll se an error: --- cut --- /usr/local/etc/periodic/monthly/300.statistics: /usr/bin/nc: not found --- cut --- >Fix: --- Makefile.orig Tue Dec 5 14:39:32 2006 +++ Makefile Tue Dec 5 14:41:47 2006 @@ -13,6 +13,8 @@ MAINTAINER= scrappy@freebsd.org COMMENT= Monthly script for reporting anonymous statistics about your machine +RUN_DEPENDS= nc:${PORTSDIR}/net/netcat + NO_BUILD= yes PLIST_FILES= etc/periodic/monthly/300.statistics PLIST_DIRS= etc/periodic/monthly \ --- 300.statistics.orig Tue Dec 5 14:42:48 2006 +++ 300.statistics Tue Dec 5 14:43:37 2006 @@ -181,7 +181,7 @@ Content-Length: ${string_length} token=${TOKEN}&key=${KEY}${query_string}" | \ - /usr/local/bin/nc $nc_host $nc_port | \ + nc $nc_host $nc_port | \ grep STATUS= | { local IFS IFS='= >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612051244.kB5CiMgk041413>