2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://cryptsetup.googlecode.com
/files
/
16 PKG_MD5SUM
:=8177f1833f4d6aaacc5812046d2010b6
18 include $(INCLUDE_DIR
)/package.mk
20 TARGET_LDFLAGS
+=-Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
22 define Package
/cryptsetup
/Default
23 URL
:=http
://code.google.com
/p
/cryptsetup
/
26 define Package
/cryptsetup
27 $(call Package
/cryptsetup
/Default
)
31 DEPENDS
:=@LINUX_2_6
+libblkid
+libuuid
+libpopt
+lvm2
+libgcrypt
34 define Package
/cryptsetup
/description
39 $(call Build
/Configure
/Default
)
40 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" install
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
50 $(eval
$(call BuildPackage
,cryptsetup
))