2011-02-16 18:20:30 +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
|
|
|
|
PKG_RELEASE:=1
|
2012-03-17 21:30:31 +00:00
|
|
|
PKG_VERSION:=3.1.7
|
2012-03-29 17:09:50 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://oss.sgi.com/projects/xfs/previous/
|
2012-03-17 21:30:31 +00:00
|
|
|
PKG_MD5SUM:=049cf9873794ea49d0bb3f12d45748a4
|
2011-02-16 18:20:30 +00:00
|
|
|
|
2012-03-17 21:30:31 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-02-16 18:20:30 +00:00
|
|
|
PKG_INSTALL:=1
|
2011-03-06 21:42:48 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2011-02-16 18:20:30 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
|
|
|
|
define Package/xfsprogs/default
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libuuid +libpthread +librt
|
|
|
|
URL:=http://oss.sgi.com/projects/xfs
|
|
|
|
endef
|
|
|
|
|
|
|
|
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 \
|
|
|
|
--enable-lib64=no
|
|
|
|
|
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 \
|
|
|
|
ENABLE_GETTEXT=no \
|
|
|
|
prefix=$(PKG_INSTALL_DIR)/usr \
|
|
|
|
exec_prefix=$(PKG_INSTALL_DIR)/usr \
|
|
|
|
PKG_SBIN_DIR=$(PKG_INSTALL_DIR)/usr/sbin \
|
|
|
|
PKG_ROOT_SBIN_DIR=$(PKG_INSTALL_DIR)/sbin \
|
|
|
|
PKG_MAN_DIR=$(PKG_INSTALL_DIR)/usr/man \
|
|
|
|
PKG_LOCALE_DIR=$(PKG_INSTALL_DIR)/usr/share/locale \
|
|
|
|
PKG_ROOT_LIB_DIR=$(PKG_INSTALL_DIR)/lib \
|
|
|
|
PKG_DOC_DIR=$(PKG_INSTALL_DIR)/usr/share/doc/xfsprogs
|
|
|
|
|
|
|
|
define Package/xfs-mkfs/install
|
|
|
|
mkdir -p $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/sbin
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xfs-fsck/install
|
|
|
|
mkdir -p $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/xfs-growfs/install
|
|
|
|
mkdir -p $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/sbin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,xfs-mkfs))
|
|
|
|
$(eval $(call BuildPackage,xfs-fsck))
|
|
|
|
$(eval $(call BuildPackage,xfs-growfs))
|