- cp -p ./bin/webmux.pl $(DESTDIR)/$(RT_MODPERL_HANDLER)
- cp -p ./bin/rt-mailgate $(DESTDIR)/$(RT_MAILGATE_BIN)
- cp -p ./bin/rtadmin $(DESTDIR)/$(RT_CLI_ADMIN_BIN)
- cp -p ./bin/rt $(DESTDIR)/$(RT_CLI_BIN)
- cp -p ./bin/mason_handler.fcgi $(DESTDIR)/$(RT_FASTCGI_HANDLER)
- cp -p ./bin/mason_handler.scgi $(DESTDIR)/$(RT_SPEEDYCGI_HANDLER)
-
- $(PERL) -p -i -e "s'!!RT_PATH!!'"$(RT_PATH)"'g;\
- s'!!PERL!!'"$(PERL)"'g;\
- s'!!RT_VERSION!!'"$(RT_VERSION)"'g;\
- s'!!RT_ETC_PATH!!'"$(RT_CONFIG_PATH)"'g;\
- s'!!RT_LIB_PATH!!'"$(RT_LIB_PATH)"'g;"\
- $(DESTDIR)/$(RT_MODPERL_HANDLER) \
- $(DESTDIR)/$(RT_FASTCGI_HANDLER) \
- $(DESTDIR)/$(RT_SPEEDYCGI_HANDLER) \
- $(DESTDIR)/$(RT_CLI_BIN) \
- $(DESTDIR)/$(RT_CLI_ADMIN_BIN) \
- $(DESTDIR)/$(RT_MAILGATE_BIN)
-
-
-config-replace:
- -[ -f $(DESTDIR)/$(RT_CONFIG) ] && \
- mv $(DESTDIR)/$(RT_CONFIG) $(DESTDIR)/$(RT_CONFIG).old && \
- chmod 000 $(DESTDIR)/$(RT_CONFIG).old
- cp -rp ./etc/config.pm $(DESTDIR)/$(RT_CONFIG)
- $(PERL) -p -i -e "\
- s'!!DB_TYPE!!'"$(DB_TYPE)"'g;\
- s'!!DB_HOST!!'"$(DB_HOST)"'g;\
- s'!!DB_PORT!!'"$(DB_PORT)"'g;\
- s'!!DB_RT_PASS!!'"$(DB_RT_PASS)"'g;\
- s'!!DB_RT_USER!!'"$(DB_RT_USER)"'g;\
- s'!!DB_DATABASE!!'"$(DB_DATABASE)"'g;\
- s'!!MASON_HTML_PATH!!'"$(MASON_HTML_PATH)"'g;\
- s'!!MASON_LOCAL_HTML_PATH!!'"$(MASON_LOCAL_HTML_PATH)"'g;\
- s'!!MASON_SESSION_PATH!!'"$(MASON_SESSION_PATH)"'g;\
- s'!!MASON_DATA_PATH!!'"$(MASON_DATA_PATH)"'g;\
- s'!!RT_LOG_PATH!!'"$(RT_LOG_PATH)"'g;\
- s'!!RT_VERSION!!'"$(RT_VERSION)"'g;\
- " $(DESTDIR)/$(RT_CONFIG)
+ mkdir -p $(DESTDIR)/$(RT_BIN_PATH)
+ chmod +x bin/rt-mailgate \
+ bin/rt-crontool
+ -cp -rp \
+ bin/rt-mailgate \
+ bin/mason_handler.fcgi \
+ bin/mason_handler.svc \
+ bin/webmux.pl \
+ bin/rt-crontool \
+ $(DESTDIR)/$(RT_BIN_PATH)
+# }}}
+
+# {{{ local-install
+local-install:
+ -cp -rp ./local/html/* $(DESTDIR)/$(MASON_LOCAL_HTML_PATH)
+ -cp -rp ./local/po/* $(DESTDIR)/$(LOCAL_LEXICON_PATH)
+ -cp -rp ./local/etc/* $(DESTDIR)/$(LOCAL_ETC_PATH)
+# }}}
+
+# {{{ Best Practical Build targets -- no user servicable parts inside
+
+
+POD2TEST_EXE = sbin/extract_pod_tests
+
+testify-pods:
+ [ -d lib/t/autogen ] || mkdir lib/t/autogen
+ find lib -name \*pm |grep -v \*.in |xargs -n 1 $(PERL) $(POD2TEST_EXE)
+ find bin -type f |grep -v \~ | grep -v "\.in" | xargs -n 1 $(PERL) $(POD2TEST_EXE)
+