[Lunar-commits] <moonbase> apache2: add it to zdeprecated.

Florin Braescu florin at lunar-linux.org
Fri Feb 24 19:53:43 CET 2012


commit b605e957bf22bae94ebe478b0ac4c5e808ac4048
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Fri Feb 24 19:53:43 2012 +0100

    apache2: add it to zdeprecated.
---
 aliases                          |    2 +-
 zdeprecated/apache2/BUILD        |   41 +++++++++++++++++++++++++++++++++++
 zdeprecated/apache2/CONFIGURE    |   10 ++++++++
 zdeprecated/apache2/CONFLICTS    |    2 +
 zdeprecated/apache2/DEPENDS      |   14 ++++++++++++
 zdeprecated/apache2/DETAILS      |   17 ++++++++++++++
 zdeprecated/apache2/POST_INSTALL |    1 +
 zdeprecated/apache2/init.d/httpd |   44 ++++++++++++++++++++++++++++++++++++++
 zdeprecated/apache2/services     |    6 +++++
 9 files changed, 136 insertions(+), 1 deletions(-)

diff --git a/aliases b/aliases
index 4a2a72b..1ab3fea 100644
--- a/aliases
+++ b/aliases
@@ -1,4 +1,4 @@
-%APACHE:httpd apache apache-mod_ssl lighttpd
+%APACHE:httpd apache apache-mod_ssl lighttpd apache2
 %GECKO_RENDERER:xulrunner thunderbird seamonkey xulrunner5
 %JAVA_SDK:sun-jdk sun-jre
 %LISP:clisp gcl
