Add more license tags with SPDX identifiers
[openwrt.git] / package / system / mountd / Makefile
1 # Copyright (C) 2009-2012 OpenWrt.org
2 # All rights reserved.
3
4 include $(TOPDIR)/rules.mk
5
6 PKG_NAME:=mountd
7 PKG_VERSION:=0.1
8 PKG_RELEASE:=6
9
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
11 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
12 PKG_MD5SUM:=b77253ee4321d24d200fffc4f7ca3d15
13 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
14 PKG_CHECK_FORMAT_SECURITY:=0
15 PKG_LICENSE:=GPL-2.0
16
17 PKG_LICENSE:=GPL-2.0+
18 PKG_LICENSE_FILES:=
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/mountd
23   SECTION:=utils
24   CATEGORY:=Utilities
25   TITLE:=OpenWrt automount daemon
26   DEPENDS:=@USB_SUPPORT +uci +kmod-usb-storage +kmod-fs-autofs4
27   URL:=http://www.openwrt.org
28 endef
29
30 define Package/mountd/description
31   openwrt automount daemon
32 endef
33
34 define Package/mountd/conffiles
35 /etc/config/mountd
36 endef
37
38 define Build/Compile
39         $(TARGET_CONFIGURE_OPTS) \
40                 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)" \
41                 LDFLAGS="$(TARGET_LDFLAGS)" \
42                 $(MAKE) -C $(PKG_BUILD_DIR)
43 endef
44
45 define Package/mountd/install
46         $(INSTALL_DIR) $(1)/sbin/ $(1)/etc/config/ $(1)/etc/init.d/
47         $(INSTALL_BIN) $(PKG_BUILD_DIR)/mountd $(1)/sbin/
48         $(INSTALL_DATA) ./files/mountd.config $(1)/etc/config/mountd
49         $(INSTALL_BIN) ./files/mountd.init $(1)/etc/init.d/mountd
50 endef
51
52 $(eval $(call BuildPackage,mountd))