Date: Thu, 15 Apr 2010 13:56:01 GMT From: Bogdan Potishuk <bogdan@phoenix-lab.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/145723: [patch] ftp/proftpd utils can't locate scoreboard file Message-ID: <201004151356.o3FDu1P9094878@www.freebsd.org> Resent-Message-ID: <201004151400.o3FE0832010131@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 145723 >Category: ports >Synopsis: [patch] ftp/proftpd utils can't locate scoreboard file >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 15 14:00:07 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Bogdan Potishuk >Release: 8.0-RELEASE-p2 amd64 >Organization: Phoenix Lab. >Environment: >Description: ftp/proftpd utils (ftpwho, ftpcount,...) trying search scoreboard file in default LOCALSTATEDIR location (/var/run). But default proftpd.scoreboard location in configuration file is /var/run/proftpd/proftpd.scoreboard. Thus utils have not work correctly without -f option explicitly using. >How-To-Repeat: Launch any proftpd util. For example: $ /usr/local/bin/ftpwho >Fix: Set LOCALSTATEDIR variable in Makefile to /var/run/proftpd. Patch attached with submission follows: diff -rn -U 1 /usr/ports/ftp/proftpd.orig/Makefile /usr/ports/ftp/proftpd/Makefile --- /usr/ports/ftp/proftpd.orig/Makefile 2010-04-15 15:47:46.000000000 +0300 +++ /usr/ports/ftp/proftpd/Makefile 2010-04-15 16:09:37.000000000 +0300 @@ -45,3 +45,3 @@ -LOCALSTATEDIR?= /var/run +LOCALSTATEDIR?= /var/run/proftpd @@ -404,3 +404,2 @@ @cd ${PREFIX}/etc/ && ${CP} -n proftpd.conf.sample proftpd.conf - @${MKDIR} ${LOCALSTATEDIR}/proftpd .if defined(WITH_SFTP) diff -rn -U 1 /usr/ports/ftp/proftpd.orig/pkg-plist /usr/ports/ftp/proftpd/pkg-plist --- /usr/ports/ftp/proftpd.orig/pkg-plist 2010-04-08 17:59:28.000000000 +0300 +++ /usr/ports/ftp/proftpd/pkg-plist 2010-04-15 15:51:41.000000000 +0300 @@ -14,3 +14,3 @@ %%SFTP%%@exec cp -n %D/%F %B/blacklist.dat -@exec mkdir %%LOCALSTATEDIR%%/proftpd +@exec mkdir %%LOCALSTATEDIR%% include/proftpd/auth.h @@ -106,2 +106,2 @@ @dirrmtry lib/proftpd -@unexec rmdir %%LOCALSTATEDIR%%/proftpd 2>/dev/null || true +@unexec rmdir %%LOCALSTATEDIR%% 2>/dev/null || true >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004151356.o3FDu1P9094878>