void-packages/srcpkgs/ecryptfs-utils/template

68 lines
1.7 KiB
Text
Raw Normal View History

2012-08-07 18:30:50 +00:00
# Template file for 'ecryptfs-utils'
pkgname=ecryptfs-utils
2012-11-23 02:00:17 +00:00
version=101
revision=4
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"
hostmakedepends="libtool pkg-config intltool swig"
makedepends="python-devel pam-devel nss-devel openssl-devel 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"
2012-11-23 02:00:17 +00:00
checksum=f8ddd2be2e208fb2f11aeca1721135c3c31465f78f2318981df682741ac72c55
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() {
libtoolize -f
}
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
}
libecryptfs_package() {
short_desc="ecryptfs cryptographic filesystem (library)"
pkg_install() {
2014-02-18 16:19:05 +00: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 16:19:05 +00:00
vmove "usr/lib/*.so"
}
}
2014-02-18 16:19:05 +00: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 16:19:05 +00:00
fi