summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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