2015-10-15 22:12:13 +00:00
|
|
|
#
|
2012-03-17 21:30:31 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2011-02-16 18:20:30 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xfsprogs
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:sgi:xfsprogs
|
2018-03-19 12:05:03 +00:00
|
|
|
PKG_RELEASE:=2
|
2017-05-09 13:20:23 +00:00
|
|
|
PKG_VERSION:=4.11.0
|
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/fs/xfs/xfsprogs
|
|
|
|
PKG_HASH:=c3a6d87b564d7738243c507df82276bed982265e345363a95f2c764e8a5f5bb2
|
2011-02-16 18:20:30 +00:00
|
|
|
|
2017-05-09 13:20:23 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2011-02-16 18:20:30 +00:00
|
|
|
PKG_INSTALL:=1
|
2017-05-09 13:20:23 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2011-02-16 18:20:30 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/xfsprogs/default
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2013-11-17 16:14:58 +00:00
|
|
|
SUBMENU:=Filesystem
|
2011-02-16 18:20:30 +00:00
|
|
|
DEPENDS:=+libuuid +libpthread +librt
|
|
|
|
URL:=http://oss.sgi.com/projects/xfs
|
|
|
|
endef
|
|
|
|
|
2018-03-19 12:05:03 +00:00
|
|
|
define Package/xfs-admin
|
|
|
|
$(call Package/xfsprogs/default)
|
|
|
|
TITLE:=Utilities for changing parameters of an XFS filesystems
|
|
|
|
endef
|
|
|
|
|
2011-02-16 18:20:30 +00:00
|
|
|
define Package/xfs-mkfs
|
|
|
|
$(call Package/xfsprogs/default)
|
|
|
|
TITLE:=Utility for creating XFS filesystems
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xfs-fsck
|
|
|
|
$(call Package/xfsprogs/default)
|
|
|
|
TITLE:=Utilities for checking and repairing XFS filesystems
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xfs-growfs
|
|
|
|
$(call Package/xfsprogs/default)
|
|
|
|
TITLE:=Utility for increasing the size of XFS filesystems
|
|
|
|
endef
|
|
|
|
|
2011-02-26 17:40:09 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-gettext=no \
|
2013-07-06 14:49:04 +00:00
|
|
|
--enable-lib64=no \
|
|
|
|
--enable-blkid=no
|
2011-02-26 17:40:09 +00:00
|
|
|
|
2011-02-16 18:20:30 +00:00
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-I$(STAGING_DIR)/usr/include \
|
|
|
|
-D_LARGEFILE64_SOURCE \
|
|
|
|
-D_FILE_OFFSET_BITS=64 \
|
|
|
|
-D_GNU_SOURCE
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
DEBUG= Q= \
|
|
|
|
PCFLAGS="-Wall" \
|
|
|
|
PKG_PLATFORM=linux \
|
2017-05-09 13:20:23 +00:00
|
|
|
ENABLE_GETTEXT=no
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/libxfs crc32table.h CFLAGS="$(HOST_CFLAGS) -I$(PKG_BUILD_DIR)/include"
|
|
|
|
$(call Build/Compile/Default)
|
|
|
|
endef
|
2011-02-16 18:20:30 +00:00
|
|
|
|
2018-03-19 12:05:03 +00:00
|
|
|
define Package/xfs-admin/install
|
|
|
|
mkdir -p $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_admin $(1)/sbin
|
|
|
|
endef
|
|
|
|
|
2011-02-16 18:20:30 +00:00
|
|
|
define Package/xfs-mkfs/install
|
2016-10-16 15:21:42 +00:00
|
|
|
mkdir -p $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/usr/sbin
|
2011-02-16 18:20:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xfs-fsck/install
|
2016-10-16 15:21:42 +00:00
|
|
|
mkdir -p $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/usr/sbin
|
2011-02-16 18:20:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xfs-growfs/install
|
2016-10-16 15:21:42 +00:00
|
|
|
mkdir -p $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/usr/sbin
|
2011-02-16 18:20:30 +00:00
|
|
|
endef
|
|
|
|
|
2018-03-19 12:05:03 +00:00
|
|
|
$(eval $(call BuildPackage,xfs-admin))
|
2011-02-16 18:20:30 +00:00
|
|
|
$(eval $(call BuildPackage,xfs-mkfs))
|
|
|
|
$(eval $(call BuildPackage,xfs-fsck))
|
|
|
|
$(eval $(call BuildPackage,xfs-growfs))
|