diff options
author | Érico Rolim <erico.erc@gmail.com> | 2020-03-22 04:33:15 +0000 |
---|---|---|
committer | Andrea Brancaleoni <miwaxe@gmail.com> | 2020-04-11 22:19:47 +0000 |
commit | cef3871d480d631fe46c914a74f395357baf58d7 (patch) | |
tree | 37dbcd82a0800b6e1b4d9192194b01835ddb724a | |
parent | 8dd34fe91012335d38e2f60643859b4f6705dc15 (diff) | |
download | void-packages-cef3871d480d631fe46c914a74f395357baf58d7.tar void-packages-cef3871d480d631fe46c914a74f395357baf58d7.tar.gz void-packages-cef3871d480d631fe46c914a74f395357baf58d7.tar.bz2 void-packages-cef3871d480d631fe46c914a74f395357baf58d7.tar.lz void-packages-cef3871d480d631fe46c914a74f395357baf58d7.tar.xz void-packages-cef3871d480d631fe46c914a74f395357baf58d7.tar.zst void-packages-cef3871d480d631fe46c914a74f395357baf58d7.zip |
fscrypt: update to 0.2.7 and include PAM module
The previous template used for fscrypt didn't include the fscrypt PAM
module, pam_fscrypt.so. This commit fixes this issue.
The /etc/pam.d/fscrypt config file, which is supposed to be created by
packagers to allow fscrypt to use the login password, wasn't included in
the package either. This commit also includes that file.
-rw-r--r-- | srcpkgs/fscrypt/files/pam_config | 1 | ||||
-rw-r--r-- | srcpkgs/fscrypt/template | 20 |
2 files changed, 19 insertions, 2 deletions
diff --git a/srcpkgs/fscrypt/files/pam_config b/srcpkgs/fscrypt/files/pam_config new file mode 100644 index 00000000000..7e5d75ae45d --- /dev/null +++ b/srcpkgs/fscrypt/files/pam_config @@ -0,0 +1 @@ +auth required pam_unix.so diff --git a/srcpkgs/fscrypt/template b/srcpkgs/fscrypt/template index 2d81e8f4eee..23f8112dd6c 100644 --- a/srcpkgs/fscrypt/template +++ b/srcpkgs/fscrypt/template @@ -1,14 +1,30 @@ # Template file for 'fscrypt' pkgname=fscrypt -version=0.2.6 +version=0.2.7 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=bce54ebb716706150b759052665a29d01963d8df334ad9beb34105ce62d2de94 +checksum=08e7f1bb5481f5ee76a90d79b9d9e2632f167d43100438ba08bd637e2dfb0f22 +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 +} |