[package] add cryptsetup, patch from Jan Willies
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20320 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7888628fca
commit
3a1b370296
50
utils/cryptsetup/Makefile
Normal file
50
utils/cryptsetup/Makefile
Normal file
@ -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))
|
Loading…
x
Reference in New Issue
Block a user