From 123c696a8d479af8debc6427b0ebe953f828e5c0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Feb 2014 17:19:05 +0100 Subject: [PATCH] ecryptfs-utils: cross build support. --- srcpkgs/ecryptfs-utils/template | 40 ++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/srcpkgs/ecryptfs-utils/template b/srcpkgs/ecryptfs-utils/template index 5fb75c3d07..1e3ef0c035 100644 --- a/srcpkgs/ecryptfs-utils/template +++ b/srcpkgs/ecryptfs-utils/template @@ -1,35 +1,30 @@ # Template file for 'ecryptfs-utils' pkgname=ecryptfs-utils version=101 -revision=2 +revision=3 build_style=gnu-configure -configure_args="--with-pamdir=/usr/lib/security --enable-gpg --enable-gui" -makedepends="pkg-config intltool python-devel pam-devel nss-devel - swig openssl-devel keyutils-devel gpgme-devel gtk+-devel" +configure_args="--with-pamdir=/usr/lib/security --enable-gpg --enable-gui + --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr" +hostmakedepends="libtool pkg-config intltool swig" +makedepends="python-devel pam-devel nss-devel openssl-devel keyutils-devel gpgme-devel gtk+-devel" short_desc="ecryptfs cryptographic filesystem (utilities)" maintainer="Juan RP " license="GPL-3" homepage="http://ecryptfs.org/" distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz" checksum=f8ddd2be2e208fb2f11aeca1721135c3c31465f78f2318981df682741ac72c55 -long_desc=" - eCryptfs is a POSIX-compliant enterprise-class stacked cryptographic filesystem - for Linux. - - It provides advanced key management and policy features. eCryptfs stores - cryptographic metadata in the header of each file written, so that encrypted - files can be copied between hosts; the file will be decryptable with the proper - key, and there is no need to keep track of any additional information aside from - what is already in the encrypted file itself. Think of eCryptfs as a sort of - gnupgfs. - - eCryptfs is a native Linux filesystem. The kernel module component of eCryptfs - is part of the Linux kernel since 2.6.19. - - This package contains the userland utilities." CPPFLAGS="-D_FILE_OFFSET_BITS=64" +if [ "$CROSS_BUILD" ]; then + # XXX disable python subpkg for now + configure_args+=" --disable-pywrap" +fi + +pre_configure() { + libtoolize -f +} + post_install() { vmkdir usr mv ${DESTDIR}/sbin ${DESTDIR}/usr @@ -43,7 +38,7 @@ post_install() { libecryptfs_package() { short_desc="ecryptfs cryptographic filesystem (library)" pkg_install() { - vmove "usr/lib/*.so*" + vmove "usr/lib/*.so.*" } } @@ -53,9 +48,12 @@ libecryptfs-devel_package() { pkg_install() { vmove usr/include vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" } } +if [ -z "$CROSS_BUILD" ]; then + ecryptfs-utils-python_package() { depends="python" short_desc="ecryptfs cryptographic filesystem (python binding)" @@ -63,3 +61,5 @@ ecryptfs-utils-python_package() { vmove usr/lib/python2.7 } } + +fi