2007-11-08 20:39:42 +01:00
|
|
|
# $NetBSD: Makefile,v 1.21 2007/11/08 19:39:42 joerg Exp $
|
2007-06-19 21:49:55 +02:00
|
|
|
|
2007-11-08 20:39:42 +01:00
|
|
|
DISTNAME= pbulk-0.15
|
2007-06-19 21:49:55 +02:00
|
|
|
CATEGORIES= pkgtools
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
|
|
|
MAINTAINER= joerg@NetBSD.org
|
|
|
|
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html
|
|
|
|
COMMENT= Modular bulk build framework
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/pbulk
|
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
NO_CHECKSUM= YES
|
|
|
|
|
2007-09-08 23:57:57 +02:00
|
|
|
USE_FEATURES= nbcompat
|
2007-06-19 21:49:55 +02:00
|
|
|
USE_TOOLS+= awk:run bzip2:run digest:run gzip:run ident:run make:run \
|
2007-08-15 23:10:54 +02:00
|
|
|
mail:run tar:run
|
2007-06-19 21:49:55 +02:00
|
|
|
DEPENDS+= rsync-[0-9]*:../../net/rsync
|
|
|
|
|
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 \
|
|
|
|
scripts/bulkbuild scripts/client-clean \
|
|
|
|
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
|
|
|
|
SUBST_VARS.tools= AWK BZIP2 DIGEST GZIP_CMD IDENT MAKE MAIL_CMD \
|
2007-08-15 23:10:54 +02:00
|
|
|
PBULK_CONFIG PKG_INFO PREFIX SH TAR
|
2007-06-19 21:49:55 +02:00
|
|
|
|
|
|
|
CONF_FILES+= share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf
|
|
|
|
|
|
|
|
PBULK_CONFIG= ${PKG_SYSCONFDIR}/pbulk.conf
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin libexec/pbulk \
|
|
|
|
${PKGMANDIR}/cat1 ${PKGMANDIR}/man1 \
|
|
|
|
share/examples/pbulk
|
2007-06-20 01:51:18 +02:00
|
|
|
USE_BSD_MAKEFILE= yes
|
2007-06-19 21:49:55 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
${CP} -r ${FILESDIR}/pbulk ${WRKDIR}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pbulk.conf ${DESTDIR}${PREFIX}/share/examples/pbulk/pbulk.conf
|
|
|
|
|
2007-06-20 15:31:26 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
. if !empty(OS_VERSION:M2.*)
|
|
|
|
USE_BUILTIN.libevent = no
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2007-06-25 23:38:43 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
LDADD+= -lsocket -lresolv
|
|
|
|
MAKE_ENV+= LDADD=${LDADD:Q}
|
|
|
|
.endif
|
|
|
|
|
2007-08-16 14:50:34 +02:00
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
CPPFLAGS+= -D_GNU_SOURCE
|
|
|
|
.endif
|
|
|
|
|
2007-06-19 21:49:55 +02:00
|
|
|
.include "../../devel/libevent/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|