Permalink
Browse files

""

git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@392 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
1 parent b14be1d commit e41d79b4bfa49ef63a4d58cd8652eab0f09701b9 @klacke committed May 4, 2003
Showing with 145 additions and 13 deletions.
  1. +2 −1 Makefile
  2. +1 −1 doc/Makefile
  3. BIN doc/yaws.pdf
  4. +5 −5 man/Makefile
  5. +13 −5 scripts/Install
  6. +34 −0 scripts/gentoo/conf.d.yaws
  7. +57 −0 scripts/gentoo/init.d.yaws
  8. +32 −0 scripts/gentoo/yaws.ebuild
  9. +1 −1 vsn.mk
View
@@ -1,3 +1,4 @@
+
SUBDIRS = c_src src scripts man www/shopingcart doc
APPS = webmail
include ./include.mk
@@ -9,7 +10,7 @@ all debug clean install:
if [ -f $$d/Makefile ]; then ( cd $$d && $(MAKE) $@ ) || exit 1 ; fi ; \
done
-# mremond: The build of the doc is better optionnal (latex is not always installed on servers)
+
docs:
( cd doc && $(MAKE) docs )
View
@@ -29,4 +29,4 @@ clean:
install:
-install -d $(INSTALLPREFIX)/share/doc/yaws
-cp yaws.pdf $(INSTALLPREFIX)/share/doc/yaws
- -cp yaws.ps $(INSTALLPREFIX)/share/doc/yaws
+
View
Binary file not shown.
View
@@ -2,10 +2,10 @@
include ../include.mk
install:
- install -d $(INSTALLPREFIX)/man/man1
- install -d $(INSTALLPREFIX)/man/man5
- cp yaws.1 $(INSTALLPREFIX)/man/man1
- cp yaws.conf.5 $(INSTALLPREFIX)/man/man5
- cp yaws_api.5 $(INSTALLPREFIX)/man/man5
+ install -d $(INSTALLPREFIX)/share/man/man1
+ install -d $(INSTALLPREFIX)/share/man/man5
+ cp yaws.1 $(INSTALLPREFIX)/share/man/man1
+ cp yaws.conf.5 $(INSTALLPREFIX)/share/man/man5
+ cp yaws_api.5 $(INSTALLPREFIX)/share/man/man5
all debug clean:
View
@@ -1,6 +1,5 @@
#!/bin/sh
-set -x
prefix=$1
erl=$2
@@ -21,9 +20,18 @@ else
fi
sh ./mangle ${prefix}/lib/yaws ${erl} yaws.conf.template ${t}
-if [ `uname` = Linux ]; then
- install -d ${etcdir}/init.d
- cp yaws.init.d ${etcdir}/init.d/yaws
- chmod +x ${etcdir}/init.d/yaws
+
+
+if [ -d /etc/init.d ]; then
+ # sysV init scripts
+ if [ -f /etc/gentoo-release ]; then
+ cp gentoo/init.d.yaws ${etcdir}/init.d/yaws
+ cp gentoo/conf.d.yaws ${etcdir}/conf.d/yaws
+ elif [ `uname` = Linux ]; then
+ install -d ${etcdir}/init.d
+ cp yaws.init.d ${etcdir}/init.d/yaws
+ chmod +x ${etcdir}/init.d/yaws
+ fi
fi
+
View
@@ -0,0 +1,34 @@
+#
+# Config file for yaws Gentoo start-script.
+# Should be stored as: /etc/conf.d/yaws
+#
+
+# Application name
+YAWS_APP=yaws
+
+# Path to yaws executable
+YAWS_EXEC=/usr/local/bin/yaws
+
+# NB: It is recomended that you don't run Yaws as root
+YAWS_UID=root
+
+# The Yaws config file
+YAWS_CONF_FILE=/etc/yaws.conf
+
+# The start options
+YAWS_START_OPTS="-D -heart -c ${YAWS_CONF_FILE}"
+
+# The stop options
+YAWS_STOP_OPTS="-s -c ${YAWS_CONF_FILE}"
+
+# The reload options
+YAWS_RELOAD_OPTS="-h -c ${YAWS_CONF_FILE}"
+
+# The query options
+YAWS_QUERY_OPTS="-S -c ${YAWS_CONF_FILE}"
+
+# The debug options
+YAWS_DEBUG_OPTS="-i -c ${YAWS_CONF_FILE}"
+
+
+
View
@@ -0,0 +1,57 @@
+#!/sbin/runscript
+#
+# Startup script for the Yaws Web Server (for Gentoo Linux)
+#
+# config: /etc/conf.d/yaws
+#
+# description: yaws - Erlang enabled http server
+#
+# use: rc-update add yaws default
+#
+
+opts="start stop reload restart query debug"
+
+depend() {
+ need net
+}
+
+
+start() {
+ ebegin "Starting ${YAWS_APP} "
+ start-stop-daemon --start --verbose --chuid ${YAWS_UID} \
+ --exec ${YAWS_EXEC} -- ${YAWS_START_OPTS}
+ eend $?
+}
+
+
+stop() {
+ ebegin "Stopping ${YAWS_APP} "
+ start-stop-daemon --start --quiet --chuid ${YAWS_UID} \
+ --exec ${YAWS_EXEC} -- ${YAWS_STOP_OPTS}
+ eend $?
+}
+
+
+reload() {
+ ebegin "Reloading ${YAWS_APP} "
+ start-stop-daemon --start --quiet --chuid ${YAWS_UID} \
+ --exec ${YAWS_EXEC} -- ${YAWS_RELOAD_OPTS}
+ eend $?
+}
+
+query() {
+ ebegin "Querying ${YAWS_APP} "
+ start-stop-daemon --start --quiet --chuid ${YAWS_UID} \
+ --exec ${YAWS_EXEC} -- ${YAWS_QUERY_OPTS}
+ eend $?
+}
+
+debug() {
+ ebegin "Debug ${YAWS_APP} "
+ start-stop-daemon --start --quiet --chuid ${YAWS_UID} \
+ --exec ${YAWS_EXEC} -- ${YAWS_DEBUG_OPTS}
+ eend $?
+}
+
+
+
View
@@ -0,0 +1,32 @@
+# $Header$
+
+
+DESCRIPTION="Yaws, a dynamic content, fast, erlang based webserver "
+HOMEPAGE="http://yaws.hyber.org/"
+SRC_URI="http://yaws.hyber.org/download/${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm"
+IUSE="ssl"
+
+#DEPEND=">=dev-lang/erlang-r8
+# ssl? ( >=dev-libs/openssl-0.9.6d )"
+
+
+ src_compile() {
+
+ echo "D = $D"
+ set -x
+
+ ./configure \
+ --prefix=${D}/usr/ \
+ --sysconfdir=${D}/etc/ \
+ --localstatedir=${D}/var || die
+
+ make || die
+}
+
+src_install() {
+ make install || die
+}
+
View
2 vsn.mk
@@ -1 +1 @@
-YAWS_VSN=1.2
+YAWS_VSN=1.21

0 comments on commit e41d79b

Please sign in to comment.