Init.
authorStanislaw Klekot <dozzie@jarowit.net>
Sat, 18 Apr 2015 21:25:47 +0000 (23:25 +0200)
committerStanislaw Klekot <dozzie@jarowit.net>
Sat, 18 Apr 2015 21:25:47 +0000 (23:25 +0200)
.gitignore [new file with mode: 0644]
COPYING [new file with mode: 0644]
Makefile [new file with mode: 0644]
README [new file with mode: 0644]
rebar.config [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..8b29f19
--- /dev/null
@@ -0,0 +1,4 @@
+.*.swp
+*.beam
+/ebin/*.app
+/doc
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..dfb4d09
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,28 @@
+                      3-CLAUSE BSD LICENSE
+
+Copyright (c) Stanislaw Klekot.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. Neither the names of the copyright holders nor the names of its
+   contributors may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..4cac74b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+#!/usr/bin/make
+
+#-----------------------------------------------------------------------------
+
+#DIALYZER_PLT = ~/.dialyzer_plt
+DIALYZER_OPTS = --no_check_plt $(foreach D,$(DIALYZER_PLT),--plt $D)
+
+#-----------------------------------------------------------------------------
+
+.PHONY: all doc edoc compile build dialyzer
+
+all: compile doc
+
+doc edoc:
+       rebar doc
+
+compile build:
+       rebar compile
+
+dialyzer:
+       dialyzer $(strip $(DIALYZER_OPTS)) --src src
+
+#-----------------------------------------------------------------------------
+
+#srpm: VERSION=$(shell awk '$$1 == "%define" && $$2 == "_version" {print $$3}' redhat/*.spec)
+#srpm: PKGNAME=erlang-mod_sse
+#srpm:
+#      rm -rf rpm-build
+#      mkdir -p rpm-build/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
+#      git archive --format=tar --prefix=$(PKGNAME)-$(VERSION)/ HEAD | gzip -9 > rpm-build/rpm/SOURCES/$(PKGNAME)-$(VERSION).tar.gz
+#      rpmbuild --define="%_usrsrc $$PWD/rpm-build" --define="%_topdir %{_usrsrc}/rpm" -bs redhat/*.spec
+#      mv rpm-build/rpm/SRPMS/$(PKGNAME)-*.src.rpm .
+#      rm -r rpm-build
+
+#-----------------------------------------------------------------------------
+# vim:ft=make
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..ba43935
--- /dev/null
+++ b/README
@@ -0,0 +1,17 @@
+== mod_sse ==
+
+mod_sse is a module implementing server side of Server-Sent Events protocol
+(http://www.w3.org/TR/eventsource/) for HTTP server supplied by Erlang/OTP
+(inets/httpd).
+
+The module was written as a low-dependency proof of concept for something to
+be run behind nginx 1.2, later extended to be a little more generic
+(i.e. parametrized).
+
+== Contact ==
+
+mod_sse was written by Stanislaw Klekot <dozzie at jarowit.net>.
+The primary distribution point is <http://dozzie.jarowit.net/>, with
+a secondary address on GitHub <https://github.com/dozzie/mod_sse>.
+
+mod_sse is distributed under 3-clause BSD license.
diff --git a/rebar.config b/rebar.config
new file mode 100644 (file)
index 0000000..e96e851
--- /dev/null
@@ -0,0 +1,6 @@
+{erl_opts, [debug_info]}.
+{edoc_opts, [
+  {overview, "src/overview.edoc"},
+  {source_path, ["src", "examples"]},
+  todo
+]}.