2012-08-07 20:30:50 +02:00
|
|
|
# Template file for 'ecryptfs-utils'
|
|
|
|
pkgname=ecryptfs-utils
|
2012-11-23 03:00:17 +01:00
|
|
|
version=101
|
2014-03-29 15:42:52 +01:00
|
|
|
revision=4
|
|
|
|
lib32disabled=yes
|
2012-08-07 20:30:50 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-18 17:19:05 +01:00
|
|
|
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"
|
2012-08-07 20:30:50 +02:00
|
|
|
short_desc="ecryptfs cryptographic filesystem (utilities)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="http://ecryptfs.org/"
|
|
|
|
distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz"
|
2012-11-23 03:00:17 +01:00
|
|
|
checksum=f8ddd2be2e208fb2f11aeca1721135c3c31465f78f2318981df682741ac72c55
|
2012-08-07 20:30:50 +02:00
|
|
|
|
2014-02-18 17:19:05 +01:00
|
|
|
CPPFLAGS="-D_FILE_OFFSET_BITS=64"
|
2012-08-07 20:30:50 +02:00
|
|
|
|
2014-02-18 17:19:05 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX disable python subpkg for now
|
|
|
|
configure_args+=" --disable-pywrap"
|
|
|
|
fi
|
2012-08-07 20:30:50 +02:00
|
|
|
|
2014-02-18 17:19:05 +01:00
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
2012-08-07 22:45:34 +02:00
|
|
|
|
2012-08-07 20:30:50 +02:00
|
|
|
post_install() {
|
2013-04-15 22:30:57 +02:00
|
|
|
vmkdir usr
|
|
|
|
mv ${DESTDIR}/sbin ${DESTDIR}/usr
|
2012-08-07 20:30:50 +02:00
|
|
|
chmod +s ${DESTDIR}/usr/sbin/mount.ecryptfs_private
|
|
|
|
|
|
|
|
vmkdir usr/lib/modules-load.d
|
|
|
|
echo "ecryptfs" > ${DESTDIR}/usr/lib/modules-load.d/ecryptfs.conf
|
|
|
|
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/ecryptfs.conf
|
|
|
|
}
|
2013-04-12 10:23:11 +02:00
|
|
|
|
|
|
|
libecryptfs_package() {
|
|
|
|
short_desc="ecryptfs cryptographic filesystem (library)"
|
|
|
|
pkg_install() {
|
2014-02-18 17:19:05 +01:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 10:23:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libecryptfs-devel_package() {
|
|
|
|
depends="keyutils-devel libecryptfs>=${version}_${revision}"
|
|
|
|
short_desc="ecryptfs cryptographic filesystem (development)"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-18 17:19:05 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 10:23:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-18 17:19:05 +01:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
|
2013-04-12 10:23:11 +02:00
|
|
|
ecryptfs-utils-python_package() {
|
2014-03-29 15:42:52 +01:00
|
|
|
lib32disabled=yes
|
2013-04-12 10:23:11 +02:00
|
|
|
depends="python"
|
|
|
|
short_desc="ecryptfs cryptographic filesystem (python binding)"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python2.7
|
|
|
|
}
|
|
|
|
}
|
2014-02-18 17:19:05 +01:00
|
|
|
|
|
|
|
fi
|