Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Andraž Levstik (330c45eca77fc59b299b125bddccad1592926190)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Andraž Levstik <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Andraž Levstik (330c45eca77fc59b299b125bddccad1592926190)
  • Date: Sun, 10 Oct 2010 06:07:03 -0500

GIT changes to master grimoire by Andraž Levstik
<ruskie+2054d253 AT codemages.net>:

ChangeLog | 3 ++
http/ashd/DEPENDS | 16 ++++++++++++++
http/ashd/DETAILS | 59
++++++++++++++++++++++++++++++++++++++++++++++++++++
http/ashd/HISTORY | 3 ++
http/ashd/PREPARE | 7 ++++++
http/ashd/PRE_BUILD | 6 +++++
6 files changed, 94 insertions(+)

New commits:
commit 330c45eca77fc59b299b125bddccad1592926190
Author: Andraž Levstik <ruskie+2054d253 AT codemages.net>
Commit: Andraž Levstik <ruskie+2054d253 AT codemages.net>

ashd: new spell, a split process httpd server

diff --git a/ChangeLog b/ChangeLog
index 61662fc..e50d5cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2010-10-10 Andraž "ruskie" Levstik <ruskie+f03a580f AT codemages.net>
+ * http/ashd: new spell, a split process httpd server
+
2010-10-10 Ladislav Hagara <hgr AT vabo.cz>
* libs/libflickrnet: new spell, Flickr.Net API Library
* libs/libplist: new spell, Apple Binary and XML Property Lists
diff --git a/http/ashd/DEPENDS b/http/ashd/DEPENDS
new file mode 100755
index 0000000..49ba0fc
--- /dev/null
+++ b/http/ashd/DEPENDS
@@ -0,0 +1,16 @@
+depends libtool &&
+depends asciidoc &&
+depends file &&
+optional_depends attr \
+ "--enable-attr" \
+ "--disable-attr" \
+ "Extended attributes support" &&
+optional_depends gnutls \
+ "--enable-gnutls" \
+ "--disable-gnutls" \
+ "HTTPS support"
+# not yet there
+#optional_depends python \
+# "" \
+# "" \
+# "For serve-ssi and wsgi support"
diff --git a/http/ashd/DETAILS b/http/ashd/DETAILS
new file mode 100755
index 0000000..c9fca89
--- /dev/null
+++ b/http/ashd/DETAILS
@@ -0,0 +1,59 @@
+ SPELL=ashd
+if [[ $ASHD_SCM == y ]]; then
+if [[ $ASH_SCM_AUTO == y ]]; then
+ VERSION=$(date +%Y%m%d)
+else
+ VERSION=scm
+fi
+ SOURCE=${SPELL}-scm.tar.bz2
+ SOURCE_URL[0]=git://git.dolda2000.com/ashd:ashd-scm
+ SOURCE_IGNORE=volatile
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
+else
+ VERSION=0.2
+ SOURCE="${SPELL}-${VERSION}.tar.gz"
+ SOURCE_URL[0]=http://www.dolda2000.com/~fredrik/${SPELL}/${SOURCE}
+
SOURCE_HASH=sha512:218de06e2ca9153fbe652d14f53f27d72400ca5e8af2154297663c6afa22f9c31e63cd78e66b6024358f4b5f1b3f87e4d6f280f582f41573c7fde076fc0c45dc
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+fi
+ WEB_SITE="http://www.dolda2000.com/~fredrik/ashd/";
+ LICENSE[0]="GPLv3"
+ ENTERED=20101010
+ KEYWORDS="http server"
+ SHORT="A Sane HTTP Daemon"
+cat << EOF
+Ashd is a modular HTTP server based on a multi-program architecture. Whereas
+most other HTTP servers are monolithic programs with, perhaps, loadable
+modules, Ashd is composed of several different programs, each of which
+handles requests in different ways, passing requests to each other over a
+simple protocol (not unlike Unix pipelines). The design of Ashd brings it
+a number of nice properties, the following being the most noteworthy ones.
+
+Sanity of design The separation of concerns between different, independent
+programs is an example of standard Unix philosophy – each program
+does one thing only, but does it well (I hope). The clean delineation of
+functions allows each program to be very small and simple – currently,
+each of the programs in the collection (including even the core HTTP parser
+program, htparser, as long as one does not count its, quite optional, SSL
+implementation) is implemented in less than 1,000 lines of C code (and most
+are considerably smaller than that), allowing them to be easily studied and
+understood. Security Since each program runs in a process of its own, it can
+be assigned proper permissions. Most noteworthy of all, the userplex program
+ensures that serving of user home directories (/~user/ URLs, if you will)
+only happens by code that is actually logged in as the user in question;
+and the htparser program, being the only program which speaks directly
+with the clients, can run perfectly well as a non-user (like nobody)
+and be chroot'ed into an empty directory. Configuration sanity Again,
+since each program only handles a simple task, its configuration can be
+made quite simple. There is no need for the dirplex program, which handles
+only service from physical directories, to care about virtual directories,
+virtual hosts, HTTP protocol parameters or authentication; just as there is
+no need for the patplex pattern matcher to know about file types or directory
+hierarchies. Each program's configuration file format can be kept as simple
as
+possible, and most programs are configured simply with command-line options.
+Persistence Though Ashd is a multi-process program, it is not in the same
+sense as e.g. Apache. Each request handler continues to run indefinitely
+and does not spawn multiple copies of itself, meaning that all process
+state persists between requests – session data can be kept in memory,
+connections to back-end services can be kept open, and so on.
+EOF
diff --git a/http/ashd/HISTORY b/http/ashd/HISTORY
new file mode 100644
index 0000000..5cf9743
--- /dev/null
+++ b/http/ashd/HISTORY
@@ -0,0 +1,3 @@
+2010-10-10 Andraž "ruskie" Levstik <ruskie+f03a580f AT codemages.net>
+ * DEPENDS, DETAILS: spell created
+
diff --git a/http/ashd/PREPARE b/http/ashd/PREPARE
new file mode 100755
index 0000000..192bc51
--- /dev/null
+++ b/http/ashd/PREPARE
@@ -0,0 +1,7 @@
+config_query ASHD_SCM "Do you want SCM version" "n" &&
+if [[ "$ASHD_SCM" == "y" ]]
+then
+config_query ASHD_SCM_AUTO \
+ "Automaticaly update the spell on sorcery queue/system-update?" \
+ "n"
+fi
diff --git a/http/ashd/PRE_BUILD b/http/ashd/PRE_BUILD
new file mode 100755
index 0000000..749a5fe
--- /dev/null
+++ b/http/ashd/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+sed -i -e "/valgrind\/memcheck.h/d" lib/mt.c &&
+if [[ $ASHD_SCM == y ]]; then
+./bootstrap
+fi



  • [SM-Commit] GIT changes to master grimoire by Andraž Levstik (330c45eca77fc59b299b125bddccad1592926190), Andraž Levstik, 10/10/2010

Archive powered by MHonArc 2.6.24.

Top of Page