Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2003 12:35:44 -0600 (CST)
From:      Kirk Strauser <kirk@strauser.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48059: Nitpicks for the comms/qpage port
Message-ID:  <200302071835.h17IZiot069023@kanga.honeypot.net>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302071835.h17IZiot069023>