From: Jose V Beneyto Date: Mon, 3 May 2010 08:27:31 +0000 (+0200) Subject: webfs: initial import (verified compilation) X-Git-Url: http://gitweb/?a=commitdiff_plain;h=543bc10746dc4a4e2f14549d90f00d9cfd6f7cb2;p=attic%2Fports%2Fopt-cross.git webfs: initial import (verified compilation) --- diff --git a/webfs/.footprint b/webfs/.footprint new file mode 100644 index 0000000..65083f5 --- /dev/null +++ b/webfs/.footprint @@ -0,0 +1,9 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/webfsd +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/webfsd +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/webfsd.1.gz diff --git a/webfs/.md5sum b/webfs/.md5sum new file mode 100644 index 0000000..8b4d337 --- /dev/null +++ b/webfs/.md5sum @@ -0,0 +1,2 @@ +6dc125fe160479404147e7bbfc781dbc webfs-1.21.tar.gz +326cf979aeb5af1e3a1cbd4960cb9cad webfsd diff --git a/webfs/Pkgfile b/webfs/Pkgfile new file mode 100644 index 0000000..c8c7809 --- /dev/null +++ b/webfs/Pkgfile @@ -0,0 +1,23 @@ +# Description: A simple HTTP server for static content +# URL: http://linux.bytesex.org/misc/webfs.html +# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: openssl + +name=webfs +version=1.21 +release=3 +source=(http://dl.bytesex.org/releases/webfs/webfs-$version.tar.gz \ + webfsd) + +build() { + cd $name-$version + + make install \ + CC="$CC" CXX="$CXX" \ + INSTALL_BINARY="install" \ + prefix=$PKG/usr \ + mandir=$PKG/usr/man + + install -D -m 0755 $SRC/webfsd $PKG/etc/rc.d/webfsd +} diff --git a/webfs/webfsd b/webfs/webfsd new file mode 100644 index 0000000..98dbaec --- /dev/null +++ b/webfs/webfsd @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/httpd: start/stop webfs http daemon +# + +case $1 in +start) + /usr/bin/webfsd -u www -g www -r /var/www -p 80 -f index.html + ;; +stop) + killall -q /usr/bin/webfsd + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file