2012-08-07 18:30:50 +00:00
|
|
|
# Template file for 'ecryptfs-utils'
|
|
|
|
pkgname=ecryptfs-utils
|
2014-08-28 17:00:18 +00:00
|
|
|
version=104
|
2015-03-04 15:04:30 +00:00
|
|
|
revision=3
|
2014-03-29 14:42:52 +00:00
|
|
|
lib32disabled=yes
|
2012-08-07 18:30:50 +00:00
|
|
|
build_style=gnu-configure
|
2014-02-18 16:19:05 +00:00
|
|
|
configure_args="--with-pamdir=/usr/lib/security --enable-gpg --enable-gui
|
|
|
|
--with-gpgme-prefix=${XBPS_CROSS_BASE}/usr"
|
2014-08-28 17:00:18 +00:00
|
|
|
hostmakedepends="automake gettext-devel glib-devel libtool pkg-config intltool swig"
|
2015-03-04 15:04:30 +00:00
|
|
|
makedepends="python-devel pam-devel nss-devel libressl-devel>=2.1.4 keyutils-devel gpgme-devel gtk+-devel"
|
2012-08-07 18:30:50 +00: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"
|
2014-08-28 17:00:18 +00:00
|
|
|
checksum=4a200176542d46439c5297021f2c7fd7343b871c20c6f73f6e6c9fc4e5fd7438
|
2012-08-07 18:30:50 +00:00
|
|
|
|
2014-02-18 16:19:05 +00:00
|
|
|
CPPFLAGS="-D_FILE_OFFSET_BITS=64"
|
2012-08-07 18:30:50 +00:00
|
|
|
|
2014-02-18 16:19:05 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX disable python subpkg for now
|
|
|
|
configure_args+=" --disable-pywrap"
|
|
|
|
fi
|
2012-08-07 18:30:50 +00:00
|
|
|
|
2014-02-18 16:19:05 +00:00
|
|
|
pre_configure() {
|
2014-08-28 17:00:18 +00:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2014-02-18 16:19:05 +00:00
|
|
|
}
|
2012-08-07 20:45:34 +00:00
|
|
|
|
2012-08-07 18:30:50 +00:00
|
|
|
post_install() {
|
2013-04-15 20:30:57 +00:00
|
|
|
vmkdir usr
|
|
|
|
mv ${DESTDIR}/sbin ${DESTDIR}/usr
|
2012-08-07 18:30:50 +00: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 08:23:11 +00:00
|
|
|
|
|
|
|
libecryptfs_package() {
|
|
|
|
short_desc="ecryptfs cryptographic filesystem (library)"
|
|
|
|
pkg_install() {
|
2014-02-18 16:19:05 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 08:23:11 +00: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 16:19:05 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 08:23:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-18 16:19:05 +00:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
|
2013-04-12 08:23:11 +00:00
|
|
|
ecryptfs-utils-python_package() {
|
2014-03-29 14:42:52 +00:00
|
|
|
lib32disabled=yes
|
2013-04-12 08:23:11 +00:00
|
|
|
depends="python"
|
|
|
|
short_desc="ecryptfs cryptographic filesystem (python binding)"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python2.7
|
|
|
|
}
|
|
|
|
}
|
2014-02-18 16:19:05 +00:00
|
|
|
|
|
|
|
fi
|