pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Check explicitly if the distfile exists early and mark...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f785a5132d8
branches:  trunk
changeset: 571359:4f785a5132d8
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 11 15:16:18 2010 +0000

description:
Check explicitly if the distfile exists early and mark as broken for
bulk builds.

diffstat:

 archivers/sapcar/Makefile  |  6 +++++-
 devel/sapnwrfcsdk/Makefile |  6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r a9990949848d -r 4f785a5132d8 archivers/sapcar/Makefile
--- a/archivers/sapcar/Makefile Thu Feb 11 15:04:25 2010 +0000
+++ b/archivers/sapcar/Makefile Thu Feb 11 15:16:18 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/10/11 15:33:41 sno Exp $
+# $NetBSD: Makefile,v 1.4 2010/02/11 15:16:18 joerg Exp $
 
 PKGNAME=               sapcar-7.00
 CATEGORIES=            archivers
@@ -62,6 +62,10 @@
 COMMENT=               SAP archiver
 LICENSE=               sap-license
 
+.if !exists(DOWNLOADED_DISTFILE) && make(pbulk-index)
+PKG_FAIL_REASON+=      "Missing distfile"
+.endif
+
 RESTRICTED=            Only unmodified original package can be distributed
 NO_BIN_ON_CDROM=       ${RESTRICTED}
 NO_BIN_ON_FTP=         ${RESTRICTED}
diff -r a9990949848d -r 4f785a5132d8 devel/sapnwrfcsdk/Makefile
--- a/devel/sapnwrfcsdk/Makefile        Thu Feb 11 15:04:25 2010 +0000
+++ b/devel/sapnwrfcsdk/Makefile        Thu Feb 11 15:16:18 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/10/11 15:33:27 sno Exp $
+# $NetBSD: Makefile,v 1.4 2010/02/11 15:16:18 joerg Exp $
 
 PKGNAME=               sapnwrfcsdk-7.11
 CATEGORIES=            devel
@@ -61,6 +61,10 @@
 BROKEN=                Platform ${OPSYS} not supported
 .endif
 
+.if !exists(DOWNLOADED_DISTFILE) && make(pbulk-index)
+PKG_FAIL_REASON+=      "Missing distfile"
+.endif
+
 EXTRACT_CMD=           SAPCAR -xvf ${DOWNLOADED_DISTFILE}
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost



Home | Main Index | Thread Index | Old Index