[arch-commits] Commit in webfs/repos (10 files)

2017-03-04 Thread Jelle van der Waa
Date: Saturday, March 4, 2017 @ 21:09:16
  Author: jelle
Revision: 214927

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  webfs/repos/community-staging-i686/
  webfs/repos/community-staging-i686/PKGBUILD
(from rev 214926, webfs/trunk/PKGBUILD)
  webfs/repos/community-staging-i686/webfs.patch
(from rev 214926, webfs/trunk/webfs.patch)
  webfs/repos/community-staging-i686/webfsd.conf
(from rev 214926, webfs/trunk/webfsd.conf)
  webfs/repos/community-staging-i686/webfsd.service
(from rev 214926, webfs/trunk/webfsd.service)
  webfs/repos/community-staging-x86_64/
  webfs/repos/community-staging-x86_64/PKGBUILD
(from rev 214926, webfs/trunk/PKGBUILD)
  webfs/repos/community-staging-x86_64/webfs.patch
(from rev 214926, webfs/trunk/webfs.patch)
  webfs/repos/community-staging-x86_64/webfsd.conf
(from rev 214926, webfs/trunk/webfsd.conf)
  webfs/repos/community-staging-x86_64/webfsd.service
(from rev 214926, webfs/trunk/webfsd.service)

-+
 community-staging-i686/PKGBUILD |   39 
 community-staging-i686/webfs.patch  |  250 ++
 community-staging-i686/webfsd.conf  |5 
 community-staging-i686/webfsd.service   |   11 +
 community-staging-x86_64/PKGBUILD   |   39 
 community-staging-x86_64/webfs.patch|  250 ++
 community-staging-x86_64/webfsd.conf|5 
 community-staging-x86_64/webfsd.service |   11 +
 8 files changed, 610 insertions(+)

