0ba3fcdd6b7f66b4ad55b80aec452f07de3aa489
[openwrt/svn-archive/archive.git] / utils / cryptsetup / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=cryptsetup
11 PKG_VERSION:=1.3.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://cryptsetup.googlecode.com/files/
16 PKG_MD5SUM:=d2bc0fd59c1118ec3bfae099af38d333
17
18 include $(INCLUDE_DIR)/package.mk
19
20 TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
21
22 define Package/cryptsetup/Default
23 URL:=http://code.google.com/p/cryptsetup/
24 endef
25
26 define Package/cryptsetup
27 $(call Package/cryptsetup/Default)
28 SECTION:=utils
29 CATEGORY:=Utilities
30 TITLE:=Cryptsetup
31 DEPENDS:=@!LINUX_2_4 +libblkid +libuuid +libpopt +lvm2 +libgcrypt
32 endef
33
34 define Package/cryptsetup/description
35 Cryptsetup-luks
36 endef
37
38 define Build/Compile
39 $(call Build/Configure/Default)
40 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
41 endef
42
43 define Package/cryptsetup/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cryptsetup $(1)/usr/sbin
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptsetup.so.* $(1)/usr/lib
48 endef
49
50 $(eval $(call BuildPackage,cryptsetup))