Subject: Re: package into /usr/pkgsrc/packages.${MACHINE_ARCH} if ${OBJMACHINE} set?
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: tech-pkg
Date: 12/05/1999 09:32:06
> 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