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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/fs
/xfs
/xfsprogs
16 PKG_HASH
:=d67dcba5a28e0904b60886b6e5f752bc7c9c3a5c7096153855b5adca9db86c51
19 PKG_LICENSE
:=GPL-2.0
-only
20 PKG_LICENSE_FILES
:=LICENSES
/GPL-2.0
21 PKG_CPE_ID
:=cpe
:/a
:sgi
:xfsprogs
23 PKG_BUILD_DEPENDS
:=inih
24 PKG_BUILD_FLAGS
:=no-mips16
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/xfsprogs
/default
34 DEPENDS
:=+liburcu
+libuuid
+libpthread
38 define Package
/xfs-admin
39 $(call Package
/xfsprogs
/default
)
40 TITLE
:=Utilities for changing parameters of an XFS filesystems
43 define Package
/xfs-mkfs
44 $(call Package
/xfsprogs
/default
)
45 TITLE
:=Utility for creating XFS filesystems
49 define Package
/xfs-fsck
50 $(call Package
/xfsprogs
/default
)
51 TITLE
:=Utilities for checking and repairing XFS filesystems
54 define Package
/xfs-growfs
55 $(call Package
/xfsprogs
/default
)
56 TITLE
:=Utility for increasing the size of XFS filesystems
73 TARGET_CFLAGS
+= -DHAVE_MAP_SYNC
$(if
$(CONFIG_USE_MUSL
),-D_LARGEFILE64_SOURCE
)
74 TARGET_LDFLAGS
+= $(if
$(CONFIG_USE_GLIBC
),-lrt
)
76 define Package
/xfs-admin
/install
77 $(INSTALL_DIR
) $(1)/sbin
78 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/xfs_db
$(1)/sbin
79 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/xfs_admin
$(1)/sbin
82 define Package
/xfs-mkfs
/install
83 $(INSTALL_DIR
) $(1)/usr
/sbin
84 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/sbin
/mkfs.xfs
$(1)/usr
/sbin
87 define Package
/xfs-fsck
/install
88 $(INSTALL_DIR
) $(1)/usr
/sbin
89 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/sbin
/xfs_repair
$(1)/usr
/sbin
90 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/xfs_db
$(1)/usr
/sbin
93 define Package
/xfs-growfs
/install
94 $(INSTALL_DIR
) $(1)/usr
/sbin
95 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/xfs_growfs
$(1)/usr
/sbin
98 $(eval
$(call BuildPackage
,xfs-admin
))
99 $(eval
$(call BuildPackage
,xfs-mkfs
))
100 $(eval
$(call BuildPackage
,xfs-fsck
))
101 $(eval
$(call BuildPackage
,xfs-growfs
))