Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
use GNU autotools to create an installable package, including docs
- Loading branch information
Showing
with
152 additions
and 69 deletions.
- +4 −1 Makefile
- +27 −0 facilitator/.gitignore
- +0 −19 facilitator/Makefile
- +42 −0 facilitator/Makefile.am
- +2 −0 facilitator/autogen.sh
- +27 −0 facilitator/conf/fp-facilitator
- +13 −0 facilitator/configure.ac
- +10 −29 facilitator/doc/facilitator-howto.txt
- +9 −7 facilitator/init.d/{facilitator-email-poller → facilitator-email-poller.in}
- +9 −7 facilitator/init.d/{facilitator-reg-daemon → facilitator-reg-daemon.in}
- +9 −6 facilitator/init.d/{facilitator → facilitator.in}
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,27 @@ | ||
| # files build by autogen.sh | ||
| /aclocal.m4 | ||
| /configure | ||
| /depcomp | ||
| /install-sh | ||
| /missing | ||
| /test-driver | ||
| /Makefile.in | ||
|
|
||
| # files built by ./configure | ||
| /init.d/facilitator | ||
| /init.d/facilitator-email-poller | ||
| /init.d/facilitator-reg-daemon | ||
| /Makefile | ||
| /config.status | ||
| /config.log | ||
|
|
||
| # files built by autoconf not meant for source-distribution | ||
| /autom4te.cache | ||
|
|
||
| # files for binary-distribution | ||
| /flashproxy-facilitator-*.tar.* | ||
|
|
||
| # files output by test-driver | ||
| /test-*.log | ||
| /*-test.log | ||
| /*-test.trs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,42 @@ | ||
| # our own variables | ||
|
|
||
| fpfacilitatoruser = @fpfacilitatoruser@ | ||
| initscriptdir = $(sysconfdir)/init.d | ||
| exampledir = $(docdir)/examples | ||
|
|
||
| # automake PLVs | ||
|
|
||
| dist_bin_SCRIPTS = facilitator facilitator-email-poller facilitator-reg-daemon facilitator-reg facilitator.cgi fac.py | ||
| initscript_SCRIPTS = init.d/facilitator init.d/facilitator-email-poller init.d/facilitator-reg-daemon | ||
|
|
||
| dist_doc_DATA = doc/appengine-howto.txt doc/facilitator-howto.txt doc/gmail-howto.txt README | ||
| dist_example_DATA = conf/fp-facilitator | ||
|
|
||
| dist_TESTS = facilitator-test | ||
|
|
||
| # stuff built from AC_CONFIG_FILES | ||
| # see http://www.gnu.org/software/automake/manual/html_node/Scripts.html | ||
| CLEANFILES = $(initscript_SCRIPTS) | ||
|
|
||
| # our own targets | ||
|
|
||
| post-install: | ||
| which adduser >/dev/null 2>&1 && \ | ||
| adduser --quiet \ | ||
| --system \ | ||
| --disabled-password \ | ||
| --home $(sysconfdir)/flashproxy \ | ||
| --no-create-home \ | ||
| --shell /bin/false \ | ||
| --group \ | ||
| $(fpfacilitatoruser) || \ | ||
| useradd \ | ||
| --system \ | ||
| --home $(sysconfdir)/flashproxy \ | ||
| -M \ | ||
| --shell /bin/false \ | ||
| $(fpfacilitatoruser) | ||
| for i in facilitator facilitator-email-poller facilitator-reg-daemon; do \ | ||
| update-rc.d $$i defaults; \ | ||
| /etc/init.d/$$i start; \ | ||
| done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,2 @@ | ||
| #!/bin/sh | ||
| autoreconf -if |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,27 @@ | ||
| # This is an example apache2 config for serving the facilitator. | ||
| # | ||
| # You can edit this file according to the instructions below, then copy it to | ||
| # /etc/apache2/sites-available/fp-facilitator, or wherever is appropriate. Then | ||
| # you can run `a2ensite fp-facilitator` to enable it. | ||
| # | ||
| <VirtualHost *:443> | ||
| # Update this with your hostname! | ||
| ServerName fp-facilitator.example.com | ||
| DocumentRoot /dev/null | ||
| # Make sure the path below matchs where you installed the facilitator. | ||
| ScriptAliasMatch ^(.*) /usr/bin/facilitator.cgi$1 | ||
| MaxClients 256 | ||
|
|
||
| CustomLog ${APACHE_LOG_DIR}/fp-access.log common | ||
| ErrorLog ${APACHE_LOG_DIR}/fp-error.log | ||
| LogLevel warn | ||
| SSLEngine on | ||
|
|
||
| # Manually install your certificate to the following location. | ||
| SSLCertificateFile /etc/apache2/fp-facilitator.pem | ||
| # If you got an intermediate certificate, uncomment the following line | ||
| # and install the certificate to that location too. | ||
| #SSLCertificateChainFile /etc/apache2/fp-intermediate.pem | ||
|
|
||
| Header add Strict-Transport-Security "max-age=15768000" | ||
| </VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| @@ -0,0 +1,13 @@ | ||
| AC_PREREQ([2.69]) | ||
| AC_INIT([flashproxy-facilitator], [1.3]) | ||
| AM_INIT_AUTOMAKE([-Wall -Werror foreign]) | ||
|
|
||
| AC_ARG_VAR(fpfacilitatoruser, [the user/group for the facilitator to run as]) | ||
| fpfacilitatoruser="${fpfacilitatoruser:-flashproxy-fac}" | ||
|
|
||
| AC_CONFIG_FILES([Makefile | ||
| init.d/facilitator | ||
| init.d/facilitator-email-poller | ||
| init.d/facilitator-reg-daemon]) | ||
|
|
||
| AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters