ecryptfs-utils: cross build support.

This commit is contained in:
Juan RP 2014-02-18 17:19:05 +01:00
parent 6ea13e3202
commit 123c696a8d

View file

@ -1,35 +1,30 @@
# Template file for 'ecryptfs-utils' # Template file for 'ecryptfs-utils'
pkgname=ecryptfs-utils pkgname=ecryptfs-utils
version=101 version=101
revision=2 revision=3
build_style=gnu-configure build_style=gnu-configure
configure_args="--with-pamdir=/usr/lib/security --enable-gpg --enable-gui" configure_args="--with-pamdir=/usr/lib/security --enable-gpg --enable-gui
makedepends="pkg-config intltool python-devel pam-devel nss-devel --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr"
swig openssl-devel keyutils-devel gpgme-devel gtk+-devel" 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)" short_desc="ecryptfs cryptographic filesystem (utilities)"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3" license="GPL-3"
homepage="http://ecryptfs.org/" homepage="http://ecryptfs.org/"
distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz" distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz"
checksum=f8ddd2be2e208fb2f11aeca1721135c3c31465f78f2318981df682741ac72c55 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" 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() { post_install() {
vmkdir usr vmkdir usr
mv ${DESTDIR}/sbin ${DESTDIR}/usr mv ${DESTDIR}/sbin ${DESTDIR}/usr
@ -43,7 +38,7 @@ post_install() {
libecryptfs_package() { libecryptfs_package() {
short_desc="ecryptfs cryptographic filesystem (library)" short_desc="ecryptfs cryptographic filesystem (library)"
pkg_install() { pkg_install() {
vmove "usr/lib/*.so*" vmove "usr/lib/*.so.*"
} }
} }
@ -53,9 +48,12 @@ libecryptfs-devel_package() {
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
} }
} }
if [ -z "$CROSS_BUILD" ]; then
ecryptfs-utils-python_package() { ecryptfs-utils-python_package() {
depends="python" depends="python"
short_desc="ecryptfs cryptographic filesystem (python binding)" short_desc="ecryptfs cryptographic filesystem (python binding)"
@ -63,3 +61,5 @@ ecryptfs-utils-python_package() {
vmove usr/lib/python2.7 vmove usr/lib/python2.7
} }
} }
fi