void-packages/srcpkgs/ecryptfs-utils/template

68 lines
1.8 KiB
Text
Raw Normal View History

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
revision=1
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"
2014-07-14 14:36:37 +00:00
makedepends="python-devel pam-devel nss-devel libressl-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"
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 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