Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2013 10:48:31 +0000 (UTC)
From:      Ion-Mihai Tetcu <itetcu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r310314 - in head/ports-mgmt/tinderbox-devel: . files
Message-ID:  <201301131048.r0DAmVkn012514@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: itetcu
Date: Sun Jan 13 10:48:31 2013
New Revision: 310314
URL: http://svnweb.freebsd.org/changeset/ports/310314

Log:
  - update to 4.0.0.b2
  - convert to OPTIONSng
  - drop local patches incorporated upstream
  
  Submitted by:	beat@

Deleted:
  head/ports-mgmt/tinderbox-devel/files/patch-lib-tinderlib.sh
  head/ports-mgmt/tinderbox-devel/files/patch-lib__tinderlib.sh
  head/ports-mgmt/tinderbox-devel/files/patch-sql__values.hooks
Modified:
  head/ports-mgmt/tinderbox-devel/Makefile
  head/ports-mgmt/tinderbox-devel/distinfo
  head/ports-mgmt/tinderbox-devel/pkg-plist

Modified: head/ports-mgmt/tinderbox-devel/Makefile
==============================================================================
--- head/ports-mgmt/tinderbox-devel/Makefile	Sun Jan 13 10:43:29 2013	(r310313)
+++ head/ports-mgmt/tinderbox-devel/Makefile	Sun Jan 13 10:48:31 2013	(r310314)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	tinderbox
-DISTVERSION=	3.4${SNAP}
-PORTREVISION=	2
+DISTVERSION=	4.0.0.b2
 PORTEPOCH=	1
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	http://tinderbox.marcuscom.com/ \
@@ -16,36 +15,43 @@ COMMENT=	Port build tinderbox system, de
 
 CONFLICTS=	tinderbox-[0-9]*
 
-OPTIONS=	PGSQL "With pgsql" Off \
-		MYSQL "With mysql" On \
-		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 \
-		EMAILS "Support for build failure/completion emails" On \
-		LSOF "For killMountProcesses() when using nullfs" On \
-		LOG_COMPRESS "Support bzip'ing the logs" On \
-		PARALLEL "Enable PARALLEL extra patch" On \
-		TMPFS "Enable TMPFS extra patch" Off
+OPTIONS_MULTI=		DB
+OPTIONS_MULTI_DB=	PGSQL MYSQL SQLITE
+
+OPTIONS_RADIO=		WEB
+OPTIONS_RADIO_WEB=	APACHE HIAWATHA LIGHTTPD
+
+OPTIONS_DEFINE=		CHECK_FOR_ROOT EMAILS LSOF LOG_COMPRESS PARALLEL \
+			TMPFS
+
+CHECK_FOR_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
+PARALLEL_DESC=		Apply PARALLEL extra patch
+TMPFS_DESC=		Apply TMPFS extra patch
+HIAWATHA_DESC=		Hiawatha server
+
+OPTIONS_DEFAULT=	MYSQL APACHE CHECK_FOR_ROOT EMAILS LSOF \
+			LOG_COMPRESS PARALLEL
 
 NO_BUILD=	yes
 WANT_PERL=	yes
 SUB_FILES=	pkg-message
 
-SNAP=		.r3-20120404
+#SNAP=		.r3-20120404
 #SNAP=		-20110101 # 22:28:07 UTC
 
 MAN1=		tc-configCcache.1 tc-configDistfile.1 tc-configGet.1 \
 		tc-configJail.1 tc-configTinderd.1 tc-init.1
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.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}
+WEBUI=		yes
 .endif
 
-.if defined(WITH_WEBUI)
+.if defined(WEBUI)
 WANT_PHP_WEB=	yes
 USE_PHP=	session
 PLIST_SUB+=	WEBUI=""
@@ -53,17 +59,17 @@ PLIST_SUB+=	WEBUI=""
 PLIST_SUB+=	WEBUI="@comment "
 .endif
 
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
 USE_PGSQL=	yes
-.if defined(WITH_WEBUI)
+.if defined(WEBUI)
 RUN_DEPENDS+=	${LOCALBASE}/share/pear/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql
 USE_PHP+=	pgsql
 .endif
 RUN_DEPENDS+=	p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
 .endif
 
-.if !defined(WITHOUT_MYSQL)
-.if defined(WITH_WEBUI)
+.if ${PORT_OPTIONS:MMYSQL}
+.if defined(WEBUI)
 RUN_DEPENDS+=	${LOCALBASE}/share/pear/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql
 USE_PHP+=	mysql
 .endif
