source: packages/utils/btrfs-progs/Makefile @ 20313

Last change on this file since 20313 was 20313, checked in by florian, 6 years ago

[package] update btrfs-progs to 0.19, patch by Benjamin Cama

File size: 1.5 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=btrfs-progs
11PKG_VERSION:=0.19
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/
16PKG_MD5SUM:=69e29ecd922e3f9dcb74a3a8f80b4f68
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/btrfs-progs
21  SECTION:=utils
22  CATEGORY:=Utilities
23  DEPENDS:=+libuuid +zlib
24  TITLE:=Btrfs filesystems utilities
25  URL:=http://btrfs.wiki.kernel.org/
26endef
27
28define Package/btrfs-progs/description
29 Btrfs is a new copy on write filesystem for Linux aimed at implementing
30 advanced features while focusing on fault tolerance, repair and easy
31 administration. Initially developed by Oracle, Btrfs is licensed under the
32 GPL and open for contribution from anyone.
33endef
34
35progs = btrfsctl mkfs.btrfs btrfs-debug-tree btrfs-show btrfs-vol btrfsck
36
37define Build/Compile
38        $(MAKE) -C $(PKG_BUILD_DIR) \
39                CC=$(TARGET_CC) \
40                CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
41                LDFLAGS="$(TARGET_LDFLAGS)" \
42                prefix=/usr \
43                DESTDIR=$(PKG_INSTALL_DIR) \
44                all install
45endef
46
47define Package/btrfs-progs/install
48        $(INSTALL_DIR) $(1)/usr/bin
49        $(INSTALL_BIN) $(addprefix $(PKG_INSTALL_DIR)/usr/bin/, $(progs)) $(1)/usr/bin/
50        $(INSTALL_DIR) $(1)/etc/init.d
51        $(INSTALL_BIN) ./files/btrfs-scan.init $(1)/etc/init.d/btrfs-scan
52endef
53
54$(eval $(call BuildPackage,btrfs-progs))
Note: See TracBrowser for help on using the repository browser.