This patch adds support for cryptsetup, based on a Makefile I found on
the internet.
Unfortunately cryptsetup looks for libdevmapper.so.1.02 while there's
only libdevmapper.so available. As I don't know where to fix this (in
lvm or cryptsetup?) and how, I leave this open for someone who does know.
For now, this helps:
cd staging_dir/target-mips_uClibc-0.9.30.1/usr/lib/
ln -s libdevmapper.so libdevmapper.so.1.02
cheers,
- jan
Index: utils/cryptsetup/Makefile
===================================================================
--- utils/cryptsetup/Makefile (Revision 0)
+++ utils/cryptsetup/Makefile (Revision 0)
@@ -0,0 +1,50 @@
+#
+# Copyright (C) 2006-2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=cryptsetup
+PKG_VERSION:=1.1.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=http://cryptsetup.googlecode.com/files/
+PKG_MD5SUM:=8177f1833f4d6aaacc5812046d2010b6
+
+include $(INCLUDE_DIR)/package.mk
+
+TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
+
+define Package/cryptsetup/Default
+ URL:=http://cryptsetup.googlecode.com/files/
+endef
+
+define Package/cryptsetup
+$(call Package/cryptsetup/Default)
+ SECTION:=utils
+ CATEGORY:=Utilities
+ TITLE:=Cryptsetup
+ DEPENDS:=+libblkid +libuuid +libpopt +lvm2 +libgcrypt
+endef
+
+define Package/cryptsetup/description
+ Cryptsetup-luks
+endef
+
+define Build/Compile
+ $(call Build/Configure/Default)
+ $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
+endef
+
+define Package/cryptsetup/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cryptsetup $(1)/usr/sbin
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcryptsetup.so.* $(1)/usr/lib
+endef
+
+$(eval $(call BuildPackage,cryptsetup))
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel