swconfig: make reset and enable_vlan default to 1 (based on patch by Nikolay Martynov)
[openwrt.git] / package / xfsprogs / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=xfsprogs
11 PKG_RELEASE:=1
12 PKG_VERSION:=3.1.4
13 PKG_SOURCE_URL:=http://ftp.debian.org/pool/main/x/xfsprogs
14 PKG_MD5SUM:=23568a603c913b80076abe3c23521573
15
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
17 PKG_INSTALL:=1
18 PKG_FIXUP:=autoreconf
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22
23 define Package/xfsprogs/default
24 SECTION:=utils
25 CATEGORY:=Utilities
26 DEPENDS:=+libuuid +libpthread +librt
27 URL:=http://oss.sgi.com/projects/xfs
28 endef
29
30 define Package/xfs-mkfs
31 $(call Package/xfsprogs/default)
32 TITLE:=Utility for creating XFS filesystems
33 endef
34
35 define Package/xfs-fsck
36 $(call Package/xfsprogs/default)
37 TITLE:=Utilities for checking and repairing XFS filesystems
38 endef
39
40 define Package/xfs-growfs
41 $(call Package/xfsprogs/default)
42 TITLE:=Utility for increasing the size of XFS filesystems
43 endef
44
45 CONFIGURE_ARGS += \
46 --enable-gettext=no \
47 --enable-lib64=no
48
49 TARGET_CFLAGS += \
50 -I$(STAGING_DIR)/usr/include \
51 -D_LARGEFILE64_SOURCE \
52 -D_FILE_OFFSET_BITS=64 \
53 -D_GNU_SOURCE
54
55 MAKE_FLAGS += \
56 DEBUG= Q= \
57 PCFLAGS="-Wall" \
58 PKG_PLATFORM=linux \
59 ENABLE_GETTEXT=no \
60 prefix=$(PKG_INSTALL_DIR)/usr \
61 exec_prefix=$(PKG_INSTALL_DIR)/usr \
62 PKG_SBIN_DIR=$(PKG_INSTALL_DIR)/usr/sbin \
63 PKG_ROOT_SBIN_DIR=$(PKG_INSTALL_DIR)/sbin \
64 PKG_MAN_DIR=$(PKG_INSTALL_DIR)/usr/man \
65 PKG_LOCALE_DIR=$(PKG_INSTALL_DIR)/usr/share/locale \
66 PKG_ROOT_LIB_DIR=$(PKG_INSTALL_DIR)/lib \
67 PKG_DOC_DIR=$(PKG_INSTALL_DIR)/usr/share/doc/xfsprogs
68
69 define Package/xfs-mkfs/install
70 mkdir -p $(1)/sbin
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/sbin
72 endef
73
74 define Package/xfs-fsck/install
75 mkdir -p $(1)/sbin
76 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/sbin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
78 endef
79
80 define Package/xfs-growfs/install
81 mkdir -p $(1)/sbin
82 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/sbin
83 endef
84
85 $(eval $(call BuildPackage,xfs-mkfs))
86 $(eval $(call BuildPackage,xfs-fsck))
87 $(eval $(call BuildPackage,xfs-growfs))
This page took 0.049982 seconds and 5 git commands to generate.