#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
WEB_USER = @WEB_USER@
WEB_GROUP = @WEB_GROUP@
-
-APACHECTL = @APACHECTL@
-
-
# DESTDIR allows you to specify that RT be installed somewhere other than
# where it will eventually reside. DESTDIR _must_ have a trailing slash
# if it's defined.
RT_DOC_PATH = @RT_DOC_PATH_R@
RT_FONT_PATH = @RT_FONT_PATH_R@
RT_LEXICON_PATH = @RT_LEXICON_PATH_R@
+RT_STATIC_PATH = @RT_STATIC_PATH_R@
RT_LOCAL_PATH = @RT_LOCAL_PATH_R@
LOCAL_PLUGIN_PATH = @RT_LOCAL_PATH_R@/plugins
LOCAL_ETC_PATH = @LOCAL_ETC_PATH_R@
LOCAL_LIB_PATH = @LOCAL_LIB_PATH_R@
LOCAL_LEXICON_PATH = @LOCAL_LEXICON_PATH_R@
+LOCAL_STATIC_PATH = @LOCAL_STATIC_PATH_R@
MASON_HTML_PATH = @MASON_HTML_PATH_R@
MASON_LOCAL_HTML_PATH = @MASON_LOCAL_HTML_PATH_R@
MASON_DATA_PATH = @MASON_DATA_PATH_R@
rt-email-digest \
rt-email-group-admin \
rt-fulltext-indexer \
+ rt-importer \
rt-preferences-viewer \
+ rt-serializer \
rt-server \
rt-session-viewer \
rt-server.fcgi \
-TEST_FILES = t/*.t t/*/*.t
+TEST_FILES = t/*.t t/*/*.t t/*/*/*.t
TEST_VERBOSE = 0
RT_TEST_PARALLEL_NUM ?= 5
# Make upgrade scripts executable if they are in the source.
#
- # Note that we use the deprecated (by GNU/POSIX find) -perm +0NNN syntax
- # instead of -perm /0NNN since BSD find doesn't support the latter.
- ( cd etc/upgrade && find . -type f -not -name '*.in' -perm +0111 -print ) | while read file ; do \
+ ( 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
chmod -R u+rwX,go-w,go+rX $(DESTDIR)$(MASON_HTML_PATH) \
$(DESTDIR)$(MASON_LOCAL_HTML_PATH) \
$(DESTDIR)$(RT_LEXICON_PATH) \
- $(DESTDIR)$(LOCAL_LEXICON_PATH)
+ $(DESTDIR)$(LOCAL_LEXICON_PATH) \
+ $(DESTDIR)$(RT_STATIC_PATH) \
+ $(DESTDIR)$(LOCAL_STATIC_PATH)
chown -R $(LIBS_OWNER) $(DESTDIR)$(MASON_HTML_PATH) \
$(DESTDIR)$(MASON_LOCAL_HTML_PATH) \
$(DESTDIR)$(RT_LEXICON_PATH) \
- $(DESTDIR)$(LOCAL_LEXICON_PATH)
+ $(DESTDIR)$(LOCAL_LEXICON_PATH) \
+ $(DESTDIR)$(RT_STATIC_PATH) \
+ $(DESTDIR)$(LOCAL_STATIC_PATH)
chgrp -R $(LIBS_GROUP) $(DESTDIR)$(MASON_HTML_PATH) \
$(DESTDIR)$(MASON_LOCAL_HTML_PATH) \
$(DESTDIR)$(RT_LEXICON_PATH) \
- $(DESTDIR)$(LOCAL_LEXICON_PATH)
+ $(DESTDIR)$(LOCAL_LEXICON_PATH) \
+ $(DESTDIR)$(RT_STATIC_PATH) \
+ $(DESTDIR)$(LOCAL_STATIC_PATH)
# Make the web ui's data dir writable
chmod 0770 $(DESTDIR)$(MASON_DATA_PATH) \
$(INSTALL) -m 0755 -d $(DESTDIR)$(RT_LOG_PATH)
$(INSTALL) -m 0755 -d $(DESTDIR)$(RT_FONT_PATH)
$(INSTALL) -m 0755 -d $(DESTDIR)$(RT_LEXICON_PATH)
+ $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_STATIC_PATH)
$(INSTALL) -m 0770 -d $(DESTDIR)$(MASON_DATA_PATH)
$(INSTALL) -m 0770 -d $(DESTDIR)$(MASON_DATA_PATH)/cache
$(INSTALL) -m 0770 -d $(DESTDIR)$(MASON_DATA_PATH)/etc
$(INSTALL) -m 0755 -d $(DESTDIR)$(LOCAL_LIB_PATH)
$(INSTALL) -m 0755 -d $(DESTDIR)$(LOCAL_PLUGIN_PATH)
$(INSTALL) -m 0755 -d $(DESTDIR)$(LOCAL_LEXICON_PATH)
+ $(INSTALL) -m 0755 -d $(DESTDIR)$(LOCAL_STATIC_PATH)
+
+clean-mason-cache:
+ rm -rf $(DESTDIR)$(MASON_DATA_PATH)/cache/*
+ rm -rf $(DESTDIR)$(MASON_DATA_PATH)/etc/*
+ rm -rf $(DESTDIR)$(MASON_DATA_PATH)/obj/*
install: testdeps config-install dirs files-install fixperms instruct
-files-install: libs-install etc-install config-install bin-install sbin-install html-install local-install doc-install font-install po-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@ -( cd share/html && find . -type f -print ) | while read file ; do \
@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0644 "share/html/$$file" "$(DESTDIR)$(MASON_HTML_PATH)/$$file" ; \
@COMMENT_INPLACE_LAYOUT@ done
+@COMMENT_INPLACE_LAYOUT@ $(MAKE) clean-mason-cache
font-install:
@COMMENT_INPLACE_LAYOUT@ [ -d $(DESTDIR)$(RT_FONT_PATH) ] || $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_FONT_PATH)
@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0644 "share/po/$$file" "$(DESTDIR)$(RT_LEXICON_PATH)/$$file" ; \
@COMMENT_INPLACE_LAYOUT@ done
+static-install:
+@COMMENT_INPLACE_LAYOUT@ [ -d $(DESTDIR)$(RT_STATIC_PATH) ] || $(INSTALL) -m 0755 -d $(DESTDIR)$(RT_STATIC_PATH)
+@COMMENT_INPLACE_LAYOUT@ -( cd share/static && find . -type d -print ) | while read dir ; do \
+@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0755 -d "$(DESTDIR)$(RT_STATIC_PATH)/$$dir" ; \
+@COMMENT_INPLACE_LAYOUT@ done
+@COMMENT_INPLACE_LAYOUT@ -( cd share/static && find . -type f -print ) | while read file ; do \
+@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -m 0644 "share/static/$$file" "$(DESTDIR)$(RT_STATIC_PATH)/$$file" ; \
+@COMMENT_INPLACE_LAYOUT@ done
doc-install:
@COMMENT_INPLACE_LAYOUT@ $(INSTALL) -o $(BIN_OWNER) -g $(RTGROUP) -m 0755 "bin/$$file" "$(DESTDIR)$(RT_BIN_PATH)/" ; \
@COMMENT_INPLACE_LAYOUT@ done
-local-install:
- -( cd local/html && find . -type d -print ) | while read dir ; do \
- $(INSTALL) -m 0755 -d "$(DESTDIR)$(MASON_LOCAL_HTML_PATH)/$$dir" ; \
- done
- -( cd local/html && find . -type f -print ) | while read file ; do \
- $(INSTALL) -m 0644 "local/html/$$file" "$(DESTDIR)$(MASON_LOCAL_HTML_PATH)/$$file" ; \
- done
- -( cd local/po && find . -type d -print ) | while read dir ; do \
- $(INSTALL) -m 0755 -d "$(DESTDIR)$(LOCAL_LEXICON_PATH)/$$dir" ; \
- done
- -( cd local/po && find . -type f -print ) | while read file ; do \
- $(INSTALL) -m 0644 "local/po/$$file" "$(DESTDIR)$(LOCAL_LEXICON_PATH)/$$file" ; \
- done
- -( cd local/etc && find . -type d -print ) | while read dir ; do \
- $(INSTALL) -m 0755 -d "$(DESTDIR)$(LOCAL_ETC_PATH)/$$dir" ; \
- done
- -( cd local/etc && find . -type f -print ) | while read file ; do \
- $(INSTALL) -m 0644 "etc/$$file" "$(DESTDIR)$(LOCAL_ETC_PATH)/$$file" ; \
- done
regenerate-catalogs:
license-tag:
$(PERL) devel/tools/license_tag
-factory: initialize-database
- cd lib; $(PERL) ../devel/tools/factory $(DB_DATABASE) RT
-
start-httpd:
$(PERL) sbin/standalone_httpd &
start-server:
$(PERL) sbin/rt-server &
-apachectl:
- $(APACHECTL) stop
- sleep 10
- $(APACHECTL) start
- sleep 5
SNAPSHOT=$(shell git describe --tags)
THIRD_PARTY=devel/third-party/
rm -fr "$(SNAPSHOT)/"
clearsign-snapshot:
- gpg --no-armor --detach-sign "$(SNAPSHOT).tar.gz"
+ gpg --armor --detach-sign "$(SNAPSHOT).tar.gz"
build-third-party:
git archive --prefix "$(SNAPSHOT)/$(THIRD_PARTY)" HEAD:$(THIRD_PARTY) \
rm -rf "$(SNAPSHOT)/$(THIRD_PARTY)"
clearsign-third-party:
- gpg --no-armor --detach-sign "$(SNAPSHOT)-third-party-source.tar.gz"
+ gpg --armor --detach-sign "$(SNAPSHOT)-third-party-source.tar.gz"
snapshot-shasums:
sha1sum $(SNAPSHOT)*.tar.gz*
--skip cpan-capitalization,cpan-mod_perl,cpan-Encode,cpan-PPI,cpan-Test-Exception-LessClever,cpan-Test-Manifest,cpan-Test-Object,cpan-Test-Pod,cpan-Test-Requires,cpan-Test-SubCalls,cpan-Test-cpan-Tester,cpan-Test-Warn --skip-all-recommends
mv $(VESSEL)/scripts/RT/build $(VESSEL)/scripts/RT/build.pl
-JSMIN_URL = http://download.bestpractical.com/mirror/jsmin-2011-01-22.c
-JSMIN_SHA = 8a6b3b980a52c028eb73aee4a82ebe060c1ee854
+JSMIN_URL = http://download.bestpractical.com/mirror/jsmin-2013-03-29.c
+JSMIN_SHA = 67dc8d73a8878f88cdaeb1a86775872eae5c3077
jsmin: jsmin-checkcc jsmin-fetch jsmin-verify jsmin-confirm jsmin-build jsmin-install
@echo ""