aboutsummaryrefslogtreecommitdiffstats
path: root/misc/tinderbox
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-12-26 18:40:21 +0800
committeredwin <edwin@FreeBSD.org>2005-12-26 18:40:21 +0800
commit3c59f6981a4b050af0222de5540d230f4e3409d5 (patch)
tree80f6a18893f3a09d4b3e8b24b7734c0a63e4b605 /misc/tinderbox
parent95724ef4dee586273da64d67d9af1cfdc86b3dfe (diff)
downloadfreebsd-ports-gnome-3c59f6981a4b050af0222de5540d230f4e3409d5.tar.gz
freebsd-ports-gnome-3c59f6981a4b050af0222de5540d230f4e3409d5.tar.zst
freebsd-ports-gnome-3c59f6981a4b050af0222de5540d230f4e3409d5.zip
Port maintainers, commiters and update submitters. Please behold,
here is the tinderbox port which should give you a tinderbox system to test your ports before submitting it. It's unnmissable for everybody making ports, and belongs to the range of tools like portlint and porttools.
Diffstat (limited to 'misc/tinderbox')
-rw-r--r--misc/tinderbox/Makefile48
-rw-r--r--misc/tinderbox/distinfo3
-rw-r--r--misc/tinderbox/files/pkg-message.in85
-rw-r--r--misc/tinderbox/pkg-descr1
-rw-r--r--misc/tinderbox/pkg-plist118
5 files changed, 255 insertions, 0 deletions
diff --git a/misc/tinderbox/Makefile b/misc/tinderbox/Makefile
new file mode 100644
index 000000000000..3879b607020e
--- /dev/null
+++ b/misc/tinderbox/Makefile
@@ -0,0 +1,48 @@
+# Ports collection makefile for: misc/tinderbox
+# Whom: Edwin Groothuis <edwin@mavetju.org>
+# Date created: 31 december 2005
+#
+# $FreeBSD$
+
+PORTNAME= tinderbox
+PORTVERSION= 2.2.1
+CATEGORIES= misc
+MASTER_SITES= http://tinderbox.marcuscom.com/
+
+MAINTAINER= edwin@mavetju.org
+COMMENT= Port build tinderbox system
+
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
+ ${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
+ ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB \
+ cvsup:${PORTSDIR}/net/cvsup
+
+OPTIONS= PGSQL "With pgsql" On \
+ MYSQL "With mysql" Off
+
+NO_BUILD= yes
+USE_APACHE= yes
+USE_PHP= pgsql mysql session
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PGSQL)
+USE_PGSQL= yes
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+.endif
+
+.if defined(WITH_MYSQL)
+USE_MYSQL= yes
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
+.endif
+
+do-install:
+ ${MKDIR} ${PREFIX}/tinderbox/scripts
+ ${CP} -R ${WRKSRC}/* ${PREFIX}/tinderbox/scripts
+
+post-install:
+ ${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/misc/tinderbox/distinfo b/misc/tinderbox/distinfo
new file mode 100644
index 000000000000..cb1190d4d269
--- /dev/null
+++ b/misc/tinderbox/distinfo
@@ -0,0 +1,3 @@
+MD5 (tinderbox-2.2.1.tar.gz) = 383f78b0503d76d917430fcd62008298
+SHA256 (tinderbox-2.2.1.tar.gz) = e59c9902f50177e0b83f2504063b731ded5ef0f2df199136b5f5c8932b69d87f
+SIZE (tinderbox-2.2.1.tar.gz) = 116889
diff --git a/misc/tinderbox/files/pkg-message.in b/misc/tinderbox/files/pkg-message.in
new file mode 100644
index 000000000000..61fb23745613
--- /dev/null
+++ b/misc/tinderbox/files/pkg-message.in
@@ -0,0 +1,85 @@
+misc/tinderbox is now setup, but it requires some additional setup.
+
+The following walkthrough is for PostgreSQL databases:
+
+- First, run the setup program:
+ %%PREFIX%%/tinderbox/scripts/setup.sh
+
+ If the database is running on the same server as you're on now,
+ and you have administrator access to it, answer this question
+ with yes:
+ "Does this host have access to connect to the Tinderbox database as a database administrator?"
+
+ Enter database admin user [root]: pgsql
+ Enter the desired username for the Tinderbox database : tinderbox
+ Shall the new role be a superuser? (y/n) n
+ Shall the new role be allowed to create databases? (y/n) y
+ Shall the new role be allowed to create more new roles? (y/n) n
+
+ The other questions should just be entered through.
+
+The following walkthrough is the tinderbox environment setup:
+
+- Edit the file %%PREFIX%%/scripts/tinderbox.ph
+
+ - $BUILD_ROOT should be "%%PREFIX%%/tinderbox"
+ - $SUBJECT should be "My Tinderbox"
+ - $SENDER should be your email address
+ - $SMTP_HOST should be your SMTP server (localhost?)
+ - $SERVER_HOST should be the name your machine is known as. If
+ it is your own machine and your access it directory, try localhost
+ here if nothing else sounds reasonable.
+ - Comment out the lines after "for www", and uncomment the lines
+
+- Edit the file %%PREFIX%%/tinderbox/scripts/www-exp/inc_ds.php
+
+ - $DB_HOST should be localhost
+ - $DB_DRIVER should be pgsql
+ - $DB_USER should be tinderbox
+
+- Edit the file %%PREFIX%%/tinderbox/scripts/www-exp/inc_tinderbox.php
+
+ - $rootdir should be %%PREFIX%%/tinderbox
+ - $wwwrooturi should be /tb
+ - $tinderbox_name should be "My Tinderbox"
+ - $tinderbox_title should be "FreeBSD Packages"
+
+The following walkthrough is the initial tinderbox population setup
+and should be executed in %%PREFIX%%/tinderbox/scripts.
+
+
+- Create a jail. A jail is a chrooted version of the FreeBSD operating
+ system, for example 6.0-RELEASE or 5.4-RELEASE:
+ ./create Jail -j 5.4 -d "FreeBSD 5.4-RELEASE" -t RELENG_5_4_0_RELEASE -u CVSUP
+ You can have multiple jails on a single machine.
+ This takes a while.
+
+- Create a ports tree:
+ ./create PortsTree -p FreeBSD -d "FreeBSD ports tree" -w http://www.freebsd.org/cgi/cvsweb.cgi/ports/
+ This takes a while.
+
+- And then link the two together in a build:
+ ./create Build -b 5.4-FreeBSD -j 5.4 -p FreeBSD -d "5.4-RELEASE with FreeBSD ports tree"
+
+- Now the tinderbox is ready to be used. See the documents
+ %%PREFIX%%/tinderbox/scripts/README and the "Using Tinderbox"
+ section for more information.
+
+The following walkthrough is the webserver setup:
+
+- In your Apache configuration, add the following lines:
+
+ Alias /tb/ "/usr/local/tinderbox/scripts/www-exp"
+ <Directory "/usr/local/tinderbox/scripts/www-exp/">
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+ Check your system by going to http://localhost/tb/
+
+- And now, the first port build!
+
+Now the tinderbox is ready to be used. See the documents
+%%PREFIX%%/tinderbox/scripts/README and the "Using Tinderbox" section
+for more information.
+
diff --git a/misc/tinderbox/pkg-descr b/misc/tinderbox/pkg-descr
new file mode 100644
index 000000000000..257cc5642cb1
--- /dev/null
+++ b/misc/tinderbox/pkg-descr
@@ -0,0 +1 @@
+foo
diff --git a/misc/tinderbox/pkg-plist b/misc/tinderbox/pkg-plist
new file mode 100644
index 000000000000..2a202d8dbebe
--- /dev/null
+++ b/misc/tinderbox/pkg-plist
@@ -0,0 +1,118 @@
+tinderbox/scripts/etc/rc.d/tinderd.sh
+tinderbox/scripts/upgrade/mig_shlib.sh
+tinderbox/scripts/upgrade/mig_mysql_tinderbox-1.X_to_2.0.0.sql
+tinderbox/scripts/upgrade/mig_mysql_tinderbox-2.0.0_to_2.1.0.sql
+tinderbox/scripts/upgrade/mig_mysql_tinderbox-2.1.0_to_2.1.1.sql
+tinderbox/scripts/upgrade/mig_mysql_tinderbox-2.1.1_to_2.2.0.sql
+tinderbox/scripts/upgrade/mig_pgsql_tinderbox-2.1.1_to_2.2.0.sql
+tinderbox/scripts/man/man1/tc-configCcache.1
+tinderbox/scripts/man/man1/tc-configDistfile.1
+tinderbox/scripts/man/man1/tc-configGet.1
+tinderbox/scripts/man/man1/tc-configJail.1
+tinderbox/scripts/man/man1/tc-configTinderd.1
+tinderbox/scripts/man/man1/tc-init.1
+tinderbox/scripts/www/Makefile
+tinderbox/scripts/www/Jail.php
+tinderbox/scripts/www/Port.php
+tinderbox/scripts/www/PortsTree.php
+tinderbox/scripts/www/TinderObject.php
+tinderbox/scripts/www/TinderboxDS.php
+tinderbox/scripts/www/inc_ds.php
+tinderbox/scripts/www/failures.php
+tinderbox/scripts/www/index.php
+tinderbox/scripts/www/lastbuilds.php
+tinderbox/scripts/www/showbuild.php
+tinderbox/scripts/www/showport.php
+tinderbox/scripts/www/inc_tinderbox.php
+tinderbox/scripts/www/tinderstyle.css
+tinderbox/scripts/www/Build.php
+tinderbox/scripts/lib/PortFailReason.pm
+tinderbox/scripts/lib/BuildPortsQueue.pm
+tinderbox/scripts/lib/Host.pm
+tinderbox/scripts/lib/Jail.pm
+tinderbox/scripts/lib/MakeCache.pm
+tinderbox/scripts/lib/Port.pm
+tinderbox/scripts/lib/PortsTree.pm
+tinderbox/scripts/lib/TBConfig.pm
+tinderbox/scripts/lib/TinderObject.pm
+tinderbox/scripts/lib/TinderboxDS.pm
+tinderbox/scripts/lib/User.pm
+tinderbox/scripts/lib/tinderlib.pl
+tinderbox/scripts/lib/tinderbox_shlib.sh
+tinderbox/scripts/lib/setup_shlib.sh
+tinderbox/scripts/lib/setup-mysql.sh
+tinderbox/scripts/lib/setup-pgsql.sh
+tinderbox/scripts/lib/enterbuild
+tinderbox/scripts/lib/PortFailPattern.pm
+tinderbox/scripts/lib/Build.pm
+tinderbox/scripts/www-exp/core/PortFailReason.php
+tinderbox/scripts/www-exp/core/BuildPortsQueue.php
+tinderbox/scripts/www-exp/core/Host.php
+tinderbox/scripts/www-exp/core/Jail.php
+tinderbox/scripts/www-exp/core/Port.php
+tinderbox/scripts/www-exp/core/PortsTree.php
+tinderbox/scripts/www-exp/core/TinderObject.php
+tinderbox/scripts/www-exp/core/TinderboxDS.php
+tinderbox/scripts/www-exp/core/User.php
+tinderbox/scripts/www-exp/core/Build.php
+tinderbox/scripts/www-exp/module/modulePortFailureReasons.php
+tinderbox/scripts/www-exp/module/moduleBuildPorts.php
+tinderbox/scripts/www-exp/module/moduleBuilds.php
+tinderbox/scripts/www-exp/module/moduleHosts.php
+tinderbox/scripts/www-exp/module/modulePorts.php
+tinderbox/scripts/www-exp/module/moduleSession.php
+tinderbox/scripts/www-exp/module/moduleTinderd.php
+tinderbox/scripts/www-exp/module/moduleUsers.php
+tinderbox/scripts/www-exp/module/module.php
+tinderbox/scripts/www-exp/templates/default/list_failure_reasons.tpl
+tinderbox/scripts/www-exp/templates/default/describe_port.tpl
+tinderbox/scripts/www-exp/templates/default/display_login.tpl
+tinderbox/scripts/www-exp/templates/default/failed_buildports.tpl
+tinderbox/scripts/www-exp/templates/default/latest_buildports.tpl
+tinderbox/scripts/www-exp/templates/default/list_buildports.tpl
+tinderbox/scripts/www-exp/templates/default/list_builds.tpl
+tinderbox/scripts/www-exp/templates/default/list_tinderd_queue.tpl
+tinderbox/scripts/www-exp/templates/default/messages.inc
+tinderbox/scripts/www-exp/templates/default/please_login.tpl
+tinderbox/scripts/www-exp/templates/default/tinderstyle.css
+tinderbox/scripts/www-exp/templates/default/user_admin.tpl
+tinderbox/scripts/www-exp/templates/default/user_permissions.tpl
+tinderbox/scripts/www-exp/templates/default/user_properties.tpl
+tinderbox/scripts/www-exp/templates/default/current_buildports.tpl
+tinderbox/scripts/www-exp/inc_ds.php
+tinderbox/scripts/www-exp/inc_tinderbox.php
+tinderbox/scripts/www-exp/index.php
+tinderbox/scripts/tinderbox-mysql.schema
+tinderbox/scripts/tc
+tinderbox/scripts/setup.sh
+tinderbox/scripts/rawenv.dist
+tinderbox/scripts/portbuild
+tinderbox/scripts/pnohang.c
+tinderbox/scripts/mkjail
+tinderbox/scripts/mkbuild
+tinderbox/scripts/makemake
+tinderbox/scripts/enterbuild
+tinderbox/scripts/ds.ph.dist
+tinderbox/scripts/create
+tinderbox/scripts/buildscript
+tinderbox/scripts/README
+tinderbox/scripts/upgrade.sh
+tinderbox/scripts/tinderd
+tinderbox/scripts/tinderbuild
+tinderbox/scripts/tinderbox.ph.dist
+tinderbox/scripts/tinderbox-pgsql.schema
+
+@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-exp
+@dirrm tinderbox/scripts/www
+@dirrm tinderbox/scripts/upgrade
+@dirrm tinderbox/scripts/man/man1
+@dirrm tinderbox/scripts/man
+@dirrm tinderbox/scripts/lib
+@dirrm tinderbox/scripts/etc/rc.d
+@dirrm tinderbox/scripts/etc
+@unexec rmdir %D/tinderbox/scripts 2>/dev/null || true
+@unexec rmdir %D/tinderbox 2>/dev/null || true