treewide: add PKG_CPE_ID for better cvescanner coverage
[feed/packages.git] / utils / dosfstools / Makefile
1 #
2 # Copyright (C) 2006-2016 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:=dosfstools
11 PKG_VERSION:=4.1
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://github.com/dosfstools/dosfstools/releases/download/v$(PKG_VERSION)/ \
16 http://fossies.org/linux/misc
17 PKG_HASH:=e6b2aca70ccc3fe3687365009dd94a2e18e82b688ed4e260e04b7412471cc173
18 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
19
20 PKG_LICENSE:=GPL-3.0-or-later
21 PKG_LICENSE_FILES:=COPYING
22 PKG_CPE_ID:=cpe:/a:dosfstools_project:dosfstools
23
24 PKG_INSTALL:=1
25 PKG_FIXUP:=autoreconf
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/nls.mk
29
30 CONFIGURE_ARGS += \
31 --without-udev
32
33 define Package/dosfstools
34 SECTION:=utils
35 CATEGORY:=Utilities
36 SUBMENU:=Filesystem
37 DEPENDS:=$(ICONV_DEPENDS)
38 TITLE:=Utilities for making and checking MS-DOS FAT filesystems
39 URL:=https://github.com/dosfstools
40 endef
41
42 define Package/dosfstools/description
43 The dosfstools package includes the mkfs.fat and fsck.fat utilities, which respectively make and check MS-DOS FAT filesystems.
44 endef
45
46 define Package/dosfstools/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fatlabel $(1)/usr/sbin/
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fsck.fat $(1)/usr/sbin/
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkfs.fat $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,dosfstools))