djbdns: fix compile errors because of wrong ranlib use, also apply Johnny Halfmoon...
[packages.git] / utils / reiserfsprogs / 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:=reiserfsprogs
11 PKG_VERSION:=3.6.19
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.namesys.com/pub/reiserfsprogs
16 PKG_MD5SUM:=b42cf15f6651c3ceff5cb84996c0d539
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/reiserfsprogs
23   SECTION:=utils
24   CATEGORY:=Utilities
25   SUBMENU:=Filesystem
26   TITLE:=ReiserFS filesystems utilities
27   URL:=http://www.namesys.com/
28 endef
29
30 define Package/reiserfsprogs/description
31         This package contains utilities to create, check,
32         resize, and debug ReiserFS filesystems.
33 endef
34
35 define Build/Compile
36         $(MAKE) -C $(PKG_BUILD_DIR) \
37                 DESTDIR="$(PKG_INSTALL_DIR)" \
38                 all install
39 endef
40
41 define Package/reiserfsprogs/install
42         $(INSTALL_DIR) $(1)/usr/sbin
43         $(INSTALL_BIN) $(foreach bin,debugreiserfs mkreiserfs reiserfsck reiserfstune resize_reiserfs,$(PKG_INSTALL_DIR)/usr/sbin/$(bin)) $(1)/usr/sbin/
44         ln -sf mkreiserfs $(1)/usr/sbin/mkfs.reiserfs
45         ln -sf reiserfsck $(1)/usr/sbin/fsck.reiserfs
46 endef
47
48 $(eval $(call BuildPackage,reiserfsprogs))