Subject: Re: package into /usr/pkgsrc/packages.${MACHINE_ARCH} if ${OBJMACHINE}
To: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-pkg
Date: 12/05/1999 16:08:49
So for this, you have to set PKGRELEASE in /etc/mk.conf. Shy not juset set
PACKAGES directly, avoiding that variable? I don't see much gain here.


 - Hubert

On Sun, 5 Dec 1999, Bill Sommerfeld wrote:

> > On Sat, 4 Dec 1999, Bill Sommerfeld wrote:
> > > Anyone got a better idea?
> > 
> > See appendix B(?) of Packages.txt and ftp.netbsd.org.
> 
> Ok... 
> 
> How about this change, then:
> 
> RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
> retrieving revision 1.374
> diff -u -r1.374 bsd.pkg.mk
> --- bsd.pkg.mk  1999/11/30 04:17:58     1.374
> +++ bsd.pkg.mk  1999/12/05 14:31:01
> @@ -68,7 +68,15 @@
>  PKGSRCDIR=             ${.CURDIR:C|/[^/]*/[^/]*$||}
>  DISTDIR?=              ${PKGSRCDIR}/distfiles
>  _DISTDIR?=             ${DISTDIR}/${DIST_SUBDIR}
> -PACKAGES?=             ${PKGSRCDIR}/packages
> +PKGDESTDIR?=           ${PKGSRCDIR}
> +.if defined(PKGRELEASE)
> +PKGOSREV!=             uname -r
> +PACKAGES?=             ${PKGDESTDIR}/packages/${PKGOSREV}/${MACHINE_ARCH}
> +.elif defined(OBJMACHINE)
> +PACKAGES?=             ${PKGDESTDIR}/packages.${MACHINE_ARCH}
> +.else
> +PACKAGES?=             ${PKGDESTDIR}/packages
> +.endif
>  TEMPLATES?=            ${PKGSRCDIR}/templates
>  
>  PATCHDIR?=             ${.CURDIR}/patches
> 
> 					- Bill
> 

-- 
NetBSD - Better for your uptime than Viagra