Subject: Re: XFree86 packages question...
To: Juan RP <juan@xtraeme.unixbsd.org>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 01/24/2004 09:54:38
On Sat, Jan 24, 2004 at 09:05:43AM +0100, Juan RP wrote:
>
> --- bsd.pkg.mk	2004/01/23 17:55:17	1.1354
> +++ bsd.pkg.mk	2004/01/24 08:00:24
> @@ -1383,7 +1383,15 @@
>  PKG_FAIL_REASON+= "${PKGNAME} may not be built, because it utilizes strong
> cryptography" .    endif
>  .  endif
> -.  if defined(USE_X11) && !exists(${X11BASE})
> +.  if defined(USE_X11) && !empty(USE_PKGSRC_XFREE86:M[Yy][Ee][Ss])
> +DEPENDS+=   XFree86-libs>=4.3.0:../../x11/XFree86-libs
> +.  endif
> +.  if defined(USE_X11) && !exists(${X11BASE}) &&
> empty(USE_PKGSRC_XFREE86:M[Yy][Ee][Ss])
> +    @${MKDIR} ${X11BASE}
> +    @${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${X11BASE}
> +    @${CHMOD} ${PKGDIRMODE} ${X11BASE}

Will this work if you are not root?  Please... do not work w/ pkgsrc as root,
so you can detect problems like this one.

If the directory *MUST* be there, find another solution.  For example, a
package that creates it beforehand.

-- 
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/