summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-12-10 22:10:04 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-12-10 22:10:04 +0000
commit1e136d15bacb9b0ac908294a0821e2b3933991b2 (patch)
treef20b569ee27a1d73a6a188bf6339e7623cd7cfa5 /misc
parent- Update to 0.9.1 (diff)
- Fix path of csup for systems where csup is builded from the ports [1]
- fix deinstall when web interfaces are not installed - don't install www[-exp] files and remove them afterwards, remove them after build - bump PORTREVISION PR: 106556 [1] Submitted by: Beat Gätzi [1]
Notes
Notes: svn path=/head/; revision=179423
Diffstat (limited to 'misc')
-rw-r--r--misc/tinderbox/Makefile29
-rw-r--r--misc/tinderbox/pkg-plist10
2 files changed, 23 insertions, 16 deletions
diff --git a/misc/tinderbox/Makefile b/misc/tinderbox/Makefile
index 8c462e91f57b..7cb1b7aebebe 100644
--- a/misc/tinderbox/Makefile
+++ b/misc/tinderbox/Makefile
@@ -6,7 +6,7 @@
PORTNAME= tinderbox
PORTVERSION= 2.3.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= misc
MASTER_SITES= http://tinderbox.marcuscom.com/
@@ -103,21 +103,28 @@ post-patch:
${WRKSRC}/lib/setup-mysql.sh
@${RM} ${WRKSRC}/lib/setup-mysql.sh.bak
.endif
+.if ! (${OSVERSION} > 700014 || ( ${OSVERSION} >= 601101 && ${OSVERSION} < 700000 ))
+ ${REINPLACE_CMD} -E -e 's!/usr/bin/csup!${PREFIX}/bin/csup!' \
+ ${WRKSRC}/create
+ ${REINPLACE_CMD} -E -e 's!/usr/bin/csup!${PREFIX}/bin/csup!' \
+ ${WRKSRC}/tc
+ @${RM} ${WRKSRC}/create.bak
+ @${RM} ${WRKSRC}/tc.bak
+.endif
-do-install:
- ${MKDIR} ${PREFIX}/tinderbox/scripts
- ${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
-.if !defined(WITH_WEB) || !defined(WITHOUT_WEB_EXP)
- @${ECHO_CMD} "Removing web interface componenets ..."
- @${RM} -R ${PREFIX}/tinderbox/scripts/www
- @${ECHO_CMD} "Done."
+pre-install:
+.if !defined(WITH_WEB)
+ ${RM} -R ${WRKSRC}/www
.endif
.if defined(WITHOUT_WEB_EXP)
- @${ECHO_CMD} "Removing web interface componenets ..."
- @${RM} -R ${PREFIX}/tinderbox/scripts/www-exp
- @${ECHO_CMD} "Done."
+ ${RM} -R ${WRKSRC}/www-exp
.endif
+
+do-install:
+ ${MKDIR} ${PREFIX}/tinderbox/scripts
+ ${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
+
post-install:
cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
@${CAT} ${PKGMESSAGE}
diff --git a/misc/tinderbox/pkg-plist b/misc/tinderbox/pkg-plist
index fe178712e26c..fae32460582b 100644
--- a/misc/tinderbox/pkg-plist
+++ b/misc/tinderbox/pkg-plist
@@ -109,11 +109,11 @@ tinderbox/scripts/upgrade/mig_shlib.sh
%%WEB%%tinderbox/scripts/www/showport.php
%%WEB%%tinderbox/scripts/www/tinderstyle.css
-@dirrm tinderbox/scripts/www-exp/templates/default
-@dirrm tinderbox/scripts/www-exp/templates
-@dirrm tinderbox/scripts/www-exp/module
-@dirrm tinderbox/scripts/www-exp/core
-@dirrm tinderbox/scripts/www
+%%WEB_EXP%%@dirrm tinderbox/scripts/www-exp/templates/default
+%%WEB_EXP%%@dirrm tinderbox/scripts/www-exp/templates
+%%WEB_EXP%%@dirrm tinderbox/scripts/www-exp/module
+%%WEB_EXP%%@dirrm tinderbox/scripts/www-exp/core
+%%WEB%%@dirrm tinderbox/scripts/www
@dirrm tinderbox/scripts/upgrade
@dirrm tinderbox/scripts/man/man1
@dirrm tinderbox/scripts/man