30 lines
943 B
Bash
30 lines
943 B
Bash
# Template file for 'fscrypt'
|
|
pkgname=fscrypt
|
|
version=0.2.8
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/google/fscrypt
|
|
go_package="${go_import_path}/cmd/fscrypt"
|
|
hostmakedepends="m4"
|
|
makedepends="pam-devel"
|
|
short_desc="Tool for managing Linux filesystem encryption"
|
|
maintainer="Andrea Brancaleoni <abc@pomel.me>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/google/fscrypt"
|
|
distfiles="https://github.com/google/fscrypt/archive/v${version}.tar.gz"
|
|
checksum=17766013a37dc29f4ee2e5ee5296b66481eef6e129c9fa855b3f3f1ff1787f36
|
|
conf_files="/etc/pam.d/fscrypt"
|
|
|
|
if [ "$XBPS_TARGET_WORDSIZE" = "32" ];
|
|
then
|
|
broken="fscrypt can't be built for 32-bit targets"
|
|
fi
|
|
|
|
post_install() {
|
|
# build and install the PAM module
|
|
LDFLAGS= make PREFIX=/usr DESTDIR=${DESTDIR} install-pam
|
|
# remove Ubuntu specific pam-config files
|
|
rm -rf ${DESTDIR}/usr/share/pam-configs/
|
|
# add PAM config file
|
|
vinstall ${FILESDIR}/pam_config 644 etc/pam.d fscrypt
|
|
}
|