Sun Apr 8 16:58:05 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.

This does not actually fix the build on MirBSD (it needs some more
work in the configure), it is at least a start.


(bsiegert)
diff -r1.68 -r1.69 pkgsrc/net/ntp4/Makefile

cvs diff -r1.68 -r1.69 pkgsrc/net/ntp4/Makefile (expand / switch to unified diff)

--- pkgsrc/net/ntp4/Makefile 2011/11/16 08:23:49 1.68
+++ pkgsrc/net/ntp4/Makefile 2012/04/08 16:58:05 1.69
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.68 2011/11/16 08:23:49 sbd Exp $ 1# $NetBSD: Makefile,v 1.69 2012/04/08 16:58:05 bsiegert Exp $
2# 2#
3 3
4DISTNAME= ntp-4.2.4p8 4DISTNAME= ntp-4.2.4p8
5PKGREVISION= 2 5PKGREVISION= 2
6CATEGORIES= net time 6CATEGORIES= net time
7MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ 7MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.ntp.org/ 10HOMEPAGE= http://www.ntp.org/
11COMMENT= Network Time Protocol Version 4 11COMMENT= Network Time Protocol Version 4
12 12
13PKG_INSTALLATION_TYPES= overwrite pkgviews 13PKG_INSTALLATION_TYPES= overwrite pkgviews
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
@@ -19,26 +19,28 @@ GNU_CONFIGURE= YES @@ -19,26 +19,28 @@ GNU_CONFIGURE= YES
19USE_LIBTOOL= YES 19USE_LIBTOOL= YES
20USE_TOOLS+= pax perl:run 20USE_TOOLS+= pax perl:run
21 21
22CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR} 22CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR}
23CONFIGURE_ENV+= PATH_PERL=${PERL5} 23CONFIGURE_ENV+= PATH_PERL=${PERL5}
24 24
25DOCDIR= ${DESTDIR}${PREFIX}/share/doc/ntp4 25DOCDIR= ${DESTDIR}${PREFIX}/share/doc/ntp4
26EXAMPLESDIR= ${DESTDIR}${PREFIX}/share/examples/ntp4 26EXAMPLESDIR= ${DESTDIR}${PREFIX}/share/examples/ntp4
27ALL_NTP_DOCS= ${DOCDIR} ${EXAMPLESDIR} 27ALL_NTP_DOCS= ${DOCDIR} ${EXAMPLESDIR}
28 28
29RCD_SCRIPTS= ntpd ntpdate 29RCD_SCRIPTS= ntpd ntpdate
30 30
31post-install: 31post-install:
 32 ${MKDIR} ${DOCDIR}
 33 ${MKDIR} ${EXAMPLESDIR}
32 cd ${WRKSRC}/html && pax -rw -pm . ${DOCDIR} 34 cd ${WRKSRC}/html && pax -rw -pm . ${DOCDIR}
33 cd ${WRKSRC}/conf && pax -rw -pm . ${EXAMPLESDIR} 35 cd ${WRKSRC}/conf && pax -rw -pm . ${EXAMPLESDIR}
34 ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ALL_NTP_DOCS} 36 ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ALL_NTP_DOCS}
35 ${FIND} ${ALL_NTP_DOCS} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE} 37 ${FIND} ${ALL_NTP_DOCS} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
36 ${FIND} ${ALL_NTP_DOCS} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE} 38 ${FIND} ${ALL_NTP_DOCS} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
37 39
38.include "../../mk/bsd.prefs.mk" 40.include "../../mk/bsd.prefs.mk"
39.include "options.mk" 41.include "options.mk"
40 42
41PLIST_VARS+= ntptime tickadj timetrim 43PLIST_VARS+= ntptime tickadj timetrim
42 44
43.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux" 45.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux"
44PLIST.ntptime= yes 46PLIST.ntptime= yes