summaryrefslogtreecommitdiff
path: root/www/rt60/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/rt60/files')
-rw-r--r--www/rt60/files/patch-Makefile.in91
-rw-r--r--www/rt60/files/patch-config.layout19
-rw-r--r--www/rt60/files/patch-configure11
-rw-r--r--www/rt60/files/patch-sbin_rt-test-dependencies.in11
-rw-r--r--www/rt60/files/pkg-message.in52
5 files changed, 184 insertions, 0 deletions
diff --git a/www/rt60/files/patch-Makefile.in b/www/rt60/files/patch-Makefile.in
new file mode 100644
index 000000000000..38837b9b6c27
--- /dev/null
+++ b/www/rt60/files/patch-Makefile.in
@@ -0,0 +1,91 @@
+--- Makefile.in.orig 2020-07-14 20:59:31 UTC
++++ Makefile.in
+@@ -59,7 +59,7 @@ CONFIG_FILE = $(CONFIG_FILE_PATH)/RT_Config.pm
+
+ CONFIG_FILE_PATH = @CONFIG_FILE_PATH_R@
+ CONFIG_FILE = $(CONFIG_FILE_PATH)/RT_Config.pm
+-SITE_CONFIG_FILE = $(CONFIG_FILE_PATH)/RT_SiteConfig.pm
++SITE_CONFIG_FILE = $(CONFIG_FILE_PATH)/RT_SiteConfig.pm-dist
+
+
+ RT_VERSION_MAJOR = @RT_VERSION_MAJOR@
+@@ -279,16 +279,13 @@ fixdeps:
+ depends: fixdeps
+
+ fixdeps:
+- $(PERL) ./sbin/rt-test-dependencies --install
++ $(PERL) ./sbin/rt-test-dependencies --verbose
+
+ #}}}
+
+ fixperms:
+ # Make the libraries readable
+ chmod $(RT_READABLE_DIR_MODE) $(DESTDIR)$(RT_PATH)
+- chown -R $(LIBS_OWNER) $(DESTDIR)$(RT_LIB_PATH)
+- chgrp -R $(LIBS_GROUP) $(DESTDIR)$(RT_LIB_PATH)
+- chmod -R u+rwX,go-w,go+rX $(DESTDIR)$(RT_LIB_PATH)
+
+
+ chmod $(RT_READABLE_DIR_MODE) $(DESTDIR)$(RT_BIN_PATH)
+@@ -310,12 +307,6 @@ fixperms:
+ # Make the system binaries executable also
+ cd $(DESTDIR)$(RT_SBIN_PATH) && ( chmod 0755 $(SYSTEM_BINARIES) ; chown $(BIN_OWNER) $(SYSTEM_BINARIES); chgrp $(RTGROUP) $(SYSTEM_BINARIES))
+
+- # Make upgrade scripts executable if they are in the source.
+- #
+- ( cd etc/upgrade && find . -type f -not -name '*.in' -perm @FINDPERM@0111 -print ) | while read file ; do \
+- chmod a+x "$(DESTDIR)$(RT_ETC_PATH)/upgrade/$$file" ; \
+- done
+-
+ # Make the web ui readable by all.
+ chmod -R u+rwX,go-w,go+rX $(DESTDIR)$(MASON_HTML_PATH) \
+ $(DESTDIR)$(MASON_LOCAL_HTML_PATH) \
+@@ -367,14 +358,14 @@ clean-mason-cache:
+ rm -rf $(DESTDIR)$(MASON_DATA_PATH)/etc/*
+ rm -rf $(DESTDIR)$(MASON_DATA_PATH)/obj/*
+
+-install: testdeps config-install dirs files-install fixperms instruct
++install: config-install dirs files-install
+
+ files-install: libs-install etc-install config-install bin-install sbin-install html-install doc-install font-install po-install static-install
+
+ config-install:
+-@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -o $(BIN_OWNER) -g $(RTGROUP) -d $(DESTDIR)$(CONFIG_FILE_PATH)
+-@COMMENT_INPLACE_LAYOUT@ -$(INSTALL) -m 0440 -o $(BIN_OWNER) -g $(RTGROUP) etc/RT_Config.pm $(DESTDIR)$(CONFIG_FILE)
+-@COMMENT_INPLACE_LAYOUT@ [ -f $(DESTDIR)$(SITE_CONFIG_FILE) ] || $(INSTALL) -m 0640 -o $(BIN_OWNER) -g $(RTGROUP) etc/RT_SiteConfig.pm $(DESTDIR)$(SITE_CONFIG_FILE)
++@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -d $(DESTDIR)$(CONFIG_FILE_PATH)
++@COMMENT_INPLACE_LAYOUT@ -$(INSTALL) -m 0440 etc/RT_Config.pm $(DESTDIR)$(CONFIG_FILE)
++@COMMENT_INPLACE_LAYOUT@ [ -f $(DESTDIR)$(SITE_CONFIG_FILE) ] || $(INSTALL) -m 0640 etc/RT_SiteConfig.pm $(DESTDIR)$(SITE_CONFIG_FILE)
+ @COMMENT_INPLACE_LAYOUT@ @echo "Installed configuration. About to install RT in $(RT_PATH)"
+
+ test:
+@@ -466,19 +457,12 @@ etc-install:
+ @COMMENT_INPLACE_LAYOUT@ for file in $(ETC_FILES) ; do \
+ @COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0644 "etc/$$file" "$(DESTDIR)$(RT_ETC_PATH)/" ; \
+ @COMMENT_INPLACE_LAYOUT@ done
+-@COMMENT_INPLACE_LAYOUT@ [ -d $(DESTDIR)$(RT_ETC_PATH)/upgrade ] || $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_ETC_PATH)/upgrade
+-@COMMENT_INPLACE_LAYOUT@ -( cd etc/upgrade && find . -type d -print ) | while read dir ; do \
+-@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -d "$(DESTDIR)$(RT_ETC_PATH)/upgrade/$$dir" ; \
+-@COMMENT_INPLACE_LAYOUT@ done
+-@COMMENT_INPLACE_LAYOUT@ -( cd etc/upgrade && find . -type f -not -name '*.in' -print ) | while read file ; do \
+-@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0644 "etc/upgrade/$$file" "$(DESTDIR)$(RT_ETC_PATH)/upgrade/$$file" ; \
+-@COMMENT_INPLACE_LAYOUT@ done
+
+
+ sbin-install:
+ @COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_SBIN_PATH)
+ @COMMENT_INPLACE_LAYOUT@ for file in $(SYSTEM_BINARIES) ; do \
+-@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -o $(BIN_OWNER) -g $(RTGROUP) -m 0755 "sbin/$$file" "$(DESTDIR)$(RT_SBIN_PATH)/" ; \
++@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 "sbin/$$file" "$(DESTDIR)$(RT_SBIN_PATH)/" ; \
+ @COMMENT_INPLACE_LAYOUT@ done
+
+
+@@ -486,7 +470,7 @@ bin-install:
+ bin-install:
+ @COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_BIN_PATH)
+ @COMMENT_INPLACE_LAYOUT@ for file in $(BINARIES) ; do \
+-@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -o $(BIN_OWNER) -g $(RTGROUP) -m 0755 "bin/$$file" "$(DESTDIR)$(RT_BIN_PATH)/" ; \
++@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 "bin/$$file" "$(DESTDIR)$(RT_BIN_PATH)/" ; \
+ @COMMENT_INPLACE_LAYOUT@ done
+
+
diff --git a/www/rt60/files/patch-config.layout b/www/rt60/files/patch-config.layout
new file mode 100644
index 000000000000..0b2f2aaaf0da
--- /dev/null
+++ b/www/rt60/files/patch-config.layout
@@ -0,0 +1,19 @@
+--- config.layout.orig 2014-05-06 17:59:04 UTC
++++ config.layout
+@@ -103,14 +103,14 @@
+ </Layout>
+
+ <Layout FreeBSD>
+- prefix: /usr/local
++ prefix: %%PREFIX%%
+ exec_prefix: ${prefix}
+ bindir: ${exec_prefix}/bin
+ sbindir: ${exec_prefix}/sbin
+ sysconfdir: ${prefix}/etc+
+ mandir: ${prefix}/man
+ plugindir: ${prefix}/plugins
+- libdir: ${prefix}/lib+
++ libdir: %%SITE_PERL%%
+ datadir: ${prefix}/share+
+ htmldir: ${datadir}/html
+ lexdir: ${datadir}/po
diff --git a/www/rt60/files/patch-configure b/www/rt60/files/patch-configure
new file mode 100644
index 000000000000..f92524532e84
--- /dev/null
+++ b/www/rt60/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig 2016-07-20 15:48:58 UTC
++++ configure
+@@ -2112,7 +2112,7 @@ $as_echo "$as_me: WARNING: Layout file $
+ s/^#.*$//m;
+ s/^\s+//gim;
+ s/\s+$/\n/gim;
+- s/\+$/\/rt3/gim;
++ s/\+$/\/rt60/gim;
+ # m4 will not let us just use $srcdir/config.layout, we need $1
+ s/^\s*((?:bin|sbin|libexec|data|sysconf|sharedstate|localstate|lib|include|oldinclude|info|man|html)dir)\s*:\s*(.*)$/$1=$2/gim;
+ s/^\s*(.*?)\s*:\s*(.*)$/\(test "x\$$1" = "xNONE" || test "x\$$1" = "x") && $1=$2/gim;
diff --git a/www/rt60/files/patch-sbin_rt-test-dependencies.in b/www/rt60/files/patch-sbin_rt-test-dependencies.in
new file mode 100644
index 000000000000..060b60690d07
--- /dev/null
+++ b/www/rt60/files/patch-sbin_rt-test-dependencies.in
@@ -0,0 +1,11 @@
+--- sbin/rt-test-dependencies.in.orig 2020-10-08 10:56:59 UTC
++++ sbin/rt-test-dependencies.in
+@@ -237,7 +237,7 @@ sub read_deps {
+ };
+
+ my ($vol, $dir, $path) = File::Spec->splitpath( $script_path );
+- my $ret = do "$dir/../etc/cpanfile";
++ my $ret = do "$dir/../RT_ETC_DIR/cpanfile";
+ die "Failed to load cpanfile: @{[$@ || $!]}" if not defined $ret and ($@ or $!);
+
+ return %deps;
diff --git a/www/rt60/files/pkg-message.in b/www/rt60/files/pkg-message.in
new file mode 100644
index 000000000000..348280605082
--- /dev/null
+++ b/www/rt60/files/pkg-message.in
@@ -0,0 +1,52 @@
+[
+{ type: install
+ message: <<EOM
+To initialize RT's database:
+
+$ sudo perl rt-setup-database --action init --dba dba --dba-password X
+
+To clear a previously created RT database:
+
+$ sudo perl rt-setup-database --action drop --dba dba --dba-password X
+
+To complete the installation of this port, please follow these steps:
+
+1. Edit %%RT_ETC_PATH%%/RT_SiteConfig.pm, by referring to
+ the default config file (%%RT_ETC_PATH%%/RT_Config.pm).
+2. Configure the email and web gateways. Please refer to
+ 'SETTING UP THE MAIL GATEWAY' in %%DOCSDIR%%/README
+3. Restart Apache or whichever web delivery mechanism you selected..
+4. Do remember to *CHANGE* the root's password for the web interface.
+ The default is "password" (without the quotes.)
+5. Configure RT per the instructions at
+ https://docs.bestpractical.com/rt/6.0.0/index.html
+
+RT does not work with perl taint mode (-T) you must disable it.
+Note, some other ports like devel/bugzilla have you add this to your
+httpd.conf. This isn't actually a flaw of RT, but of a subset of the
+CPAN modules that RT uses.
+EOM
+}
+{ type: install
+ message: <<EOM
+If you're upgrading RT then it is worth reading the UPGRADING document
+at this point. Some extension you're using may have been integrated
+into core. It's recommended to use new clean directory when you're
+upgrading to new release (for example from 4.0.x to 4.2.x).
+
+To upgrade your database schema, preserving ticket history:
+
+1. Backup your RT database.
+2. If upgrading to a new major release, create a new database named
+ rt6 with appropriate rights for the rt_user and reload your
+ database backup into it.
+3. Run:
+
+# /usr/local/sbin/rt-setup-database \
+ --datadir %%DOCSDIR%%/upgrade \
+ --action upgrade --prompt-for-dba-password
+
+and answer the prompts.
+EOM
+}
+]