From owner-freebsd-ports-bugs Fri Feb 7 10:40:14 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3344037B401 for ; Fri, 7 Feb 2003 10:40:11 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79F5243FE0 for ; Fri, 7 Feb 2003 10:40:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h17Ie9NS068434 for ; Fri, 7 Feb 2003 10:40:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h17Ie990068433; Fri, 7 Feb 2003 10:40:09 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E02AD37B401 for ; Fri, 7 Feb 2003 10:35:47 -0800 (PST) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAEAA43FAF for ; Fri, 7 Feb 2003 10:35:46 -0800 (PST) (envelope-from kirk@kanga.honeypot.net) Received: from kanga.honeypot.net (localhost [127.0.0.1]) by kanga.honeypot.net (8.12.6/8.12.6) with ESMTP id h17IZj3v069024 for ; Fri, 7 Feb 2003 12:35:45 -0600 (CST) (envelope-from kirk@kanga.honeypot.net) Received: (from kirk@localhost) by kanga.honeypot.net (8.12.6/8.12.6/Submit) id h17IZiot069023; Fri, 7 Feb 2003 12:35:44 -0600 (CST) (envelope-from kirk) Message-Id: <200302071835.h17IZiot069023@kanga.honeypot.net> Date: Fri, 7 Feb 2003 12:35:44 -0600 (CST) From: Kirk Strauser Reply-To: Kirk Strauser To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/48059: Nitpicks for the comms/qpage port Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48059 >Category: ports >Synopsis: Nitpicks for the comms/qpage port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 07 10:40:09 PST 2003 >Closed-Date: >Last-Modified: >Originator: Kirk Strauser >Release: FreeBSD 4.7-STABLE i386 >Organization: The Strauser Group >Environment: System: FreeBSD kanga.honeypot.net 4.7-STABLE FreeBSD 4.7-STABLE #1: Sun Dec 8 16:52:58 CST 2002 root@kanga.honeypot.net:/usr/obj/usr/src/sys/HONEYPOT_KANGA i386 >Description: The comms/qpage port has a few minor problems. A default installation gives the following errors when the /usr/local/etc/rc.d/qpage.sh script is execute: qpage[68438]: cannot open /etc/qpage.cf: No such file or directory qpage[68438]: cannot access LockDir(/var/spool/lock): Permission denied qpage[68438]: cannot access QueueDir(/var/spool/qpage): No such file or directory qpage[68438]: cannot chdir to QueueDir(/var/spool/qpage): No such file or directory In short: 1) qpage looks for its configuration file in /etc instead of /usr/local/etc 2) It setuid()'s to a user (daemon) without permission to access /var/spool/lock but does not document this anywhere outside of the source. 3) It's queue directory is not created by installing the port. >How-To-Repeat: portinstall comms/qpage >Fix: 1) Apply this patch (or something similar) to get qpage to look in /usr/local/etc . ######################################## diff -u qpage-3.3-old/config.h.in qpage-3.3/config.h.in --- qpage-3.3-old/config.h.in Sun Jul 26 14:38:35 1998 +++ qpage-3.3/config.h.in Fri Feb 7 12:31:54 2003 @@ -17,7 +17,7 @@ #undef SNPP_SERVER_FILE /* Define as the location of the qpage configuration file. */ -#define QPAGE_CONFIG "/etc/qpage.cf" +#define QPAGE_CONFIG "/usr/local/etc/qpage.cf" /* Define as the location of the lock directory. */ #undef DEFAULT_LOCKDIR diff -u qpage-3.3-old/config.input qpage-3.3/config.input --- qpage-3.3-old/config.input Thu Nov 5 00:05:36 1998 +++ qpage-3.3/config.input Fri Feb 7 12:31:02 2003 @@ -20,7 +20,7 @@ # See the QuickPage documentation for complete details about # the syntax of the configuration file. # -QPAGE_CONFIG="/etc/qpage.cf" +QPAGE_CONFIG="/usr/local/etc/qpage.cf" # @@ -41,7 +41,7 @@ # copies of the configuration file. Only one filename # may be specified. # -SNPP_SERVER_FILE="/etc/qpage.servers" +SNPP_SERVER_FILE="/usr/local/etc/qpage.servers" # diff -u qpage-3.3-old/qpage.man qpage-3.3/qpage.man --- qpage-3.3-old/qpage.man Sat May 8 17:07:31 1999 +++ qpage-3.3/qpage.man Fri Feb 7 12:31:29 2003 @@ -867,7 +867,7 @@ must be able to detect when it's safe to send dial commands to the modem. .LP .SH FILES -/etc/qpage.cf +/usr/local/etc/qpage.cf .SH SEE ALSO .B RFC-1861 .SH KNOWN BUGS diff -u qpage-3.3-old/qpage.ps qpage-3.3/qpage.ps --- qpage-3.3-old/qpage.ps Sat May 8 17:07:49 1999 +++ qpage-3.3/qpage.ps Fri Feb 7 12:32:21 2003 @@ -1312,7 +1312,7 @@ 9 B f (FILES)720 1368 w 10 R f -(/etc/qpage.cf)1080 1488 w +(/usr/local/etc/qpage.cf)1080 1488 w 9 B f (SEE ALSO)1 460 1 720 1656 t 10 B f ######################################## 2) Create a user for qpage and add it to the `dialer' group. 3) Create /var/spool/qpage with appropriate permissions (and delete it upon uninstalling). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message