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
|
2010-01-05 20:58:18 +01:00
|
|
|
DISTVERSION= 3.4-${SNAP}
|
2007-02-05 02:08:46 +01:00
|
|
|
CATEGORIES= ports-mgmt
|
2010-01-05 20:58:18 +01:00
|
|
|
MASTER_SITES= http://freebsd.unixfreunde.de/${PORTNAME}/
|
2009-02-16 11:48:23 +01:00
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2005-12-26 11:40:21 +01:00
|
|
|
|
2006-06-20 12:44:45 +02:00
|
|
|
MAINTAINER= itetcu@FreeBSD.org
|
2009-02-16 11:48:23 +01:00
|
|
|
COMMENT= Port build tinderbox system, devel version
|
2005-12-26 11:40:21 +01:00
|
|
|
|
Update to 3.2 release. This release offers no changes over Release Candidate 3.
Here is a summary of changes from Tinderbox 3.1.2 to 3.2:
* A new tc function, ``tbversion'' has been added to print the version
of Tinderbox. This command relies on a ${pb}/.version file which is
generated when the Tinderbox release distribution is created. Be sure
to copy this file if you copy the contents of the Tinderbox release to
another location.
* Log file markup support has been added. Log files can be viewed with
certain patterns colorized to make them easier to spot (e.g. GCC
warnings). Currently, the list of patterns is not easily changeable,
but a facility to add new patterns is forthcoming.
* A new tc function, ``copyBuild'' has been added which allows one to
copy attributes (e.g. env files, ports, packages, etc.) from one Build
to another.
* Quiet tinderd if a port in the queue does not exist.
* The log file header lines in port build logs have been reordered for
easier (human) reading. If this changes causes too much consternation
for existing scripts, it can be reverted.
* Fix a bug with Postgres in that psql wants to output space-delimited
results by default, and this can mess up upgrades.
* A -u argument has been added to ``addBuildPortsQueueEntry'' so that a
username can be set for a queue entry.
* The ``addBuildPortsQueueEntry'' command now looks up users by both
name and ID. This fixes a bug where tinderd doesn't send Build
completion mail.
* The error spit out by ``listBuildPortsQueue'' when the queue is empty
has been removed.
* Two new inc_tinderbox config variables have been added:
reload_interval_latest and reload_interval_current which allow one to
set the reload interval for the ``Current and Latest Builds'' page while
no port is building and while a port is building respectively.
* Some additional error checking has been added to the webui.
* A search interface has been added for searching for ports in the
webui.
* Canonical PHP tags are now used instead of short tags. This makes it
easier to deploy Tinderbox in various configurations.
* The tinderd queue view has been changed. The field for adding new
ports is now first.
* A favicon.ico file is now shipped for the webui.
* Some other bugs have been fixed in the webui.
* The ``tbversion'' command usage has been added.
* An bug in the log file parsing code which could result in fetch
failure false positives has been fixed.
* The search interface has been added to the top of the homepage.
* The Delete buttons have been moved to the top of the page.
* Some migration issues have been fixed.
The contributors to Tinderbox 3.2's development and testing are Beat
Gätzi, Martin Wilke, Matt, Ion-Mihai Tetcu, Frank Wall, Boris
Samorodov, Cory R. King, and Aron Schlesinger.
Add conflicts with ports-mgmt/tinderbox.
MFC after: 3 days
2009-02-26 03:11:43 +01:00
|
|
|
CONFLICTS= tinderbox-[0-9]*
|
|
|
|
|
2006-06-12 00:24:10 +02:00
|
|
|
OPTIONS= PGSQL "With pgsql" Off \
|
|
|
|
MYSQL "With mysql" On \
|
|
|
|
CSUP "Use csup for updates" On \
|
2010-01-05 20:58:18 +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 \
|
2010-03-06 12:19:04 +01:00
|
|
|
HIAWATHA "Use Hiawatha for web interface" Off \
|
2009-02-16 11:48:23 +01:00
|
|
|
LIGHTTPD "Use LightHTTPD for web interface" Off \
|
2009-03-25 19:06:29 +01:00
|
|
|
CHECK_FOR_ROOT "Check if ./tc is run by uid 0" On \
|
2010-01-05 20:58:18 +01:00
|
|
|
LSOF "For killMountProcesses() when using nullfs" On \
|
|
|
|
TMPFS "Enable TMPFS extra patch" Off \
|
|
|
|
PARALLEL "Enable PARALLEL extra patch" 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
|
|
|
|
|
2010-01-05 20:58:18 +01:00
|
|
|
SNAP= 20100104 # 07:00 PM
|
|
|
|
|
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-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)
|
2010-01-05 20:58:18 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql
|
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)
|
2010-01-05 20:58:18 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql
|
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
|
|
|
|
|
2010-01-05 20:58:18 +01: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
|
2010-03-06 12:19:04 +01:00
|
|
|
.elif defined(WITH_HIAWATHA) && defined(WITH_WEBUI)
|
|
|
|
RUN_DEPENDS+= hiawatha:${PORTSDIR}/www/hiawatha
|
2006-11-10 21:27:25 +01:00
|
|
|
.endif
|
|
|
|
|
2009-03-25 16:24:52 +01:00
|
|
|
.if defined(WITH_LSOF)
|
|
|
|
RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof
|
|
|
|
.endif
|
|
|
|
|
2010-01-05 20:58:18 +01:00
|
|
|
.if defined(WITH_TMPFS) && defined(WITH_PARALLEL)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-tmpfs_para.patch
|
|
|
|
.elif defined(WITH_TMPFS) && !defined(WITH_PARALLEL)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-tmpfs.patch
|
|
|
|
.elif defined(WITH_PARALLEL) && !defined(WITH_TMPFS)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-parallel.patch
|
|
|
|
.endif
|
|
|
|
|
2006-12-01 14:57:47 +01:00
|
|
|
pre-everything::
|
2010-03-06 12:19:04 +01:00
|
|
|
.if (!defined(WITHOUT_APACHE) || defined(WITH_LIGHTTPD) || defined(WITH_HIAWATHA)) && !defined(WITH_WEBUI)
|
|
|
|
@${ECHO_CMD} "It doesn't make sense to depend on Apache, Hiawatha or LightHTTPD if not using the WebUI."
|
2006-12-01 14:57:47 +01:00
|
|
|
@${FALSE}
|
|
|
|
.endif
|
2005-12-26 22:43:31 +01:00
|
|
|
|
2008-09-03 14:29:01 +02:00
|
|
|
.if !defined(WITH_WEBUI)
|
Update to 3.1.1 - Bug fix and feature release.
This release brings many bug fixes and some new features, particularly with the
webui frontend:
* The tinderd.sh rc.d script has been renamed tinderd, and modernized.
See the README for more details.
* A tinderd_debug option has been added to the tinderd rc.d script to
control whether or not to write output to /dev/null.
* Add a new tinderd config option, TINDERD_LOGFILE. When this is set, all
tinderbuild output from a tinderd cycle will be appended to this
logfile. By default, the logfile is /dev/null.
* Reintroduce user permissions functionality in the webui from 2.x.
* Add RSS support for the latest_buildports view (webui).
* Add buttons to tinderd queue view to remove all or all built entries from
the queue (webui).
* Automatically set rootdir and wwwrooturi variable (webui).
* Show target port of current build (webui).
* Fix a slew of Postgres upgrade and install bugs. Note: not all upgrade
bugs have been fixed. The schema changes in 3.1 may need to be applied
manually to Postgres databases.
* Fix a case where a failed build could lead to false-positive leftovers.
* Fix a regression where the wrong module name was used. This broke tinderd
configuration.
* Prevent dereferencing a null value in the Build Ports Queue code when a
port is no longer associated to a Build.
* Fix rescanPorts' command line arguments, and allow it to be invoked as a
shell command.
* Use the installed Jail's /usr/share/mk directory when doing a make
distribution. This fixes a Jail build of 7.X on recent -CURRENT.
* Add -k to the conig-recursive command so that it doesn't die if one
chooses to skip a port.
* Don't make it fatal if the rm of the directory fails in cleanDir. This
may very well fail if the target is a mount point.
* Some setup steps in the README have been clarified.
!!!NOTE!!!This release includes a schema change, so be sure to run the
following before using 3.1:
./tc Upgrade
The contributors to this release are Beat Gätzi, Ion-Mihai Tetcu, Aron
Schlesinger, Alexander Logvinov, Wesley Shields, Martin Wilke, and Boris
Samorodov.
Local patches:
- install a favicon for the webui
- show last 30 ports per page in "Current and Latest Builds" page (webui)
- when sorting by "Last Build Attempt" in list build page sort descending --
latest built first (webui)
PR: ports/128785 (based on)
Submitted by: bsam@
2008-11-12 16:58:29 +01:00
|
|
|
post-extract:
|
2008-09-03 14:29:01 +02:00
|
|
|
@${RM} -R ${WRKSRC}/webui
|
Update to 3.1.1 - Bug fix and feature release.
This release brings many bug fixes and some new features, particularly with the
webui frontend:
* The tinderd.sh rc.d script has been renamed tinderd, and modernized.
See the README for more details.
* A tinderd_debug option has been added to the tinderd rc.d script to
control whether or not to write output to /dev/null.
* Add a new tinderd config option, TINDERD_LOGFILE. When this is set, all
tinderbuild output from a tinderd cycle will be appended to this
logfile. By default, the logfile is /dev/null.
* Reintroduce user permissions functionality in the webui from 2.x.
* Add RSS support for the latest_buildports view (webui).
* Add buttons to tinderd queue view to remove all or all built entries from
the queue (webui).
* Automatically set rootdir and wwwrooturi variable (webui).
* Show target port of current build (webui).
* Fix a slew of Postgres upgrade and install bugs. Note: not all upgrade
bugs have been fixed. The schema changes in 3.1 may need to be applied
manually to Postgres databases.
* Fix a case where a failed build could lead to false-positive leftovers.
* Fix a regression where the wrong module name was used. This broke tinderd
configuration.
* Prevent dereferencing a null value in the Build Ports Queue code when a
port is no longer associated to a Build.
* Fix rescanPorts' command line arguments, and allow it to be invoked as a
shell command.
* Use the installed Jail's /usr/share/mk directory when doing a make
distribution. This fixes a Jail build of 7.X on recent -CURRENT.
* Add -k to the conig-recursive command so that it doesn't die if one
chooses to skip a port.
* Don't make it fatal if the rm of the directory fails in cleanDir. This
may very well fail if the target is a mount point.
* Some setup steps in the README have been clarified.
!!!NOTE!!!This release includes a schema change, so be sure to run the
following before using 3.1:
./tc Upgrade
The contributors to this release are Beat Gätzi, Ion-Mihai Tetcu, Aron
Schlesinger, Alexander Logvinov, Wesley Shields, Martin Wilke, and Boris
Samorodov.
Local patches:
- install a favicon for the webui
- show last 30 ports per page in "Current and Latest Builds" page (webui)
- when sorting by "Last Build Attempt" in list build page sort descending --
latest built first (webui)
PR: ports/128785 (based on)
Submitted by: bsam@
2008-11-12 16:58:29 +01:00
|
|
|
.endif
|
2008-09-07 09:41:41 +02:00
|
|
|
|
2008-12-27 21:29:35 +01:00
|
|
|
post-patch:
|
2009-02-16 11:48:23 +01:00
|
|
|
.ifdef WITHOUT_CHECK_FOR_ROOT
|
|
|
|
${REINPLACE_CMD} -e 's/^if \[ `id -u` != 0 \]; then/if false; then/' \
|
|
|
|
${WRKSRC}/tc
|
|
|
|
.endif
|
2009-09-18 18:01:00 +02:00
|
|
|
@cd ${WRKSRC} && ${FIND} -E . -regex '.*(orig|bak)' -exec ${RM} {} \;
|
2008-12-27 21:29:35 +01:00
|
|
|
|
2006-12-10 23:10:04 +01:00
|
|
|
do-install:
|
2008-09-07 09:41:41 +02:00
|
|
|
@${MKDIR} ${PREFIX}/tinderbox/scripts
|
|
|
|
@${ECHO_CMD} "Installing man pages ..."
|
2008-09-03 14:29:01 +02:00
|
|
|
cd ${WRKSRC}/man/man1 && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1 && \
|
|
|
|
cd ${WRKSRC} && ${RM} -r ${WRKSRC}/man
|
2008-09-07 09:41:41 +02:00
|
|
|
@${ECHO_CMD} "Installing rc script ..."
|
Update to 3.1.1 - Bug fix and feature release.
This release brings many bug fixes and some new features, particularly with the
webui frontend:
* The tinderd.sh rc.d script has been renamed tinderd, and modernized.
See the README for more details.
* A tinderd_debug option has been added to the tinderd rc.d script to
control whether or not to write output to /dev/null.
* Add a new tinderd config option, TINDERD_LOGFILE. When this is set, all
tinderbuild output from a tinderd cycle will be appended to this
logfile. By default, the logfile is /dev/null.
* Reintroduce user permissions functionality in the webui from 2.x.
* Add RSS support for the latest_buildports view (webui).
* Add buttons to tinderd queue view to remove all or all built entries from
the queue (webui).
* Automatically set rootdir and wwwrooturi variable (webui).
* Show target port of current build (webui).
* Fix a slew of Postgres upgrade and install bugs. Note: not all upgrade
bugs have been fixed. The schema changes in 3.1 may need to be applied
manually to Postgres databases.
* Fix a case where a failed build could lead to false-positive leftovers.
* Fix a regression where the wrong module name was used. This broke tinderd
configuration.
* Prevent dereferencing a null value in the Build Ports Queue code when a
port is no longer associated to a Build.
* Fix rescanPorts' command line arguments, and allow it to be invoked as a
shell command.
* Use the installed Jail's /usr/share/mk directory when doing a make
distribution. This fixes a Jail build of 7.X on recent -CURRENT.
* Add -k to the conig-recursive command so that it doesn't die if one
chooses to skip a port.
* Don't make it fatal if the rm of the directory fails in cleanDir. This
may very well fail if the target is a mount point.
* Some setup steps in the README have been clarified.
!!!NOTE!!!This release includes a schema change, so be sure to run the
following before using 3.1:
./tc Upgrade
The contributors to this release are Beat Gätzi, Ion-Mihai Tetcu, Aron
Schlesinger, Alexander Logvinov, Wesley Shields, Martin Wilke, and Boris
Samorodov.
Local patches:
- install a favicon for the webui
- show last 30 ports per page in "Current and Latest Builds" page (webui)
- when sorting by "Last Build Attempt" in list build page sort descending --
latest built first (webui)
PR: ports/128785 (based on)
Submitted by: bsam@
2008-11-12 16:58:29 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/etc/rc.d/tinderd ${PREFIX}/etc/rc.d/${PORTNAME}
|
2008-09-07 09:41:41 +02:00
|
|
|
@${ECHO_CMD} "Installing tinderbox ..."
|
2006-12-10 23:10:04 +01:00
|
|
|
${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
|
2008-09-07 09:41:41 +02:00
|
|
|
@${ECHO_CMD} "All Done"
|
2006-12-10 23:10:04 +01:00
|
|
|
|
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>
|