Copied: webfs/repos/community-staging-i686/PKGBUILD (from rev 214926, 
webfs/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-03-04 21:09:16 UTC (rev 214927)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Kyle Keen 
+# Contributor: Roman Kyrylych 
+# Contributor: Mark Rosenstand 
+# Contributor: Daniel J Griffiths 
+# Contributor: Chris Brannon 
+
+pkgname=webfs
+pkgver=1.21
+pkgrel=13
+pkgdesc="Simple and instant http server for mostly static content."
+arch=(i686 x86_64)
+url="http://linux.bytesex.org/misc/webfs.html";
+license=("GPL")
+depends=('mime-types' 'openssl')
+backup=('etc/conf.d/webfsd')
+source=(http://dl.bytesex.org/releases/webfs/webfs-${pkgver}.tar.gz
+webfsd.conf
+webfs.patch
+webfsd.service)
+md5sums=('6dc125fe160479404147e7bbfc781dbc'
+ 'b2c1ab041a82acd8391b06dc38d986be'
+ '7294edcec2589df04bb775270d56536e'
+ 'e1202dd915cba1a02e0016aa3a516b4a')
+
+build() {
+   cd "$srcdir/$pkgname-$pkgver"
+
+   patch -i "$srcdir/webfs.patch"
+   make
+}
+
+package() {
+   cd "$srcdir/$pkgname-$pkgver"
+
+   make prefix=/usr DESTDIR="$pkgdir" install
+   install -Dm644 "$srcdir/webfsd.conf" "$pkgdir/etc/conf.d/webfsd"
+   install -Dm644 "$srcdir/webfsd.service"  
"$pkgdir/usr/lib/systemd/system/webfsd.service"
+}

Copied: webfs/repos/community-staging-i686/webfs.patch (from rev 214926, 
webfs/trunk/webfs.patch)
===
--- community-staging-i686/webfs.patch  (rev 0)
+++ community-staging-i686/webfs.patch  2017-03-04 21:09:16 UTC (rev 214927)
@@ -0,0 +1,250 @@
+# This patch performs the following:
+#
+# 1) user/group names my now be set to the system maximum using
+#sysconf(_SC_LOGIN_NAME_MAX). They were previously hardcoded to 16 chars.
+#
+# 2) supplementary groups are now set according to the user webfs is running 
as.
+#previously they were left as the calling user, which could be dangerous
+#ex: sudo webfsd -u nobody, would leave webfsd with all of root's groups!
+#
+# 3) the supplementary group list is no longer made empty when using -g
+#
+# 4) supplementary groups are now checked for read access when generating
+#directory listings
+#
+# 5) in ls.c/ls() changed type of uid and gid to uid_t and gid_t
+#
+# 6) in ls.c/ls() fixed a problem where the uid of the file was being compared
+#to the gid of the user to check for readability
+#
+# 7) added a -G option to ignore/remove all supplementary groups
+#
+# 8) updated man page to reflect -G option
+#
+# 9) when the uid is 0, all files are now displayed as readable.
+#
+
+diff -urp webfs-1.21-orig/httpd.h webfs-1.21/httpd.h
+--- webfs-1.21-orig/httpd.h2004-06-10 05:45:50.0 -0400
 webfs-1.21/httpd.h 2010-03-27 14:57:07.63154 -0400
+@@ -169,6 +169,8 @@ extern intlifespan;
+ extern intno_listing;
+ extern time_t now;
+ extern int have_tty;
++extern gid_t  *grp_list;
++extern intgrp_num;
+ 
+ #ifdef USE_SSL
+ extern int  with_ssl;
+diff -urp webfs-1.21-orig/ls.c webfs-1.21/ls.c
+--- webfs-1.21-orig/ls.c   2004-06-10 05:45:50.0 -0400
 webfs-1.21/ls.c2010-03-28 10:52:09.449259926 -0400
+@@ -194,7 +194,9 @@ ls(time_t now, char *hostname, char *fi

[arch-commits] Commit in webfs/repos (10 files)

2016-03-02 Thread Felix Yan
Date: Wednesday, March 2, 2016 @ 19:15:04
  Author: fyan
Revision: 164177

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  webfs/repos/community-staging-i686/
  webfs/repos/community-staging-i686/PKGBUILD
(from rev 164174, webfs/trunk/PKGBUILD)
  webfs/repos/community-staging-i686/webfs.patch
(from rev 164174, webfs/trunk/webfs.patch)
  webfs/repos/community-staging-i686/webfsd.conf
(from rev 164175, webfs/trunk/webfsd.conf)
  webfs/repos/community-staging-i686/webfsd.service
(from rev 164175, webfs/trunk/webfsd.service)
  webfs/repos/community-staging-x86_64/
  webfs/repos/community-staging-x86_64/PKGBUILD
(from rev 164176, webfs/trunk/PKGBUILD)
  webfs/repos/community-staging-x86_64/webfs.patch
(from rev 164176, webfs/trunk/webfs.patch)
  webfs/repos/community-staging-x86_64/webfsd.conf
(from rev 164176, webfs/trunk/webfsd.conf)
  webfs/repos/community-staging-x86_64/webfsd.service
(from rev 164176, webfs/trunk/webfsd.service)

-+
 community-staging-i686/PKGBUILD |   39 
 community-staging-i686/webfs.patch  |  250 ++
 community-staging-i686/webfsd.conf  |5 
 community-staging-i686/webfsd.service   |   11 +
 community-staging-x86_64/PKGBUILD   |   39 
 community-staging-x86_64/webfs.patch|  250 ++
 community-staging-x86_64/webfsd.conf|5 
 community-staging-x86_64/webfsd.service |   11 +
 8 files changed, 610 insertions(+)

Copied: webfs/repos/community-staging-i686/PKGBUILD (from rev 164174, 
webfs/trunk/PKGBUILD)
===
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-03-02 18:15:04 UTC (rev 164177)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Kyle Keen 
+# Contributor: Roman Kyrylych 
+# Contributor: Mark Rosenstand 
+# Contributor: Daniel J Griffiths 
+# Contributor: Chris Brannon 
+
+pkgname=webfs
+pkgver=1.21
+pkgrel=12
+pkgdesc="Simple and instant http server for mostly static content."
+arch=(i686 x86_64)
+url="http://linux.bytesex.org/misc/webfs.html";
+license=("GPL")
+depends=('mime-types' 'openssl')
+backup=('etc/conf.d/webfsd')
+source=(http://dl.bytesex.org/releases/webfs/webfs-${pkgver}.tar.gz
+webfsd.conf
+webfs.patch
+webfsd.service)
+md5sums=('6dc125fe160479404147e7bbfc781dbc'
+ 'b2c1ab041a82acd8391b06dc38d986be'
+ '7294edcec2589df04bb775270d56536e'
+ 'e1202dd915cba1a02e0016aa3a516b4a')
+
+build() {
+   cd "$srcdir/$pkgname-$pkgver"
+
+   patch -i "$srcdir/webfs.patch"
+   make
+}
+
+package() {
+   cd "$srcdir/$pkgname-$pkgver"
+
+   make prefix=/usr DESTDIR="$pkgdir" install
+   install -Dm644 "$srcdir/webfsd.conf" "$pkgdir/etc/conf.d/webfsd"
+   install -Dm644 "$srcdir/webfsd.service"  
"$pkgdir/usr/lib/systemd/system/webfsd.service"
+}

Copied: webfs/repos/community-staging-i686/webfs.patch (from rev 164174, 
webfs/trunk/webfs.patch)
===
--- community-staging-i686/webfs.patch  (rev 0)
+++ community-staging-i686/webfs.patch  2016-03-02 18:15:04 UTC (rev 164177)
@@ -0,0 +1,250 @@
+# This patch performs the following:
+#
+# 1) user/group names my now be set to the system maximum using
+#sysconf(_SC_LOGIN_NAME_MAX). They were previously hardcoded to 16 chars.
+#
+# 2) supplementary groups are now set according to the user webfs is running 
as.
+#previously they were left as the calling user, which could be dangerous
+#ex: sudo webfsd -u nobody, would leave webfsd with all of root's groups!
+#
+# 3) the supplementary group list is no longer made empty when using -g
+#
+# 4) supplementary groups are now checked for read access when generating
+#directory listings
+#
+# 5) in ls.c/ls() changed type of uid and gid to uid_t and gid_t
+#
+# 6) in ls.c/ls() fixed a problem where the uid of the file was being compared
+#to the gid of the user to check for readability
+#
+# 7) added a -G option to ignore/remove all supplementary groups
+#
+# 8) updated man page to reflect -G option
+#
+# 9) when the uid is 0, all files are now displayed as readable.
+#
+
+diff -urp webfs-1.21-orig/httpd.h webfs-1.21/httpd.h
+--- webfs-1.21-orig/httpd.h2004-06-10 05:45:50.0 -0400
 webfs-1.21/httpd.h 2010-03-27 14:57:07.63154 -0400
+@@ -169,6 +169,8 @@ extern intlifespan;
+ extern intno_listing;
+ extern time_t now;
+ extern int have_tty;
++extern gid_t  *grp_list;
++extern intgrp_num;
+ 
+ #ifdef USE_SSL
+ extern int  with_ssl;
+diff -urp webfs-1.21-orig/ls.c webfs-1.21/ls.c
+--- webfs-1.21-orig/ls.c   2004-06-10 05:45:50.0 -0400
 webfs-1.21/ls.c2010-03-28 10:52:09.449259926 -0400
+@@ -194,7 +194,9 @@ ls(time_t now, char *hostname, char *fi