ports/opt (2.3): webfs: renamed startscript, run as user www
commit e81170a370c8d8a1c1408a0e394a18d8691af8fd Author: Juergen Daubert <jue@jue.li> Date: Sat Dec 2 10:06:41 2006 +0100 webfs: renamed startscript, run as user www diff --git a/webfs/.footprint b/webfs/.footprint index ef03b6a..65083f5 100644 --- a/webfs/.footprint +++ b/webfs/.footprint @@ -1,6 +1,6 @@ drwxr-xr-x root/root etc/ drwxr-xr-x root/root etc/rc.d/ --rwxr-xr-x root/root etc/rc.d/httpd +-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 diff --git a/webfs/.md5sum b/webfs/.md5sum index fad6acd..82546bf 100644 --- a/webfs/.md5sum +++ b/webfs/.md5sum @@ -1,2 +1,2 @@ -30cbf8683e3a11aea7a3c5343106fdce httpd 6dc125fe160479404147e7bbfc781dbc webfs-1.21.tar.gz +9b05d0083cfa72ef48661de0a064c061 webfsd diff --git a/webfs/Pkgfile b/webfs/Pkgfile index 6792683..f2bf8d5 100644 --- a/webfs/Pkgfile +++ b/webfs/Pkgfile @@ -5,12 +5,12 @@ name=webfs version=1.21 -release=2 +release=3 source=(http://dl.bytesex.org/releases/webfs/webfs-$version.tar.gz \ - httpd) + webfsd) build() { cd $name-$version make prefix=$PKG/usr mandir=$PKG/usr/man install - install -D -m 0755 ../httpd $PKG/etc/rc.d/httpd + install -D -m 0755 $SRC/webfsd $PKG/etc/rc.d/webfsd } diff --git a/webfs/httpd b/webfs/httpd deleted file mode 100755 index 77063b1..0000000 --- a/webfs/httpd +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# -# /etc/rc.d/httpd: start/stop http daemon -# - -case $1 in -start) - /usr/bin/webfsd -u nobody -g nobody -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 diff --git a/webfs/webfsd b/webfs/webfsd new file mode 100755 index 0000000..2e54e42 --- /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
participants (1)
-
crux@crux.nu