@@ -71,47 +77,49 @@ USE_MYSQL=	yes
 RUN_DEPENDS+=	p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
 .endif
 
-.if !defined(WITHOUT_APACHE) && defined(WITH_WEBUI)
+.if ${PORT_OPTIONS:MSQLITE}
+.if defined(WEBUI)
+RUN_DEPENDS+=	${LOCALBASE}/share/pear/MDB2/Driver/sqlite.php:${PORTSDIR}/databases/pear-MDB2_Driver_sqlite
+USE_PHP+=	sqlite
+.endif
+RUN_DEPENDS+=	p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite
+.endif
+
+.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
 .endif
 
-.if defined(WITH_EMAILS)
+.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
 
-.if defined(WITH_LOG_COMPRESS)
+.if ${PORT_OPTIONS:MLOG_COMPRESS}
 RUN_DEPENDS+=	p5-Compress-Bzip2>=0:${PORTSDIR}/archivers/p5-Compress-Bzip2
 .endif
 
-.if defined(WITH_TMPFS) && defined(WITH_PARALLEL)
+.if ${PORT_OPTIONS:MTMPFS} && ${PORT_OPTIONS:MPARALLEL}
 EXTRA_PATCHES+=		${FILESDIR}/extra-tmpfs_para.patch
-.elif defined(WITH_TMPFS) && !defined(WITH_PARALLEL)
+.elif ${PORT_OPTIONS:MTMPFS}
 EXTRA_PATCHES+=		${FILESDIR}/extra-tmpfs.patch
-.elif defined(WITH_PARALLEL) && !defined(WITH_TMPFS)
+.elif ${PORT_OPTIONS:MPARALLEL}
 EXTRA_PATCHES+=		${FILESDIR}/extra-parallel.patch
 .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, Hiawatha or LightHTTPD if not using the WebUI."
-	@${FALSE}
-.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_FOR_ROOT}
 	${REINPLACE_CMD} -e 's/^if \[ `id -u` != 0 \]; then/if false; then/' \
 		${WRKSRC}/tc
 .endif
@@ -133,4 +141,4 @@ do-install:
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/ports-mgmt/tinderbox-devel/distinfo
==============================================================================
--- head/ports-mgmt/tinderbox-devel/distinfo	Sun Jan 13 10:43:29 2013	(r310313)
+++ head/ports-mgmt/tinderbox-devel/distinfo	Sun Jan 13 10:48:31 2013	(r310314)
@@ -1,2 +1,2 @@
-SHA256 (tinderbox/tinderbox-3.4.r3-20120404.tar.gz) = 178b55ae047704e32da1937f0ce367d209024ad302d08a5c1a8be9b9725cf33e
-SIZE (tinderbox/tinderbox-3.4.r3-20120404.tar.gz) = 937472
+SHA256 (tinderbox/tinderbox-4.0.0.b2.tar.gz) = 0b05c59a10789e64a0dcc61150aa2229b89ce881f67cfb4416ad1a95160a9c31
+SIZE (tinderbox/tinderbox-4.0.0.b2.tar.gz) = 150213

Modified: head/ports-mgmt/tinderbox-devel/pkg-plist
==============================================================================
--- head/ports-mgmt/tinderbox-devel/pkg-plist	Sun Jan 13 10:43:29 2013	(r310313)
+++ head/ports-mgmt/tinderbox-devel/pkg-plist	Sun Jan 13 10:48:31 2013	(r310314)
@@ -30,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
@@ -44,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
@@ -58,28 +61,8 @@ tinderbox/scripts/upgrade/builds.map
 tinderbox/scripts/upgrade/config.map
 tinderbox/scripts/upgrade/hooks.map
 tinderbox/scripts/upgrade/jails.map
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2.4_to_3.2.5.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.0_to_3.1.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.0_to_3.1.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.1_to_3.2.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.1_to_3.2.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2_to_3.2.1.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.2_to_3.2.1.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.2.1_to_3.2.2.sql
-tinderbox/scripts/upgrade/mig_pgsql_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_pgsql_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_pgsql_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_pgsql_tinderbox-3.2.5_to_3.2.6.sql
-tinderbox/scripts/upgrade/mig_mysql_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_mysql_tinderbox-3.2.6_to_3.3.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.3_to_3.3.1.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.3_to_3.3.1.sql
-tinderbox/scripts/upgrade/mig_pgsql_tinderbox-3.3.1_to_3.3.2.sql
-tinderbox/scripts/upgrade/mig_mysql_tinderbox-3.3.1_to_3.3.2.sql
+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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301131048.r0DAmVkn012514>