2020-03-13 00:37:39 +01:00
|
|
|
# Template file for 'fscrypt'
|
|
|
|
pkgname=fscrypt
|
2020-06-19 00:31:24 +02:00
|
|
|
version=0.2.9
|
2020-03-13 00:37:39 +01:00
|
|
|
revision=1
|
|
|
|
build_style=go
|
|
|
|
go_import_path=github.com/google/fscrypt
|
|
|
|
go_package="${go_import_path}/cmd/fscrypt"
|
2020-03-22 05:33:15 +01:00
|
|
|
hostmakedepends="m4"
|
2020-03-13 00:37:39 +01:00
|
|
|
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"
|
2020-06-19 00:31:24 +02:00
|
|
|
checksum=36f1166d9886548b0d72beeeffb9ca8fb5b28b63a42b369923bc3f0bea78bb3d
|
2020-03-22 05:33:15 +01:00
|
|
|
conf_files="/etc/pam.d/fscrypt"
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|