aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/tinderbox
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-03-04 13:12:53 +0800
committermiwi <miwi@FreeBSD.org>2013-03-04 13:12:53 +0800
commitdd495c279c636f3596465cbfa603ae7a790cf656 (patch)
tree6f950037a23dbf93a5b6e758d390bfc9eac4e6d7 /ports-mgmt/tinderbox
parent473371a4f5dc657caec9f6fb29d8f300b76f724a (diff)
downloadfreebsd-ports-gnome-dd495c279c636f3596465cbfa603ae7a790cf656.tar.gz
freebsd-ports-gnome-dd495c279c636f3596465cbfa603ae7a790cf656.tar.zst
freebsd-ports-gnome-dd495c279c636f3596465cbfa603ae7a790cf656.zip
- Update to 4.0.0
- OptionNG Full Changelog: http://www.marcuscom.com/pipermail/tinderbox-list/2013-March/002909.html
Diffstat (limited to 'ports-mgmt/tinderbox')
-rw-r--r--ports-mgmt/tinderbox/Makefile95
-rw-r--r--ports-mgmt/tinderbox/distinfo4
-rw-r--r--ports-mgmt/tinderbox/files/patch-lib__tc_command.sh14
-rw-r--r--ports-mgmt/tinderbox/pkg-plist31
4 files changed, 61 insertions, 83 deletions
diff --git a/ports-mgmt/tinderbox/Makefile b/ports-mgmt/tinderbox/Makefile
index a3844db2340a..53d9da7cd2a5 100644
--- a/ports-mgmt/tinderbox/Makefile
+++ b/ports-mgmt/tinderbox/Makefile
@@ -1,12 +1,8 @@
-# Ports collection makefile for: misc/tinderbox
-# Whom: Edwin Groothuis <edwin@mavetju.org>
-# Date created: 31 december 2005
-#
+# Created by: Edwin Groothuis <edwin@mavetju.org>
# $FreeBSD$
PORTNAME= tinderbox
-PORTVERSION= 3.4.1
-PORTREVISION= 2
+PORTVERSION= 4.0.0
CATEGORIES= ports-mgmt
MASTER_SITES= http://tinderbox.marcuscom.com/ \
http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/
@@ -17,16 +13,23 @@ COMMENT= Port build tinderbox system
CONFLICTS= tinderbox-devel-[0-9]*
-OPTIONS= PGSQL "With pgsql" Off \
- MYSQL "With mysql" On \
- CSUP "Use csup for updates" On \
- CVSUP "Use cvsup for updates" Off \
- WEBUI "Install web interface" On \
- APACHE "Use Apache for web interface" On \
- HIAWATHA "Use Hiawatha for web interface" Off \
- LIGHTTPD "Use LightHTTPD for web interface" Off \
- CHECK_FOR_ROOT "Check if ./tc is run by uid 0" On \
- LSOF "For killMountProcesses() when using nullfs" On
+OPTIONS_MULTI= DB
+OPTIONS_MULTI_DB= PGSQL MYSQL SQLITE
+
+OPTIONS_RADIO= WEB
+OPTIONS_RADIO_WEB= APACHE HIAWATHA LIGHTTPD NGINX
+
+OPTIONS_DEFINE= CHECK_ROOT EMAILS LSOF LOG_COMPRESS
+
+CHECK_ROOT_DESC= Check if ./tc is run by uid 0
+EMAILS_DESC= Support for build failure/completion emails
+LSOF_DESC= For killMountProcesses() when using nullfs
+LOG_COMPRESS_DESC= Support bzip'ing the logs
+HIAWATHA_DESC= Hiawatha server
+NGINX_DESC= Nginx server
+
+OPTIONS_DEFAULT= MYSQL APACHE CHECK_ROOT EMAILS LSOF \
+ LOG_COMPRESS
NO_BUILD= yes
WANT_PERL= yes
@@ -35,15 +38,13 @@ SUB_FILES= pkg-message
MAN1= tc-configCcache.1 tc-configDistfile.1 tc-configGet.1 \
tc-configJail.1 tc-configTinderd.1 tc-init.1
-#PATCH_STRIP= -p2
+.include <bsd.port.options.mk>
-.include <bsd.port.pre.mk>
-
-.if !defined(WITH_PGSQL) && defined(WITHOUT_MYSQL)
-IGNORE= is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL
+.if ${PORT_OPTIONS:MAPACHE} || ${PORT_OPTIONS:MHIAWATHA} || ${PORT_OPTIONS:MLIGHTTPD} || ${PORT_OPTIONS:MNGINX}
+WEBUI= yes
.endif
-.if defined(WITH_WEBUI)
+.if defined(WEBUI)
WANT_PHP_WEB= yes
USE_PHP= session
PLIST_SUB+= WEBUI=""
@@ -51,58 +52,61 @@ PLIST_SUB+= WEBUI=""
PLIST_SUB+= WEBUI="@comment "
.endif
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
-.if defined(WITH_WEBUI)
-RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql
-USE_PHP+= pgsql
+.if defined(WEBUI)
+USE_PHP+= pgsql pdo_pgsql
.endif
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
.endif
-.if !defined(WITHOUT_MYSQL)
-.if defined(WITH_WEBUI)
-RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql
-USE_PHP+= mysql
+.if ${PORT_OPTIONS:MMYSQL}
+.if defined(WEBUI)
+USE_PHP+= mysql pdo_mysql
.endif
USE_MYSQL= yes
RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
.endif
-.if defined(WITH_CVSUP)
-RUN_DEPENDS+= cvsup:${PORTSDIR}/net/cvsup-without-gui
+.if ${PORT_OPTIONS:MSQLITE}
+.if defined(WEBUI)
+USE_PHP+= sqlite3 pdo_sqlite
+.endif
+RUN_DEPENDS+= p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite
.endif
-.if !defined(WITHOUT_APACHE) && defined(WITH_WEBUI)
+.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN= 22+
-.elif defined(WITH_LIGHTTPD) && defined(WITH_WEBUI)
+.elif ${PORT_OPTIONS:MLIGHTTPD}
RUN_DEPENDS+= lighttpd:${PORTSDIR}/www/lighttpd
-.elif defined(WITH_HIAWATHA) && defined(WITH_WEBUI)
+.elif ${PORT_OPTIONS:MHIAWATHA}
RUN_DEPENDS+= hiawatha:${PORTSDIR}/www/hiawatha
+.elif ${PORT_OPTIONS:MNGINX}
+RUN_DEPENDS+= nginx:${PORTSDIR}/www/nginx
+.endif
+
+.if ${PORT_OPTIONS:MEMAILS}
+RUN_DEPENDS+= p5-Net>=0:${PORTSDIR}/net/p5-Net
.endif
-.if defined(WITH_LSOF)
+.if ${PORT_OPTIONS:MLSOF}
RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof
.endif
-pre-everything::
-.if (!defined(WITHOUT_APACHE) || defined(WITH_LIGHTTPD) || defined(WITH_HIAWATHA)) && !defined(WITH_WEBUI)
- @${ECHO_CMD} "It doesn't make sense to depend on Apache, LightHTTPD or Hiawatha if not using the WebUI."
- @${FALSE}
+.if ${PORT_OPTIONS:MLOG_COMPRESS}
+RUN_DEPENDS+= p5-Compress-Bzip2>=0:${PORTSDIR}/archivers/p5-Compress-Bzip2
.endif
-.if !defined(WITH_WEBUI)
+.if ! defined(WEBUI)
post-extract:
@${RM} -R ${WRKSRC}/webui
.endif
post-patch:
-.ifdef WITHOUT_CHECK_FOR_ROOT
+.if ! ${PORT_OPTIONS:MCHECK__ROOT}
${REINPLACE_CMD} -e 's/^if \[ `id -u` != 0 \]; then/if false; then/' \
${WRKSRC}/tc
.endif
- ${REINPLACE_CMD} -e 's/.set_rcvar./tinderd_enable/' \
- ${WRKSRC}/etc/rc.d/tinderd
@cd ${WRKSRC} && ${FIND} -E . -regex '.*(orig|bak)' -exec ${RM} {} \;
do-install:
@@ -114,10 +118,9 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/etc/rc.d/tinderd ${PREFIX}/etc/rc.d/${PORTNAME}
@${ECHO_CMD} "Installing tinderbox ..."
${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
- ${CP} ${WRKSRC}/.version ${PREFIX}/tinderbox/scripts
@${ECHO_CMD} "All Done"
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/ports-mgmt/tinderbox/distinfo b/ports-mgmt/tinderbox/distinfo
index cb2e2209da09..d478534c582e 100644
--- a/ports-mgmt/tinderbox/distinfo
+++ b/ports-mgmt/tinderbox/distinfo
@@ -1,2 +1,2 @@
-SHA256 (tinderbox/tinderbox-3.4.1.tar.gz) = 21083ebf28b3eb3c4979bb04c8e910cca7cefdbd3ae3f23d40a325fe1b9213a9
-SIZE (tinderbox/tinderbox-3.4.1.tar.gz) = 147755
+SHA256 (tinderbox/tinderbox-4.0.0.tar.gz) = 34267e0147bdba191e72969bd30156b71c140409d9b7d047e2224e671887ba96
+SIZE (tinderbox/tinderbox-4.0.0.tar.gz) = 150516
diff --git a/ports-mgmt/tinderbox/files/patch-lib__tc_command.sh b/ports-mgmt/tinderbox/files/patch-lib__tc_command.sh
deleted file mode 100644
index a4b4ccc42320..000000000000
--- a/ports-mgmt/tinderbox/files/patch-lib__tc_command.sh
+++ /dev/null
@@ -1,14 +0,0 @@
---- ./lib/tc_command.sh.orig 2012-03-11 18:29:27.000000000 +0100
-+++ ./lib/tc_command.sh 2012-03-11 18:30:06.000000000 +0100
-@@ -2299,9 +2299,9 @@
- oldcwd=${PWD}
- path=$(tinderLoc portstree ${portstree})
- cd "${path}/ports/${port}"
-- distinfo=$(env PORTSDIR="${path}/ports" make -V MD5_FILE)
-+ distinfo=$(env PORTSDIR="${path}/ports" make -V DISTINFO_FILE)
- if [ -f "${distinfo}" ]; then
-- for df in $(grep '^MD5' ${distinfo} | awk -F '[\(\)]' '{print $2}'); do
-+ for df in $(grep '^SHA256' ${distinfo} | awk -F '[\(\)]' '{print $2}'); do
- if ! grep -q "^${df}\$" ${disttmp}; then
- echo ${df} >> ${disttmp}
- fi
diff --git a/ports-mgmt/tinderbox/pkg-plist b/ports-mgmt/tinderbox/pkg-plist
index 485f7c340dff..81600d942948 100644
--- a/ports-mgmt/tinderbox/pkg-plist
+++ b/ports-mgmt/tinderbox/pkg-plist
@@ -1,15 +1,16 @@
etc/rc.d/tinderbox
-tinderbox/scripts/.version
tinderbox/scripts/README
tinderbox/scripts/contrib/hooks/compress_wrkdir/README.txt
tinderbox/scripts/contrib/hooks/compress_wrkdir/compress_wrkdir.sh
+tinderbox/scripts/contrib/hooks/create-pkgng-repo/README.txt
+tinderbox/scripts/contrib/hooks/create-pkgng-repo/create-pkgng-repo.sh
tinderbox/scripts/contrib/hooks/kse-fix/README.txt
tinderbox/scripts/contrib/hooks/kse-fix/kse-fix.sh
tinderbox/scripts/contrib/hooks/kse-fix/libmap.conf
tinderbox/scripts/contrib/hooks/make-jobs-safe/README.txt
tinderbox/scripts/contrib/hooks/make-jobs-safe/make-jobs-safe.sh
-tinderbox/scripts/contrib/hooks/mass-build-pgsql/README.txt
tinderbox/scripts/contrib/hooks/mass-build-pgsql/mass-build-pgsql.sh
+tinderbox/scripts/contrib/hooks/mass-build-pgsql/README.txt
tinderbox/scripts/ds.ph.dist
tinderbox/scripts/etc/env/.keep_me
tinderbox/scripts/etc/rc.d/tinderd
@@ -29,6 +30,7 @@ tinderbox/scripts/lib/Tinderbox/User.pm
tinderbox/scripts/lib/buildscript
tinderbox/scripts/lib/db-mysql.sh
tinderbox/scripts/lib/db-pgsql.sh
+tinderbox/scripts/lib/db-sqlite.sh
tinderbox/scripts/lib/enterbuild
tinderbox/scripts/lib/makemake
tinderbox/scripts/lib/pnohang.c
@@ -43,6 +45,8 @@ tinderbox/scripts/sql/schema.mysql.post
tinderbox/scripts/sql/schema.mysql.pre
tinderbox/scripts/sql/schema.pgsql.post
tinderbox/scripts/sql/schema.pgsql.pre
+tinderbox/scripts/sql/schema.sqlite.post
+tinderbox/scripts/sql/schema.sqlite.pre
tinderbox/scripts/sql/values.config
tinderbox/scripts/sql/values.hooks
tinderbox/scripts/sql/values.lp
@@ -57,26 +61,10 @@ tinderbox/scripts/upgrade/builds.map
tinderbox/scripts/upgrade/config.map
tinderbox/scripts/upgrade/hooks.map
tinderbox/scripts/upgrade/jails.map
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.0_to_3.1.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.1_to_3.2.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2.1_to_3.2.2.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2.2_to_3.2.3.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2.3_to_3.2.4.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2.4_to_3.2.5.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2.5_to_3.2.6.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2.6_to_3.3.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2_to_3.2.1.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.0_to_3.1.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.1_to_3.2.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2.1_to_3.2.2.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2.2_to_3.2.3.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2.3_to_3.2.4.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2.4_to_3.2.5.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2.5_to_3.2.6.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2.6_to_3.3.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2_to_3.2.1.sql
-tinderbox/scripts/upgrade/order.lst
+tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.3_to_4.0.0.sql
+tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.3_to_4.0.0.sql
tinderbox/scripts/upgrade/user_permissions.map
+tinderbox/scripts/upgrade/order.lst
%%WEBUI%%tinderbox/scripts/webui/core/Build.php
%%WEBUI%%tinderbox/scripts/webui/core/BuildGroups.php
%%WEBUI%%tinderbox/scripts/webui/core/BuildPortsQueue.php
@@ -168,6 +156,7 @@ tinderbox/scripts/upgrade/user_permissions.map
@dirrm tinderbox/scripts/contrib/hooks/mass-build-pgsql
@dirrm tinderbox/scripts/contrib/hooks/make-jobs-safe
@dirrm tinderbox/scripts/contrib/hooks/kse-fix
+@dirrm tinderbox/scripts/contrib/hooks/create-pkgng-repo
@dirrm tinderbox/scripts/contrib/hooks/compress_wrkdir
@dirrm tinderbox/scripts/contrib/hooks
@dirrm tinderbox/scripts/contrib