ports/145723: [patch] ftp/proftpd utils can't locate scoreboard file
Bogdan Potishuk
bogdan at phoenix-lab.com
Thu Apr 15 14:00:11 UTC 2010
>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
- at exec mkdir %%LOCALSTATEDIR%%/proftpd
+ at exec mkdir %%LOCALSTATEDIR%%
include/proftpd/auth.h
@@ -106,2 +106,2 @@
@dirrmtry lib/proftpd
- at unexec rmdir %%LOCALSTATEDIR%%/proftpd 2>/dev/null || true
+ at unexec rmdir %%LOCALSTATEDIR%% 2>/dev/null || true
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list