aboutsummaryrefslogtreecommitdiffstats
path: root/www/rt36/files
diff options
context:
space:
mode:
authorkeichii <keichii@FreeBSD.org>2002-12-22 12:50:13 +0800
committerkeichii <keichii@FreeBSD.org>2002-12-22 12:50:13 +0800
commit68726e19e5372341b39b3f4ea319b18624a15879 (patch)
tree0d96d5f94acfe950eec8facb3eadc373d96b1039 /www/rt36/files
parente2856b02efaa0276e4bd88c3cb15831cdaebfe3f (diff)
downloadfreebsd-ports-gnome-68726e19e5372341b39b3f4ea319b18624a15879.tar.gz
freebsd-ports-gnome-68726e19e5372341b39b3f4ea319b18624a15879.tar.zst
freebsd-ports-gnome-68726e19e5372341b39b3f4ea319b18624a15879.zip
Add rt2 2.0.14,
rT is an industrial-grade ticketing system written in Perl. PR: 41701 Submitted by: plasma
Diffstat (limited to 'www/rt36/files')
-rw-r--r--www/rt36/files/patch-Makefile138
-rw-r--r--www/rt36/files/patch-bin-initacls.mysql12
-rw-r--r--www/rt36/files/patch-tools-initdb29
-rw-r--r--www/rt36/files/patch-tools-testdeps15
4 files changed, 194 insertions, 0 deletions
diff --git a/www/rt36/files/patch-Makefile b/www/rt36/files/patch-Makefile
new file mode 100644
index 000000000000..95f90e9782c6
--- /dev/null
+++ b/www/rt36/files/patch-Makefile
@@ -0,0 +1,138 @@
+--- Makefile Sat Jul 20 10:42:39 2002
++++ Makefile Thu Aug 15 22:17:55 2002
+@@ -2,7 +2,7 @@
+ # RT is Copyright 1996-2002 Jesse Vincent <jesse@bestpractical.com>
+ # It is distributed under the terms of the GNU General Public License, version 2
+
+-PERL = /usr/bin/perl
++PERL = /usr/local/bin/perl
+
+ RT_VERSION_MAJOR = 2
+ RT_VERSION_MINOR = 0
+@@ -15,7 +15,7 @@
+ BRANCH = HEAD
+
+ # This is the group that all of the installed files will be chgrp'ed to.
+-RTGROUP = rt
++RTGROUP = www
+
+
+ # User which should own rt binaries.
+@@ -40,7 +40,7 @@
+ # RT_PATH is the name of the directory you want make to install RT in
+ # RT must be installed in its own directory (don't set this to /usr/local)
+
+-RT_PATH = /opt/rt2
++RT_PATH = %%RT_PATH%%
+
+ # The rest of these paths are all configurable, but you probably don't want to
+ # put them elsewhere
+@@ -49,7 +49,7 @@
+ RT_ETC_PATH = $(RT_PATH)/etc
+ RT_CONFIG_PATH = $(RT_ETC_PATH)
+ RT_BIN_PATH = $(RT_PATH)/bin
+-RT_MAN_PATH = $(RT_PATH)/man
++RT_MAN_PATH = /usr/local/man
+ MASON_HTML_PATH = $(RT_PATH)/WebRT/html
+
+
+@@ -63,7 +63,7 @@
+ MASON_DATA_PATH = $(RT_PATH)/WebRT/data
+ MASON_SESSION_PATH = $(RT_PATH)/WebRT/sessiondata
+
+-RT_LOG_PATH = /tmp
++RT_LOG_PATH = /var/log/rt2
+
+ # RT_READABLE_DIR_MODE is the mode of directories that are generally meant
+ # to be accessable
+@@ -101,13 +101,13 @@
+ # "Pg" is known to work
+ # "Oracle" is in the early stages of working.
+
+-DB_TYPE = mysql
++DB_TYPE = %%DB_TYPE%%
+
+ # DB_HOME is where the Database's commandline tools live. $DB_HOME/bin
+ # should contain the binaries themselves, e.g. if "which mysql" gives
+ # "/usr/local/mysql/bin/mysql", $DB_HOME should be "/usr/local/mysql"
+
+-DB_HOME = /usr
++DB_HOME = /usr/local
+
+ # Set DBA to the name of a unix account with the proper permissions and
+ # environment to run your commandline SQL tools
+@@ -121,14 +121,14 @@
+ # For oracle, you want 'system'
+
+ DB_DBA = root
+-DB_DBA_PASSWORD =
+-
++DB_DBA_PASSWORD = %%DB_DBA_PASSWORD%%
++
+ #
+ # Set this to the Fully Qualified Domain Name of your database server.
+ # If the database is local, rather than on a remote host, using "localhost"
+ # will greatly enhance performance.
+
+-DB_HOST = localhost
++DB_HOST = %%DB_HOST%%
+
+ # If you're not running your database server on its default port,
+ # specifiy the port the database server is running on below.
+@@ -144,7 +144,7 @@
+ # to grant those database rights by hand.
+ #
+
+-DB_RT_HOST = localhost
++DB_RT_HOST = %%DB_HOST%%
+
+ # set this to the name you want to give to the RT database in
+ # your database server. For Oracle, this should be the name of your sid
+@@ -158,7 +158,7 @@
+ # Set this to the password used by the rt database user
+ # *** Change This Before Installation***
+
+-DB_RT_PASS = rt_pass
++DB_RT_PASS = %%DB_RT_PASS%%
+
+ # }}}
+
+@@ -168,7 +168,7 @@
+ # objectcode
+
+ WEB_USER = www
+-WEB_GROUP = rt
++WEB_GROUP = www
+
+ # }}}
+
+@@ -311,7 +311,7 @@
+
+
+ genschema:
+- $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DATABASE)' generate
++ $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DATABASE)' '$(DB_DBA_PASSWORD)' generate
+
+
+ initialize.Pg: createdb initdb.dba acls
+@@ -333,16 +333,16 @@
+
+
+ dropdb:
+- $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DATABASE)' drop
++ $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DATABASE)' '$(DB_DBA_PASSWORD)' drop
+
+
+ createdb:
+- $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DATABASE)' create
++ $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DATABASE)' '$(DB_DBA_PASSWORD)' create
+ initdb.dba:
+- $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DATABASE)' insert
++ $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DATABASE)' '$(DB_DBA_PASSWORD)' insert
+
+ initdb.rtuser:
+- $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_RT_USER)' '$(DB_DATABASE)' insert
++ $(PERL) tools/initdb '$(DB_TYPE)' '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_RT_USER)' '$(DB_DATABASE)' '$(DB_RT_PASS)' insert
+
+
+
diff --git a/www/rt36/files/patch-bin-initacls.mysql b/www/rt36/files/patch-bin-initacls.mysql
new file mode 100644
index 000000000000..42837f974cb5
--- /dev/null
+++ b/www/rt36/files/patch-bin-initacls.mysql
@@ -0,0 +1,12 @@
+--- bin/initacls.mysql Wed Nov 7 07:04:00 2001
++++ bin/initacls.mysql Thu Aug 15 18:01:14 2002
+@@ -14,7 +14,7 @@
+ export PATH
+
+ echo "Enter the mysql administrator's database password to create a new user for RT"
+-$BINDIR/mysql --host=${HOSTNAME} --port=${PORT} --user=${DATABASEADMIN} -p${DBAPASSWD} mysql < $DATABASEACLS
++$BINDIR/mysql --host=${HOSTNAME} --port=${PORT} --user=${DATABASEADMIN} --password=${DBAPASSWD} mysql < $DATABASEACLS
+
+ echo "Enter the mysql administrator's database password to nondestructively reload the database"
+-$BINDIR/mysqladmin --host=${HOSTNAME} --port=${PORT} --user=${DATABASEADMIN} -p${DBAPASSWD} reload
++$BINDIR/mysqladmin --host=${HOSTNAME} --port=${PORT} --user=${DATABASEADMIN} --password=${DBAPASSWD} reload
diff --git a/www/rt36/files/patch-tools-initdb b/www/rt36/files/patch-tools-initdb
new file mode 100644
index 000000000000..1ee6462ed640
--- /dev/null
+++ b/www/rt36/files/patch-tools-initdb
@@ -0,0 +1,29 @@
+--- tools/initdb Wed Nov 7 07:06:06 2001
++++ tools/initdb Thu Aug 15 17:17:19 2002
+@@ -17,7 +17,7 @@
+ $SCHEMA_DIR ="etc";
+ $SCHEMA_FILE = "$SCHEMA_DIR/schema.pm"; #hmm
+
+-($DB_TYPE, $DB_HOME, $DB_HOST, $DB_PORT, $DB_DBA, $DB_DATABASE, $ACTION) = @ARGV;
++($DB_TYPE, $DB_HOME, $DB_HOST, $DB_PORT, $DB_DBA, $DB_DATABASE, $DB_DBA_PASSWORD, $ACTION) = @ARGV;
+
+
+ if ($DEBUG) {
+@@ -71,6 +71,8 @@
+ # {{{ sub prompt_for_dba_password
+
+ sub prompt_for_dba_password {
++ return if defined $DB_DBA_PASSWORD;
++
+ print "Enter the $DB_TYPE password for $DB_DBA: ";
+
+ system "stty -echo";
+@@ -107,7 +109,7 @@
+ If you have an existing RT 2.x installation, this will destroy all your data.
+ i
+ END
+- exit unless _yesno();
++ # exit unless _yesno();
+
+ }
+
diff --git a/www/rt36/files/patch-tools-testdeps b/www/rt36/files/patch-tools-testdeps
new file mode 100644
index 000000000000..b4e392a23cec
--- /dev/null
+++ b/www/rt36/files/patch-tools-testdeps
@@ -0,0 +1,15 @@
+--- tools/testdeps Thu Feb 28 14:38:10 2002
++++ tools/testdeps Thu Aug 15 16:43:45 2002
+@@ -107,7 +107,11 @@
+ $module = "DBD::mysql::Install" if ($module =~ /DBD::mysql/);
+
+ print "Installing with CPAN...";
+- CPAN::install($module);
++ require CPAN::FirstTime; # shut up configuration
++ no strict 'refs';
++ local $^W;
++ *{'ExtUtils::MakeMaker::prompt'} = sub ($;$) { '' };
++ CPAN::force('install', $module);
+ }
+ print "\n";
+ exit(1) if ($mode =~ /-q/);