[arch-commits] Commit in fscrypt/repos (4 files)

Anatol Pomozov anatolik at archlinux.org
Wed Feb 19 05:54:30 UTC 2020


    Date: Wednesday, February 19, 2020 @ 05:54:28
  Author: anatolik
Revision: 576237

archrelease: copy trunk to community-testing-x86_64

Added:
  fscrypt/repos/community-testing-x86_64/
  fscrypt/repos/community-testing-x86_64/PKGBUILD
    (from rev 576236, fscrypt/trunk/PKGBUILD)
  fscrypt/repos/community-testing-x86_64/pam_config
    (from rev 576236, fscrypt/trunk/pam_config)
  fscrypt/repos/community-testing-x86_64/reprobuild.patch
    (from rev 576236, fscrypt/trunk/reprobuild.patch)

------------------+
 PKGBUILD         |   38 ++++++++++++++++++++++++++++++++++++++
 pam_config       |    2 ++
 reprobuild.patch |   14 ++++++++++++++
 3 files changed, 54 insertions(+)

Copied: fscrypt/repos/community-testing-x86_64/PKGBUILD (from rev 576236, fscrypt/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-02-19 05:54:28 UTC (rev 576237)
@@ -0,0 +1,38 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Maintainer: Eric Biggers <ebiggers3 at gmail dot com>
+
+pkgname=fscrypt
+pkgver=0.2.6
+pkgrel=2
+pkgdesc='A tool for managing Linux filesystem encryption'
+arch=('x86_64')
+url='https://github.com/google/fscrypt'
+license=('Apache')
+makedepends=('go-pie')
+depends=('pam')
+source=("fscrypt-$pkgver.zip::https://github.com/google/fscrypt/archive/v$pkgver.zip"
+        "pam_config"
+        "reprobuild.patch")
+sha256sums=('8717a8edec2367ccb6c2d934880603f7f454f9f68030370885015c6d309125fa'
+            'ae6ceaefc6d936c95a9b7a3f925111ffb946e6fd0152373247f1d40132f05aef'
+            'cad9f7964dbb0caaa07250c60805096e2be58a739aa0af1edd8d55582582055a')
+
+prepare() {
+  cd "fscrypt-$pkgver"
+  patch -p1 < ../reprobuild.patch
+}
+
+build() {
+  cd "fscrypt-$pkgver"
+  BUILDDATE="`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}"`" make
+}
+
+package() {
+  cd "fscrypt-$pkgver"
+  make PREFIX="${pkgdir}/usr" install
+  install -Dm644 ../pam_config "${pkgdir}/etc/pam.d/fscrypt"
+  install -Dm644 -t "$pkgdir/usr/share/licenses/fscrypt/" LICENSE
+
+  # Remove Ubuntu-specific PAM file
+  rm -rf "$pkgdir"/usr/share/pam-configs/
+}

Copied: fscrypt/repos/community-testing-x86_64/pam_config (from rev 576236, fscrypt/trunk/pam_config)
===================================================================
--- community-testing-x86_64/pam_config	                        (rev 0)
+++ community-testing-x86_64/pam_config	2020-02-19 05:54:28 UTC (rev 576237)
@@ -0,0 +1,2 @@
+# Allow fscrypt to check your login passphrase when you create a login protector
+auth		required	pam_unix.so

Copied: fscrypt/repos/community-testing-x86_64/reprobuild.patch (from rev 576236, fscrypt/trunk/reprobuild.patch)
===================================================================
--- community-testing-x86_64/reprobuild.patch	                        (rev 0)
+++ community-testing-x86_64/reprobuild.patch	2020-02-19 05:54:28 UTC (rev 576237)
@@ -0,0 +1,14 @@
+diff --git a/Makefile b/Makefile
+index f7add11..840a160 100644
+--- a/Makefile
++++ b/Makefile
+@@ -67,7 +67,8 @@ GO_LINK_FLAGS := -s -w
+ TAG_VERSION := $(shell git describe --tags)
+ VERSION_FLAG := -X "main.version=$(if $(TAG_VERSION),$(TAG_VERSION),$(VERSION))"
+ # Flag to embed the date and time of the build into the binary.
+-DATE_FLAG := -X "main.buildTime=$(shell date)"
++BUILDDATE ?= $(shell date)
++DATE_FLAG := -X "main.buildTime='"$(BUILDDATE)"'"
+ 
+ override GO_LINK_FLAGS += $(VERSION_FLAG) $(DATE_FLAG) -extldflags "$(LDFLAGS)"
+ override GO_FLAGS += --ldflags '$(GO_LINK_FLAGS)'



More information about the arch-commits mailing list