void-packages/srcpkgs/ecryptfs-utils/template

67 lines
1.8 KiB
Text

# Template file for 'ecryptfs-utils'
pkgname=ecryptfs-utils
version=104
revision=3
lib32disabled=yes
build_style=gnu-configure
configure_args="--with-pamdir=/usr/lib/security --enable-gpg --enable-gui
--with-gpgme-prefix=${XBPS_CROSS_BASE}/usr"
hostmakedepends="automake gettext-devel glib-devel libtool pkg-config intltool swig"
makedepends="python-devel pam-devel nss-devel libressl-devel>=2.1.4 keyutils-devel gpgme-devel gtk+-devel"
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"
checksum=4a200176542d46439c5297021f2c7fd7343b871c20c6f73f6e6c9fc4e5fd7438
CPPFLAGS="-D_FILE_OFFSET_BITS=64"
if [ "$CROSS_BUILD" ]; then
# XXX disable python subpkg for now
configure_args+=" --disable-pywrap"
fi
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
vmkdir usr
mv ${DESTDIR}/sbin ${DESTDIR}/usr
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
}
libecryptfs_package() {
short_desc="ecryptfs cryptographic filesystem (library)"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libecryptfs-devel_package() {
depends="keyutils-devel libecryptfs>=${version}_${revision}"
short_desc="ecryptfs cryptographic filesystem (development)"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
if [ -z "$CROSS_BUILD" ]; then
ecryptfs-utils-python_package() {
lib32disabled=yes
depends="python"
short_desc="ecryptfs cryptographic filesystem (python binding)"
pkg_install() {
vmove usr/lib/python2.7
}
}
fi