CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
webfs: initial import (verified compilation)
authorJose V Beneyto <sepen@crux.nu>
Mon, 3 May 2010 08:27:31 +0000 (10:27 +0200)
committerJose V Beneyto <sepen@crux.nu>
Mon, 3 May 2010 08:27:31 +0000 (10:27 +0200)
webfs/.footprint [new file with mode: 0644]
webfs/.md5sum [new file with mode: 0644]
webfs/Pkgfile [new file with mode: 0644]
webfs/webfsd [new file with mode: 0644]

diff --git a/webfs/.footprint b/webfs/.footprint
new file mode 100644 (file)
index 0000000..65083f5
--- /dev/null
@@ -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 (file)
index 0000000..8b4d337
--- /dev/null
@@ -0,0 +1,2 @@
+6dc125fe160479404147e7bbfc781dbc  webfs-1.21.tar.gz
+326cf979aeb5af1e3a1cbd4960cb9cad  webfsd
diff --git a/webfs/Pkgfile b/webfs/Pkgfile
new file mode 100644 (file)
index 0000000..c8c7809
--- /dev/null
@@ -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 (file)
index 0000000..98dbaec
--- /dev/null
@@ -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