2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_CPE_ID
:=cpe
:/a
:sgi
:xfsprogs
14 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/fs
/xfs
/xfsprogs
15 PKG_HASH
:=c3a6d87b564d7738243c507df82276bed982265e345363a95f2c764e8a5f5bb2
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/xfsprogs
/default
27 DEPENDS
:=+libuuid
+libpthread
+librt
28 URL
:=http
://oss.sgi.com
/projects
/xfs
31 define Package
/xfs-mkfs
32 $(call Package
/xfsprogs
/default
)
33 TITLE
:=Utility for creating XFS filesystems
36 define Package
/xfs-fsck
37 $(call Package
/xfsprogs
/default
)
38 TITLE
:=Utilities for checking and repairing XFS filesystems
41 define Package
/xfs-growfs
42 $(call Package
/xfsprogs
/default
)
43 TITLE
:=Utility for increasing the size of XFS filesystems
52 -I
$(STAGING_DIR
)/usr
/include \
53 -D_LARGEFILE64_SOURCE \
54 -D_FILE_OFFSET_BITS
=64 \
64 $(MAKE
) -C
$(PKG_BUILD_DIR
)/libxfs crc32table.h CFLAGS
="$(HOST_CFLAGS) -I$(PKG_BUILD_DIR)/include"
65 $(call Build
/Compile
/Default
)
68 define Package
/xfs-mkfs
/install
69 mkdir
-p
$(1)/usr
/sbin
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/sbin
/mkfs.xfs
$(1)/usr
/sbin
73 define Package
/xfs-fsck
/install
74 mkdir
-p
$(1)/usr
/sbin
75 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/sbin
/xfs_repair
$(1)/usr
/sbin
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/xfs_db
$(1)/usr
/sbin
79 define Package
/xfs-growfs
/install
80 mkdir
-p
$(1)/usr
/sbin
81 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/xfs_growfs
$(1)/usr
/sbin
84 $(eval
$(call BuildPackage
,xfs-mkfs
))
85 $(eval
$(call BuildPackage
,xfs-fsck
))
86 $(eval
$(call BuildPackage
,xfs-growfs
))