summaryrefslogtreecommitdiff
path: root/misc/gpt
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2005-12-02 23:02:31 +0000
committerBrooks Davis <brooks@FreeBSD.org>2005-12-02 23:02:31 +0000
commit55f95f61e0c4a7d701a058fdc6b1ca971850e502 (patch)
tree2346e1dddca2bf641cce5336f9cc034bbb13fac1 /misc/gpt
parentUpdate to 1.30 (diff)
These are actually only broken on 4.x so fix markings.
Reported by: kris Pointy hat to: brooks
Notes
Notes: svn path=/head/; revision=150272
Diffstat (limited to 'misc/gpt')
-rw-r--r--misc/gpt/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/misc/gpt/Makefile b/misc/gpt/Makefile
index 080c2fc49ecd..c4dd2e1870fc 100644
--- a/misc/gpt/Makefile
+++ b/misc/gpt/Makefile
@@ -17,8 +17,6 @@ COMMENT= Grid Packaging Tools (used to install Globus)
CONFLICTS= gpt-3.1
-BROKEN= "Does not build"
-
RUN_DEPENDS+= ${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
@@ -53,6 +51,12 @@ FIX_VAR_FILES= ${WRKSRC}/packaging_tools/perl/GPT/Localize.pm \
${WRKSRC}/packaging_tools/perl/scripts/gpt-config \
${WRKSRC}/tools/testArchiveTar
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+BROKEN= "Does not build"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s|@@PERL@@|${PERL}|g" ${WRKSRC}/build_gpt
@${REINPLACE_CMD} -e 's|$$gpath/var/lib/perl|/var/db/gpt|g' ${FIX_VAR_FILES}
@@ -62,4 +66,4 @@ do-install:
@cd ${WRKSRC}; \
GPT_LOCATION=${PREFIX} ./build_gpt --with-perl=${PERL}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>