treewide: add PKG_CPE_ID for better cvescanner coverage
[feed/packages.git] / net / davfs2 / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=davfs2
11 PKG_VERSION:=1.5.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SAVANNAH/davfs2
16 PKG_HASH:=587c6a25ad78109995a7ccb8e60aa1c491b149f2c99d47033f3d5e648430ad2f
17
18 PKG_MAINTAINER:=Federico Di Marco <fededim@gmail.com>
19 PKG_LICENSE:=GPL-3
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:davfs2:davfs2
22
23 PKG_FIXUP:=gettext-version autoreconf
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/nls.mk
28
29 define Package/davfs2
30 SECTION:=net
31 CATEGORY:=Network
32 SUBMENU:=Filesystem
33 DEPENDS=+libneon +kmod-fuse +libfuse $(ICONV_DEPENDS) $(INTL_DEPENDS)
34 TITLE:=Mount a WebDAV resource as a regular file system.
35 URL:=https://savannah.nongnu.org/projects/davfs2/
36 endef
37
38 define Package/davfs2/description
39 Web Distributed Authoring and Versioning (WebDAV), an extension to the HTTP-protocol,
40 allows authoring of resources on a remote web server.davfs2 provides the ability to
41 access such resources like a typical filesystem, allowing for use by standard
42 applications with no built-in support for WebDAV.
43
44 davfs2 is designed to fully integrate into the filesystem semantics of Unix-like
45 systems (mount, umount, etc.). davfs2 makes mounting by unprivileged users as easy
46 and secure as possible.
47
48 davfs2 does extensive caching to make the file system responsive, to avoid
49 unnecessary network traffic and to prevent data loss, and to cope for slow or
50 unreliable connections.
51
52 davfs2 will work with most WebDAV servers needing little or no configuration.
53 endef
54
55 define Package/davfs2/conffiles
56 /etc/davfs2/davfs2.conf
57 endef
58
59 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include # $(ICONV_CFLAGS) $(INTL_CFLAGS)
60
61 TARGET_CPPFLAGS += -D_GNU_SOURCE # $(ICONV_CPFLAGS) $(INTL_CPPFLAGS)
62
63 CONFIGURE_VARS += \
64 LDFLAGS="$(TARGET_LDFLAGS) -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib $(if $(INTL_FULL),-lintl) $(if $(ICONV_FULL),-liconv)" #$(INTL_LDFLAGS) $(ICONV_LDFLAGS)
65
66 CONFIGURE_ARGS += --with-neon="$(STAGING_DIR)/usr" --enable-largefile #--with-libintl-prefix=$(INTL_PREFIX) --with-libiconv-prefix=$(ICONV_PREFIX)
67
68 define Package/davfs2/install
69 $(INSTALL_DIR) $(1)/usr/sbin
70 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mount.davfs $(1)/usr/sbin/
71 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/umount.davfs $(1)/usr/sbin/
72 $(INSTALL_DIR) $(1)/etc
73 $(INSTALL_DIR) $(1)/etc/davfs2
74 $(INSTALL_DATA) files/$(PKG_NAME).conf $(1)/etc/davfs2
75 endef
76
77 $(eval $(call BuildPackage,davfs2))