2005-12-26 11:40:21 +01:00
|
|
|
# Ports collection makefile for: misc/tinderbox
|
|
|
|
# Whom: Edwin Groothuis <edwin@mavetju.org>
|
|
|
|
# Date created: 31 december 2005
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tinderbox
|
Update to 2.4.3.
If all goes well, this will be the last 2.x release before a 3.0 major release.
The 2.4.3 release is primarily aimed at fixing bugs, but a few small features
have been added:
* Treat the -u argument to sendBuildCompletionMail as a username rather than an
arbitrary database ID. Also, do better error checking in case a user has not
been defined in the datastore.
* Add -b <build name> support to the listBuildPortsQueue command.
* Add a new tc command, getPortLastBuiltStatus to get a port's last status.
* Properly quote the UPDATE_CMD argument in the *PortsTreeUpdate hooks.
* Add a new tbkill.sh tool to terminate a running tinderbuild.
* Add a new tinderbuild option, -norebuild, which will prevent tinderbuild from
forcing a rebuild of any packages specified on the command line.
* Add the build platform and release level to the logs.
* Add support for listing total ports per Build in the www-exp frontend.
* Some other minor bugs have been fixed.
Plus 3 local (port) patches:
* in "Current and Latest Builds" (?action=latest_buildports) increase the number
of ports displayed from 20 to 30
* in ports built for a build view (?action=list_buildports&build=something)
when sorting is done by Last Build Attempt sort descending (latest build first).
* in build logs, add: [1]
- building for: (ie: "6.3-STABLE amd64")
- Makefile ident: (ie: "$FreeBSD: ports/ports-mgmt/tinderbox/Makefile,v 1.41 2008/05/19 20:00:16 itetcu Exp $")
- prefixes: (ie: "LOCALBASE=usr/local X11BASE=usr/local")
- NO* env vars: (ie: "NOPORTDOCS=yes NOPORTEXAMPLES=yes NOPORTDATA=yes")
This release would not have been possible without the contributions of
Alexander Loginov, miwi, Chess Griffin, itetcu, Dmitriy Kirhlarov,
Robert Gogolok, and ade.
- Fix a few typos in pkg-message. [2]
PR: ports/123957 [2]
Submited by: Wen heping <wenheping@gmail.com> [2],
idea from miwi@'s patch for HEAD [1]
2008-06-03 15:24:58 +02:00
|
|
|
#DISTVERSION= ${PORTVERSION}-${PORTREVISION}
|
2008-09-03 14:29:01 +02:00
|
|
|
PORTVERSION= 3.0.0
|
2007-02-05 02:08:46 +01:00
|
|
|
CATEGORIES= ports-mgmt
|
2008-03-29 22:54:04 +01:00
|
|
|
MASTER_SITES= http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/
|
2008-09-03 14:29:01 +02:00
|
|
|
#DIST_SUBDIR= tinderbox
|
2005-12-26 11:40:21 +01:00
|
|
|
|
2006-06-20 12:44:45 +02:00
|
|
|
MAINTAINER= itetcu@FreeBSD.org
|
2005-12-26 11:40:21 +01:00
|
|
|
COMMENT= Port build tinderbox system
|
|
|
|
|
2006-06-12 00:24:10 +02:00
|
|
|
OPTIONS= PGSQL "With pgsql" Off \
|
|
|
|
MYSQL "With mysql" On \
|
|
|
|
CSUP "Use csup for updates" On \
|
2006-11-10 21:27:25 +01:00
|
|
|
CVSUP "Use cvsup for updates" Off \
|
2008-09-03 14:29:01 +02:00
|
|
|
WEBUI "Install web interface" On \
|
2006-11-10 21:27:25 +01:00
|
|
|
APACHE "Use Apache for web interface" On \
|
|
|
|
LIGHTTPD "Use LightHTTPD for web interface" Off
|
2005-12-26 11:40:21 +01:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2007-10-17 02:13:30 +02:00
|
|
|
WANT_PERL= yes
|
2005-12-26 11:40:21 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2006-06-12 00:24:10 +02:00
|
|
|
MAN1= tc-configCcache.1 tc-configDistfile.1 tc-configGet.1 \
|
|
|
|
tc-configJail.1 tc-configTinderd.1 tc-init.1
|
|
|
|
|
2005-12-26 11:40:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-01-05 01:24:44 +01:00
|
|
|
.if !defined(WITH_PGSQL) && defined(WITHOUT_MYSQL)
|
2006-06-12 00:24:10 +02:00
|
|
|
IGNORE= is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL
|
2006-01-18 11:29:26 +01:00
|
|
|
.endif
|
|
|
|
|
2008-09-03 14:29:01 +02:00
|
|
|
.if defined(WITH_WEBUI)
|
2006-12-01 14:57:47 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
|
2006-11-10 21:27:25 +01:00
|
|
|
WANT_PHP_WEB= yes
|
2006-01-20 22:55:30 +01:00
|
|
|
USE_PHP= session
|
2008-09-03 14:29:01 +02:00
|
|
|
PLIST_SUB+= WEBUI=""
|
2006-12-01 14:57:47 +01:00
|
|
|
.else
|
2008-09-03 14:29:01 +02:00
|
|
|
PLIST_SUB+= WEBUI="@comment "
|
2006-12-01 14:57:47 +01:00
|
|
|
.endif
|
2006-01-20 22:55:30 +01:00
|
|
|
|
2005-12-26 11:40:21 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PGSQL= yes
|
2008-09-03 14:29:01 +02:00
|
|
|
.if defined(WITH_WEBUI)
|
2006-01-03 01:00:47 +01:00
|
|
|
USE_PHP+= pgsql
|
2006-12-01 14:57:47 +01:00
|
|
|
.endif
|
2006-02-23 09:28:48 +01:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
2005-12-26 11:40:21 +01:00
|
|
|
.endif
|
|
|
|
|
2006-06-12 00:24:10 +02:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
2008-09-03 14:29:01 +02:00
|
|
|
.if defined(WITH_WEBUI)
|
2006-01-03 01:00:47 +01:00
|
|
|
USE_PHP+= mysql
|
2006-12-01 14:57:47 +01:00
|
|
|
.endif
|
2005-12-26 11:40:21 +01:00
|
|
|
USE_MYSQL= yes
|
2006-10-14 23:02:49 +02:00
|
|
|
IGNORE_WITH_MYSQL= 323 40
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql${MYSQL_VER:S/323//}
|
2005-12-26 11:40:21 +01:00
|
|
|
.endif
|
|
|
|
|
2006-07-04 14:25:25 +02:00
|
|
|
.if ! (${OSVERSION} > 700014 || ( ${OSVERSION} >= 601101 && ${OSVERSION} < 700000 ))
|
2006-06-20 12:44:45 +02:00
|
|
|
.if !defined(WITHOUT_CSUP)
|
2006-06-12 00:24:10 +02:00
|
|
|
RUN_DEPENDS+= csup:${PORTSDIR}/net/csup
|
|
|
|
.endif
|
2006-06-20 12:44:45 +02:00
|
|
|
.endif
|
2006-06-12 00:24:10 +02:00
|
|
|
|
|
|
|
.if defined(WITH_CVSUP)
|
|
|
|
RUN_DEPENDS+= cvsup:${PORTSDIR}/net/cvsup-without-gui
|
|
|
|
.endif
|
|
|
|
|
2008-09-03 14:29:01 +02:00
|
|
|
.if !defined(WITHOUT_APACHE) && defined(WITH_WEBUI)
|
2006-11-10 21:27:25 +01:00
|
|
|
USE_APACHE= 1.3+
|
2008-09-03 14:29:01 +02:00
|
|
|
.elif defined(WITH_LIGHTTPD) && defined(WITH_WEBUI)
|
2006-11-10 21:27:25 +01:00
|
|
|
RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd
|
|
|
|
.endif
|
|
|
|
|
2006-12-01 14:57:47 +01:00
|
|
|
pre-everything::
|
2008-09-03 14:29:01 +02:00
|
|
|
.if (!defined(WITHOUT_APACHE) || defined(WITH_LIGHTTPD)) && !defined(WITH_WEBUI)
|
2006-12-01 14:57:47 +01:00
|
|
|
@${ECHO_CMD} "It doesn't make sense to depend on Apache or LightHTTPD if not using either web interface."
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
2005-12-26 22:43:31 +01:00
|
|
|
|
2008-03-29 22:54:04 +01:00
|
|
|
post-extract:
|
2008-09-03 14:29:01 +02:00
|
|
|
.if !defined(WITH_WEBUI)
|
|
|
|
@${RM} -R ${WRKSRC}/webui
|
2008-07-01 22:06:20 +02:00
|
|
|
.endif
|
2005-12-26 11:40:21 +01:00
|
|
|
|
2006-12-10 23:10:04 +01:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/tinderbox/scripts
|
2008-09-03 14:29:01 +02:00
|
|
|
cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1 && \
|
|
|
|
cd ${WRKSRC} && ${RM} -r ${WRKSRC}/man
|
2006-12-10 23:10:04 +01:00
|
|
|
${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
|
|
|
|
|
2005-12-26 11:40:21 +01:00
|
|
|
post-install:
|
2006-06-12 00:24:10 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-12-26 11:40:21 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|