Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Nov 2013 23:06:50 +0100
From:      Matthias Andree <mandree@FreeBSD.org>
To:        Olli Hauer <ohauer@FreeBSD.org>, ports-committers@freebsd.org,  svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r332914 - in head/www/apache22: . files
Message-ID:  <52796BFA.4000106@FreeBSD.org>
In-Reply-To: <201311052200.rA5M08P5057668@svn.freebsd.org>
References:  <201311052200.rA5M08P5057668@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 05.11.2013 23:00, schrieb Olli Hauer:
> Author: ohauer
> Date: Tue Nov  5 22:00:07 2013
> New Revision: 332914
> URL: http://svnweb.freebsd.org/changeset/ports/332914
> 
> Log:
...

>   - fix package installation with old pkg tools (create empty
>     folders in pkg-plist even staging is enabled)
> Modified: head/www/apache22/pkg-plist
> ==============================================================================
> --- head/www/apache22/pkg-plist	Tue Nov  5 21:57:16 2013	(r332913)
> +++ head/www/apache22/pkg-plist	Tue Nov  5 22:00:07 2013	(r332914)
> @@ -1,4 +1,8 @@
>  @comment $FreeBSD$
> +@comment keep the next three lines on top (only required for old pkg_... tools)
> +@exec mkdir -p %D/%%ETCDIR%%/envvars.d 2> /dev/null || true
> +@exec mkdir -p %D/%%ETCDIR%%/extra 2> /dev/null || true
> +@exec mkdir -p %D/%%ETCDIR%%/Includes 2> /dev/null || true

This should probably just be @exec mkdir -p %D/%%ETCDIR%%/whatever.

mkdir -p silently skips existing directories, and if the destination is
not a directory, you neither want to discard the error message nor let
the installation pass with a much less obvious failing cp (as before).





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