void-packages/srcpkgs/ecryptfs-utils/template

68 lines
1.8 KiB
Bash
Raw Normal View History

2012-08-07 20:30:50 +02:00
# Template file for 'ecryptfs-utils'
pkgname=ecryptfs-utils
2015-03-12 11:14:57 +01:00
version=106
revision=1
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"
2014-08-28 19:00:18 +02:00
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"
2012-08-07 20:30:50 +02:00
short_desc="ecryptfs cryptographic filesystem (utilities)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-08-07 20:30:50 +02:00
license="GPL-3"
homepage="http://ecryptfs.org/"
distfiles="http://launchpad.net/ecryptfs/trunk/${version}/+download/${pkgname}_${version}.orig.tar.gz"
2015-03-12 11:14:57 +01:00
checksum=173e0add31e898789076103723894964ce474233988ef8d3309021bad8a7b6b4
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() {
2014-08-28 19:00:18 +02:00
NOCONFIGURE=1 ./autogen.sh
2014-02-18 17:19:05 +01: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
}
libecryptfs_package() {
short_desc="ecryptfs cryptographic filesystem (library)"
pkg_install() {
2014-02-18 17:19:05 +01:00
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
2014-02-18 17:19:05 +01:00
vmove "usr/lib/*.so"
}
}
2014-02-18 17:19:05 +01:00
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
}
}
2014-02-18 17:19:05 +01:00
fi