[packages] collectd: provide missing AM_PATH_LIBGCRYPT macro and autoreconf libltdl...
[openwrt/svn-archive/archive.git] / utils / btrfs-progs / Makefile
1 #
2 # Copyright (C) 2009 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:=btrfs-progs
11 PKG_VERSION:=0.19
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/
16 PKG_MD5SUM:=69e29ecd922e3f9dcb74a3a8f80b4f68
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/btrfs-progs
24 SECTION:=utils
25 CATEGORY:=Utilities
26 SUBMENU:=Filesystem
27 DEPENDS:=@!LINUX_2_4 +libuuid +zlib
28 TITLE:=Btrfs filesystems utilities
29 URL:=http://btrfs.wiki.kernel.org/
30 endef
31
32 define Package/btrfs-progs/description
33 Btrfs is a new copy on write filesystem for Linux aimed at implementing
34 advanced features while focusing on fault tolerance, repair and easy
35 administration. Initially developed by Oracle, Btrfs is licensed under the
36 GPL and open for contribution from anyone.
37 endef
38
39 progs = btrfsctl mkfs.btrfs btrfs-debug-tree btrfs-show btrfs-vol btrfsck
40
41 MAKE_FLAGS+=\
42 CC="$(TARGET_CC)" \
43 CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
44 LDFLAGS="$(TARGET_LDFLAGS)" \
45 prefix=/usr \
46 DESTDIR=$(PKG_INSTALL_DIR)
47
48 define Package/btrfs-progs/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(addprefix $(PKG_INSTALL_DIR)/usr/bin/, $(progs)) $(1)/usr/bin/
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/btrfs-scan.init $(1)/etc/init.d/btrfs-scan
53 endef
54
55 $(eval $(call BuildPackage,btrfs-progs))