mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
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.
This commit is contained in:
parent
74c04e9e79
commit
9b434230e6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=152082
@ -412,6 +412,7 @@
|
||||
SUBDIR += terraform
|
||||
SUBDIR += tet
|
||||
SUBDIR += thailocale
|
||||
SUBDIR += tinderbox
|
||||
SUBDIR += tkinfo
|
||||
SUBDIR += tkman
|
||||
SUBDIR += tkregexp
|
||||
|
48
misc/tinderbox/Makefile
Normal file
48
misc/tinderbox/Makefile
Normal file
@ -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>
|
3
misc/tinderbox/distinfo
Normal file
3
misc/tinderbox/distinfo
Normal file
@ -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
|
85
misc/tinderbox/files/pkg-message.in
Normal file
85
misc/tinderbox/files/pkg-message.in
Normal file
@ -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.
|
||||
|
1
misc/tinderbox/pkg-descr
Normal file
1
misc/tinderbox/pkg-descr
Normal file
@ -0,0 +1 @@
|
||||
foo
|
118
misc/tinderbox/pkg-plist
Normal file
118
misc/tinderbox/pkg-plist
Normal file
@ -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
|
48
ports-mgmt/tinderbox-devel/Makefile
Normal file
48
ports-mgmt/tinderbox-devel/Makefile
Normal file
@ -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>
|
3
ports-mgmt/tinderbox-devel/distinfo
Normal file
3
ports-mgmt/tinderbox-devel/distinfo
Normal file
@ -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
|
85
ports-mgmt/tinderbox-devel/files/pkg-message.in
Normal file
85
ports-mgmt/tinderbox-devel/files/pkg-message.in
Normal file
@ -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.
|
||||
|
1
ports-mgmt/tinderbox-devel/pkg-descr
Normal file
1
ports-mgmt/tinderbox-devel/pkg-descr
Normal file
@ -0,0 +1 @@
|
||||
foo
|
118
ports-mgmt/tinderbox-devel/pkg-plist
Normal file
118
ports-mgmt/tinderbox-devel/pkg-plist
Normal file
@ -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
|
48
ports-mgmt/tinderbox/Makefile
Normal file
48
ports-mgmt/tinderbox/Makefile
Normal file
@ -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>
|
3
ports-mgmt/tinderbox/distinfo
Normal file
3
ports-mgmt/tinderbox/distinfo
Normal file
@ -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
|
85
ports-mgmt/tinderbox/files/pkg-message.in
Normal file
85
ports-mgmt/tinderbox/files/pkg-message.in
Normal file
@ -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.
|
||||
|
1
ports-mgmt/tinderbox/pkg-descr
Normal file
1
ports-mgmt/tinderbox/pkg-descr
Normal file
@ -0,0 +1 @@
|
||||
foo
|
118
ports-mgmt/tinderbox/pkg-plist
Normal file
118
ports-mgmt/tinderbox/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user