Added Davfs2 1.5.2, neon 0.3.0 package (Signed-off-by: Federico Di Marco <fededim@gmail.com>)

As requested by Etienne Champetier champetier.etienne@gmail.com, please see (https://lists.openwrt.org/pipermail/openwrt-devel/2014-August/027269.html)

From: Federico Di Marco fededim@gmail.com

Body of explanation:
A new package has been added in packages feed under net/davfs2 directory, porting a simple tool to mount a WebDAV resource as a regular file system (please see https://savannah.nongnu.org/projects/davfs2/ ) to OpenWRT. There was also a previous ticket requesting the porting of this tool (https://dev.openwrt.org/ticket/12843). The neon library used by this tool has been ported as well.

The patch consists of the following files:
- Makefile: standard makefile of OpenWRT packages which downloads from the source code and compiles it into a package using the uClibc.
- files/davfs2.conf: configuration file for davfs2
- patches/010-main_code_fix.patch: minor fixes to allow the source code to compile under uClibc (code replacement rpmatch function not present in uclibc, fix of an include path and removed libssp not supported under openwrt)

Signed-off-by: Federico Di Marco fededim@gmail.com
Well "to comply with your repository" I borrowed it from the Makefile of
ntfs-3g (another fs using fuse), see its post inst

https://dev.openwrt.org/browser/packages/utils/ntfs-3g/Makefile?rev=42100

Ok for FILE var. I agree it seems unuseful, shall I remove it ?


On Mon, Sep 8, 2014 at 10:23 PM, champtar <notifications@github.com> wrote:

> In net/davfs2/Makefile:
>
> > +	$(INSTALL_DIR) $(1)/usr/sbin
> > +	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mount.davfs $(1)/usr/sbin/
> > +	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/umount.davfs $(1)/usr/sbin/
> > +	$(INSTALL_DIR) $(1)/etc
> > +	$(INSTALL_DIR) $(1)/etc/davfs2
> > +	$(INSTALL_DATA) files/$(PKG_NAME).conf $(1)/etc/davfs2
> > +endef
> > +
> > +
> > +define Package/davfs2/postinst
> > +#!/bin/sh
> > +FILE="$${IPKG_INSTROOT}/etc/filesystems"
> > +ID="davfs2"
> > +
> > +if ! [ -f '/etc/filesystems' ]; then
> > +	echo "Create '$$FILE'."
>
> i think you should replace '/etc/filesystems' with FILE var.
> what's the purpose of /etc/filesystems BTW? because having a file with one
> line 'davfs2' ...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/openwrt/packages/pull/286/files#r17264264>.
>