summaryrefslogtreecommitdiff
path: root/package/cryptsetup
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-07-27 11:14:05 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-07-27 11:14:05 +0200
commit837188c702e62f8f9a0fd36d10c3b19685ffd851 (patch)
tree8991d8966d3a82fd75694244d89edcb5de6ce1cb /package/cryptsetup
parent71bb2494ff48192c10c345062f2e0d051fe9109e (diff)
reimplement cryptinit as shell script
Diffstat (limited to 'package/cryptsetup')
-rw-r--r--package/cryptsetup/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/cryptsetup/Makefile b/package/cryptsetup/Makefile
index 06d4c40ce..477076411 100644
--- a/package/cryptsetup/Makefile
+++ b/package/cryptsetup/Makefile
@@ -16,6 +16,9 @@ PKG_BUILDDEP:= libgcrypt popt e2fsprogs lvm
PKG_URL:= http://cryptsetup.googlecode.com/
PKG_SITES:= http://cryptsetup.googlecode.com/files/
+PKG_SUBPKGS:= CRYPTSETUP CRYPTSETUP_DEV
+PKGSC_CRYPTSETUP_DEV:= devel
+
PKG_ARCH_DEPENDS:= !cris
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
@@ -23,10 +26,10 @@ DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,CRYPTSETUP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,CRYPTSETUP_DEV,cryptsetup-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_CRYPTSETUP_DEV}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
-CONFIGURE_ARGS+= --disable-selinux \
- --disable-static
+CONFIGURE_ARGS+= --disable-selinux
post-install:
${INSTALL_DIR} ${IDIR_CRYPTSETUP}/usr/sbin ${IDIR_CRYPTSETUP}/usr/lib
@@ -35,4 +38,9 @@ post-install:
${INSTALL_BIN} ${WRKINST}/usr/sbin/cryptsetup \
${IDIR_CRYPTSETUP}/usr/sbin
+cryptsetup-dev-install:
+ ${INSTALL_DIR} ${IDIR_CRYPTSETUP_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/* \
+ ${IDIR_CRYPTSETUP_DEV}/usr/include
+
include ${TOPDIR}/mk/pkg-bottom.mk