void-packages/srcpkgs/ecryptfs-utils/template

62 lines
1.7 KiB
Bash

# Template file for 'ecryptfs-utils'
pkgname=ecryptfs-utils
version=108
revision=3
lib32disabled=yes
build_style=gnu-configure
configure_args="--sbindir=/usr/bin
--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 keyutils-devel gpgme-devel gtk+-devel"
depends="gettext"
_desc="Ecryptfs cryptographic filesystem"
short_desc="${_desc} - utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://ecryptfs.org/"
distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz"
checksum=52838b1ad41113ba88a4318b19af10cf307100c6b3f62c608998d40312fbd7dd
CPPFLAGS="-D_FILE_OFFSET_BITS=64 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
vmkdir usr
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
chmod +s ${DESTDIR}/usr/bin/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="${_desc} - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libecryptfs-devel_package() {
depends="keyutils-devel libecryptfs>=${version}_${revision}"
short_desc="${_desc} - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
ecryptfs-utils-python_package() {
lib32disabled=yes
depends="python"
short_desc="${_desc} - python bindings"
pkg_install() {
vmove usr/lib/python2.7
}
}