[packages]: net/freeswitch: Added UCI config of extensions and incoming DIDs (to...
[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.1.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:=8177f1833f4d6aaacc5812046d2010b6
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_6 +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))