diff --git a/zdeprecated/apache2/BUILD b/zdeprecated/apache2/BUILD
new file mode 100644
index 0000000..cbcf5e9
--- /dev/null
+++ b/zdeprecated/apache2/BUILD
@@ -0,0 +1,41 @@
+(
+
+  OPTS="--prefix=/etc/httpd                      \
+        --sysconfdir=/etc/httpd/conf             \
+        --exec-prefix=/usr                       \
+        --sbindir=/usr/sbin                      \
+        --libexecdir=/usr/libexec/httpd/modules  \
+        --datadir=/var/www                       \
+        --sharedstatedir=/var/run/httpd          \
+        --localstatedir=/var                     \
+        --libdir=/usr/lib                        \
+        --includedir=/usr/include/httpd          \
+        --infodir=/usr/share/info                \
+        --mandir=/usr/share/man                  \
+        --enable-so                              \
+        --enable-rewrite                         \
+        --enable-mime-magic                      \
+        --enable-exception-hook                  \
+        --enable-layout=GNU                      \
+        --enable-usertrack                       \
+        --with-apr=/usr                          \
+        --with-apr-util=/usr                     \
+        $OPTS"
+
+
+  if [ "$USE_WORKER" == "n" ]; then
+    OPTS+=" --with-mpm=prefork"
+  else
+    OPTS+=" --with-mpm=worker"
+  fi
+
+  echo "CFLAGS=$CFLAGS"  &&
+  echo "OPTS=$OPTS"      &&
+  ./configure $OPTS      &&
+  default_make           &&
+
+  if [ ! -e /usr/sbin/httpsd ] ; then
+    ln -s httpd /usr/sbin/httpsd
+  fi
+
+) > $C_FIFO 2>&1
diff --git a/zdeprecated/apache2/CONFIGURE b/zdeprecated/apache2/CONFIGURE
new file mode 100644
index 0000000..c9db5d2
--- /dev/null
+++ b/zdeprecated/apache2/CONFIGURE
@@ -0,0 +1,10 @@
+mquery ENABLE_SSL "Enable TLS/SSL ?" y --enable-ssl
+mquery ENABLE_PROXY "Enable Proxy support ?" y "--enable-proxy --enable-proxy-connect --enable-proxy-http --enable-proxy-ftp"
+mquery ENABLE_SUEXEC "Enable suexec ?" y "--enable-suexec --with-suexec --with-suexec-caller=nobody --with-suexec-docroot=/var/www --with-suexec-logfile=/var/log/httpd/suexec --with-suexec-bin=/usr/sbin/suexec --with-suexec-uidmin=500 --with-suexec-gidmin=500"
+mquery ENABLE_DAV "Enable WebDav ?" n "--enable-dav --enable-dav-fs --enable-dav-lock"
+mquery ENABLE_DEFLATE "Enable deflate transfer encoding support ?" n --enable-deflate
+mquery ENABLE_CGID "Enable cgid ?" y --enable-cgid --enable-cgi
+mquery ENABLE_INFO "Enable Info ?" n --enable-info
+mquery ENABLE_VHOST "Enable mass virtual hosting module ?" n --enable-vhost-alias
+mquery ENABLE_SPELL "Enable spelling ?" n --enable-spelling
+mquery USE_WORKER "Use worker threading model (for 2.6+nptl threading) ?" n
diff --git a/zdeprecated/apache2/CONFLICTS b/zdeprecated/apache2/CONFLICTS
new file mode 100644
index 0000000..dfb9084
--- /dev/null
+++ b/zdeprecated/apache2/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts  apache-mod_ssl
+conflicts  apache
diff --git a/zdeprecated/apache2/DEPENDS b/zdeprecated/apache2/DEPENDS
new file mode 100644
index 0000000..e085fe8
--- /dev/null
+++ b/zdeprecated/apache2/DEPENDS
@@ -0,0 +1,14 @@
+depends  expat
+depends  apr-util
+
+optional_depends  "db"                     \
+                  "--with-berkeley-db"     \
+                  "--without-berkeley-db"  \
+                  "for berkely db support"
+
+optional_depends  "gdbm"            \
+                  "--with-gdbm"     \
+                  "--without-gdbm"  \
+                  "for gdbm support"
+
+
diff --git a/zdeprecated/apache2/DETAILS b/zdeprecated/apache2/DETAILS
new file mode 100644
index 0000000..f89c08d
--- /dev/null
+++ b/zdeprecated/apache2/DETAILS
@@ -0,0 +1,17 @@
+          MODULE=apache2
+         VERSION=2.2.22
+        BASENAME=httpd
+          SOURCE=$BASENAME-$VERSION.tar.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$BASENAME-$VERSION
+      SOURCE_URL=http://www.apache.org/dist/$BASENAME
+      SOURCE_VFY=sha1:766cd0843050a8dfb781e48b976f3ba6ebcf8696
+        WEB_SITE=http://www.apache.org
+         ENTERED=20020710
+         UPDATED=20120131
+           SHORT="A popular HTTP server"
+
+cat << EOF
+Apache is the world's most popular HTTP server, being quite possibly
+the best around in terms of functionality, efficiency, security and
+speed. This is Apache's v2 of the http server.
+EOF
diff --git a/zdeprecated/apache2/POST_INSTALL b/zdeprecated/apache2/POST_INSTALL
new file mode 100644
index 0000000..323c4fb
--- /dev/null
+++ b/zdeprecated/apache2/POST_INSTALL
@@ -0,0 +1 @@
+if module_installed php ; then lin -c php ; fi
diff --git a/zdeprecated/apache2/init.d/httpd b/zdeprecated/apache2/init.d/httpd
new file mode 100755
index 0000000..5e295b0
--- /dev/null
+++ b/zdeprecated/apache2/init.d/httpd
@@ -0,0 +1,44 @@
+#!/bin/bash
+#
+# Startup script for the Apache Web Server
+#
+# chkconfig: 345 85 15
+# description: Apache is a World Wide Web server.  It is used to serve \
+#              HTML files and CGI.
+# processname: httpd
+# pidfile: /var/run/httpd.pid
+# config: /etc/httpd/conf/access.conf
+# config: /etc/httpd/conf/httpd.conf
+# config: /etc/httpd/conf/srm.conf
+# config: /etc/httpd/conf/ssl.conf
+
+# this passes the default startup stuff nicely:
+
+function graceful () {
+	$PROCESS -k graceful
+}
+function startssl () {
+	$PROCESS -f /etc/httpd/conf/ssl.conf -k start -DSSL &&
+		echo -en "Starting apache+SSL:$RESULT_OK" ||
+		echo -en "Starting apache+SSL:$RESULT_FAIL"
+}
+
+function configtest () {
+	$PROCESS -t
+}
+
+function reload () {
+	# apache does NOT accept HUP or INT!
+	$0 restart
+}
+
+function fullstatus () {
+	[ -x `which lynx` ] && lynx http://127.0.0.1:80/server-status || echo "No fullstatus available (need lynx)"
+}
+
+function usage () {
+	echo "Usage: $0 {start|startssl|stop|graceful|restart|reload|probe|status|fullstatus}"
+}
+
+. /lib/lsb/init-functions $1
+
diff --git a/zdeprecated/apache2/services b/zdeprecated/apache2/services
new file mode 100644
index 0000000..fbb18f2
--- /dev/null
+++ b/zdeprecated/apache2/services
@@ -0,0 +1,6 @@
+www             80/tcp
+www             80/udp
+http            80/tcp
+http            80/udp
+https           443/tcp
+https           443/udp


More information about the Lunar-commits mailing list