2010-07-23 23:19:40 +02:00
|
|
|
# $NetBSD: Makefile,v 1.62 2010/07/23 21:19:40 joerg Exp $
|
2007-06-19 21:49:55 +02:00
|
|
|
|
2010-07-23 23:19:40 +02:00
|
|
|
DISTNAME= pbulk-0.48
|
2007-06-19 21:49:55 +02:00
|
|
|
COMMENT= Modular bulk build framework
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2009-06-07 20:07:00 +02:00
|
|
|
.include "../../pkgtools/pbulk/Makefile.common"
|
2008-04-18 08:30:47 +02:00
|
|
|
|
2009-06-08 18:02:52 +02:00
|
|
|
USE_TOOLS+= awk:run bzip2:run digest:run gzip:run make:run \
|
2009-06-07 20:07:00 +02:00
|
|
|
mail:run sed:run tar:run
|
2007-06-19 21:49:55 +02:00
|
|
|
DEPENDS+= rsync-[0-9]*:../../net/rsync
|
2009-06-07 20:07:00 +02:00
|
|
|
DEPENDS+= pbulk-base>=0.38:../../pkgtools/pbulk-base
|
2007-06-19 21:49:55 +02:00
|
|
|
|
2008-01-15 22:43:31 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD" && ${MAKE} == "/usr/bin/make"
|
|
|
|
TARGET_MAKE= ${MAKE}
|
|
|
|
.else
|
|
|
|
TARGET_MAKE= $${prefix}/bin/bmake
|
|
|
|
.endif
|
|
|
|
|
|
|
|
NEATO= ${PREFIX}/bin/neato
|
|
|
|
|
2007-08-05 14:30:10 +02:00
|
|
|
SUBST_CLASSES+= tools
|
|
|
|
SUBST_STAGE.tools= post-patch
|
2007-06-19 21:49:55 +02:00
|
|
|
SUBST_MESSAGE.tools= Fixing references to tools
|
|
|
|
SUBST_FILES.tools= pbulk.conf scripts/build scripts/build-client-start \
|
2008-04-04 19:58:59 +02:00
|
|
|
scripts/bulkbuild scripts/bulkbuild-rebuild scripts/bulkbuild-restart \
|
|
|
|
scripts/client-clean \
|
2007-06-19 21:49:55 +02:00
|
|
|
scripts/pkg-build scripts/pkg-up-to-date scripts/pre-build \
|
|
|
|
scripts/report scripts/scan scripts/scan-client-start scripts/upload \
|
|
|
|
scripts/compute-packages.awk scripts/create-broken-graph.awk \
|
|
|
|
scripts/create-report-html.awk scripts/create-report-txt.awk \
|
|
|
|
scripts/create-report.awk
|
2009-06-08 18:02:52 +02:00
|
|
|
SUBST_VARS.tools= AWK BZIP2 CHOWN DIGEST GZIP_CMD MAIL_CMD NEATO \
|
2008-09-16 20:21:30 +02:00
|
|
|
PBULK_CONFIG PBULK_CONFIG_VERSION PKG_ADD_CMD \
|
|
|
|
PKG_DELETE_CMD PKG_INFO_CMD PREFIX SED SH TAR \
|
|
|
|
TARGET_MAKE
|
2007-06-19 21:49:55 +02:00
|
|
|
|
|
|
|
CONF_FILES+= share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf
|
|
|
|
|
2008-09-16 20:21:30 +02:00
|
|
|
PBULK_CONFIG= ${PKG_SYSCONFDIR}/pbulk.conf
|
|
|
|
PBULK_CONFIG_VERSION= 0.34
|
2007-06-19 21:49:55 +02:00
|
|
|
|
2009-06-07 20:07:00 +02:00
|
|
|
INSTALLATION_DIRS= bin libexec/pbulk share/examples/pbulk
|
2007-06-20 01:51:18 +02:00
|
|
|
USE_BSD_MAKEFILE= yes
|
2007-06-19 21:49:55 +02:00
|
|
|
|
2009-06-07 20:07:00 +02:00
|
|
|
BUILD_DIRS= scripts
|
2007-06-19 21:49:55 +02:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${CP} -r ${FILESDIR}/pbulk ${WRKDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pbulk.conf ${DESTDIR}${PREFIX}/share/examples/pbulk/pbulk.conf
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|