Added dependency libraries to ensure configure can find and use librrd.so
[openwrt/svn-archive/archive.git] / utils / reiserfsprogs / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=reiserfsprogs
12 PKG_VERSION:=3.6.19
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.namesys.com/pub/reiserfsprogs
17 PKG_MD5SUM:=b42cf15f6651c3ceff5cb84996c0d539
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/reiserfsprogs
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=ReiserFS filesystems utilities
29 DESCRIPTION:=\
30 This package contains utilities to create, check, resize, and debug \\\
31 ReiserFS filesystems.
32 URL:=http://www.namesys.com/
33 endef
34
35 #use Build/Configure/Default
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/reiserfsprogs/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/debugreiserfs $(1)/usr/sbin/
46 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mkreiserfs $(1)/usr/sbin/
47 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/reiserfsck $(1)/usr/sbin/
48 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/reiserfstune $(1)/usr/sbin/
49 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/resize_reiserfs $(1)/usr/sbin/
50 ln -sf mkreiserfs $(1)/usr/sbin/mkfs.reiserfs
51 ln -sf reiserfsck $(1)/usr/sbin/fsck.reiserfs
52 endef
53
54 $(eval $(call BuildPackage,reiserfsprogs))