From nobody@FreeBSD.org  Thu Apr  1 03:42:33 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E3C12106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Apr 2010 03:42:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D22998FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Apr 2010 03:42:33 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o313gXaX061328
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 1 Apr 2010 03:42:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o313gXoQ061327;
	Thu, 1 Apr 2010 03:42:33 GMT
	(envelope-from nobody)
Message-Id: <201004010342.o313gXoQ061327@www.freebsd.org>
Date: Thu, 1 Apr 2010 03:42:33 GMT
From: Svyatoslav Lempert <svyatoslav.lempert@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] ftp/proftpd: need create directory /var/run/proftpd/ for proftpd.scoreboard
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         145253
>Category:       ports
>Synopsis:       [patch] ftp/proftpd: need create directory /var/run/proftpd/ for proftpd.scoreboard
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 01 03:50:02 UTC 2010
>Closed-Date:    Thu Apr 08 15:07:35 UTC 2010
>Last-Modified:  Thu Apr 08 15:07:35 UTC 2010
>Originator:     Svyatoslav Lempert
>Release:        8.0-STABLE
>Organization:
>Environment:
>Description:
Proftpd can not be started because directory /var/run/proftpd/ does not exist

# /usr/local/etc/rc.d/proftpd start
Starting proftpd.
 - Fatal: ScoreboardFile: : unable to use '/var/run/proftpd/proftpd.scoreboard': No such file or directory on line 13 of '/usr/local/etc/proftpd.conf'
/usr/local/etc/rc.d/proftpd: WARNING: failed to start proftpd

>How-To-Repeat:

>Fix:
This patch fix this problem

Patch attached with submission follows:

diff -rn -U 1 proftpd.old/Makefile proftpd/Makefile
--- proftpd.old/Makefile	2010-04-01 03:20:22.000000000 +0000
+++ proftpd/Makefile	2010-04-01 03:32:42.000000000 +0000
@@ -399,2 +399,3 @@
 	@cd  ${PREFIX}/etc/ && ${CP} -n proftpd.conf.sample proftpd.conf
+	@mkdir -p /var/run/proftpd
 .if defined(WITH_SFTP)
diff -rn -U 1 proftpd.old/pkg-plist proftpd/pkg-plist
--- proftpd.old/pkg-plist	2010-04-01 03:20:22.000000000 +0000
+++ proftpd/pkg-plist	2010-04-01 03:38:01.000000000 +0000
@@ -8,2 +8,3 @@
 etc/proftpd.conf.sample
+@unexec rm -rf /var/run/proftpd
 @exec cp -n %D/%F %B/proftpd.conf


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mm 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Apr 1 03:50:13 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145253 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/145253: commit references a PR
Date: Thu,  8 Apr 2010 14:59:42 +0000 (UTC)

 mm          2010-04-08 14:59:28 UTC
 
   FreeBSD ports repository
 
   Modified files:
     ftp/proftpd          Makefile pkg-plist 
   Added files:
     ftp/proftpd/files    patch-contrib-mod_ban.c 
                          patch-contrib-mod_sftp-scp.c 
                          patch-contrib-mod_tls.c patch-src-inet.c 
   Log:
   - Create ${localstatedir}/run/proftpd on install [1]
   - Add patches for FreeBSD 8 and 9 [2]
   - Bump PORTREVISION
   
   PR:             ports/145253 [1]
   Submitted by:   Svyatoslav Lempert <svyatoslav.lempert@gmail.com> [1]
   Reported by:    Gunnar Beutner <gunnar.beutner@hetzner.de> [2]
   
   Revision  Changes    Path
   1.174     +7 -1      ports/ftp/proftpd/Makefile
   1.1       +10 -0     ports/ftp/proftpd/files/patch-contrib-mod_ban.c (new)
   1.1       +11 -0     ports/ftp/proftpd/files/patch-contrib-mod_sftp-scp.c (new)
   1.1       +10 -0     ports/ftp/proftpd/files/patch-contrib-mod_tls.c (new)
   1.1       +22 -0     ports/ftp/proftpd/files/patch-src-inet.c (new)
   1.30      +2 -1      ports/ftp/proftpd/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: mm 
State-Changed-When: Thu Apr 8 15:07:34 UTC 2010 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145253 
>Unformatted:
