ports/106373: sysutils/bsdstats periodic script uses /usr/bin/nc which is not a part of base system on FreeBSD 4x
George L. Yermulnik
yz at yz.kiev.ua
Tue Dec 5 12:50:21 UTC 2006
>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 at 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 at 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:
More information about the freebsd-ports-bugs
mailing list