Sun Apr 8 16:44:40 2012 UTC ()
POSIX says that the target directory for "pax -rw" must exist. The pax
implementation in MirBSD enforces this.
Use ${MKDIR} to create the target directory before running pax.
Unbreaks things like firefox-l10n and friends on MirBSD.


(bsiegert)
diff -r1.1 -r1.2 pkgsrc/devel/xulrunner/xpi.mk

cvs diff -r1.1 -r1.2 pkgsrc/devel/xulrunner/Attic/xpi.mk (expand / switch to unified diff)

--- pkgsrc/devel/xulrunner/Attic/xpi.mk 2010/04/22 17:06:19 1.1
+++ pkgsrc/devel/xulrunner/Attic/xpi.mk 2012/04/08 16:44:40 1.2
@@ -1,24 +1,25 @@ @@ -1,24 +1,25 @@
1# $NetBSD: xpi.mk,v 1.1 2010/04/22 17:06:19 tnn Exp $ 1# $NetBSD: xpi.mk,v 1.2 2012/04/08 16:44:40 bsiegert Exp $
2# 2#
3# common logic for repackaging mozilla extensions (.xpi files) 3# common logic for repackaging mozilla extensions (.xpi files)
4# Used by the {firefox,seamonkey,thunderbird}-l10n packages. 4# Used by the {firefox,seamonkey,thunderbird}-l10n packages.
5 5
6USE_TOOLS+= unzip pax 6USE_TOOLS+= unzip pax
7 7
8post-extract: extract-xpi 8post-extract: extract-xpi
9 9
10.PHONY: extract-xpi 10.PHONY: extract-xpi
11extract-xpi: 11extract-xpi:
12.for f in ${XPI_FILES} 12.for f in ${XPI_FILES}
13 @${MKDIR} ${WRKDIR}/${f:S/.xpi//} && cd ${WRKDIR}/${f:S/.xpi//} && ${UNZIP_CMD} -aqo "${WRKDIR}/${f}" 13 @${MKDIR} ${WRKDIR}/${f:S/.xpi//} && cd ${WRKDIR}/${f:S/.xpi//} && ${UNZIP_CMD} -aqo "${WRKDIR}/${f}"
14.endfor 14.endfor
15 15
16do-install: install-xpi 16do-install: install-xpi
17 17
18.PHONY: install-xpi 18.PHONY: install-xpi
19install-xpi: 19install-xpi:
20.for f in ${XPI_FILES} 20.for f in ${XPI_FILES}
21 id=$$(${AWK} '/em:id=/ {sub("^.*em:id=\"", "");sub("\".*$$","");print $$0}' < ${WRKDIR}/${f:S/.xpi//}/install.rdf); \ 21 id=$$(${AWK} '/em:id=/ {sub("^.*em:id=\"", "");sub("\".*$$","");print $$0}' < ${WRKDIR}/${f:S/.xpi//}/install.rdf); \
 22 ${MKDIR} ${DESTDIR}${EXTENSIONS_DIR}/$${id} && \
22 cd ${WRKDIR}/${f:S/.xpi//} && \ 23 cd ${WRKDIR}/${f:S/.xpi//} && \
23 pax -rw . ${DESTDIR}${EXTENSIONS_DIR}/$${id} 24 pax -rw . ${DESTDIR}${EXTENSIONS_DIR}/$${id}
24.endfor 25.endfor