Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2013 11:35:16 -0500 (EST)
From:      Nikolai Lifanov <lifanov@mail.lifanov.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/185300: ftp/vsftpd stage conversion broken
Message-ID:  <20131230163516.4AA931A79A6@mail.lifanov.com>
Resent-Message-ID: <201312301650.rBUGo0Go036505@freefall.freebsd.org>

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

>Number:         185300
>Category:       ports
>Synopsis:       ftp/vsftpd stage conversion broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 30 16:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Nikolai Lifanov
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD mail.lifanov.com 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
	The ftp/vsftpd port uses @exec, @unexec logic, which breaks packaging.

@exec mkdir -p %D/share/vsftpd/empty
@unexec if diff -q %D/etc/vsftpd.conf %D/etc/vsftpd.conf.dist; then rm %D/etc/vsftpd.conf; fi
etc/vsftpd.conf.dist
@exec if [ ! -f %B/vsftpd.conf ]; then cp %B/vsftpd.conf.dist %B/vsftpd.conf; fi
@exec if [ ! -d /var/ftp ]; then mkdir /var/ftp ; fi
@unexec rmdir /var/ftp 2>/dev/null || true
@dirrm share/vsftpd/empty
@dirrm share/vsftpd

>How-To-Repeat:
	With pkgng enabled:

	make -C /usr/ports/ftp/vsftpd package

>Fix:

	Create these directories in STAGEDIR in the Makefile instead.

>Release-Note:
>Audit-Trail:
>Unformatted:



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