summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-14 11:36:54 +0100
committerErich Eckner <git@eckner.net>2020-01-14 11:36:54 +0100
commit964e140903114f7cc18cdbeedadf2e8849ec2d07 (patch)
treeca0ae2af9420546cf08cd9544c162357871404d0
parentfa4c3bd903e1eb616493b4038b1c4df9f6fa92d4 (diff)
downloadarchlinuxewe-964e140903114f7cc18cdbeedadf2e8849ec2d07.tar.xz
fscrypt-git neu
-rw-r--r--fscrypt-git/.gitignore1
-rw-r--r--fscrypt-git/PKGBUILD40
-rw-r--r--fscrypt-git/pam_config2
3 files changed, 43 insertions, 0 deletions
diff --git a/fscrypt-git/.gitignore b/fscrypt-git/.gitignore
new file mode 100644
index 000000000..f61126109
--- /dev/null
+++ b/fscrypt-git/.gitignore
@@ -0,0 +1 @@
+fscrypt
diff --git a/fscrypt-git/PKGBUILD b/fscrypt-git/PKGBUILD
new file mode 100644
index 000000000..10c23026b
--- /dev/null
+++ b/fscrypt-git/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Eric Biggers <ebiggers3 at gmail dot com>
+
+pkgname=fscrypt-git
+pkgver=0.2.5.33.g80654f2
+pkgrel=1
+pkgdesc='A tool for managing Linux filesystem encryption'
+arch=('x86_64' 'i686')
+url='https://github.com/google/fscrypt'
+license=('Apache')
+makedepends=('git' 'go')
+depends=('pam')
+provides=('fscrypt')
+source=('git+https://github.com/google/fscrypt.git' 'pam_config')
+sha256sums=('SKIP'
+ 'ae6ceaefc6d936c95a9b7a3f925111ffb946e6fd0152373247f1d40132f05aef')
+
+pkgver() {
+ cd "${srcdir}/fscrypt"
+ git describe --tags --long | sed 's/^v//' | tr - .
+}
+
+prepare() {
+ export GOPATH="${srcdir}/go"
+ mkdir -p "${GOPATH}/src/github.com/google"
+ ln -sf "${srcdir}/fscrypt" "${GOPATH}/src/github.com/google/"
+}
+
+build() {
+ export GOPATH="${srcdir}/go"
+ cd "${GOPATH}/src/github.com/google/fscrypt"
+ make
+}
+
+package() {
+ cd "${srcdir}/fscrypt"
+ make PREFIX="${pkgdir}/usr" install
+ install -Dm644 README.md "${pkgdir}/usr/share/fscrypt/README.md"
+ install -Dm644 ../pam_config "${pkgdir}/etc/pam.d/fscrypt"
+}
diff --git a/fscrypt-git/pam_config b/fscrypt-git/pam_config
new file mode 100644
index 000000000..4c7ce1bdd
--- /dev/null
+++ b/fscrypt-git/pam_config
@@ -0,0 +1,2 @@
+# Allow fscrypt to check your login passphrase when you create a login protector
+auth required pam_unix.so