pam-gnupg: cherry picked commits from upstream to allow an alternative gnupg config dir

This commit is contained in:
Tim Biermann 2020-09-04 11:24:56 +00:00
parent d08cfaf876
commit 835bbfa7fe
3 changed files with 23 additions and 6 deletions

View File

@ -1,3 +1,6 @@
drwxr-xr-x root/root lib/
drwxr-xr-x root/root lib/security/
-rwxr-xr-x root/root lib/security/pam_gnupg.so
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/pam_gnupg_helper

View File

@ -1,5 +1,9 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3zwHDOlA3uLEgHN9QIKnKYFTQVvQeAEYMCCn9JqUIjzDaODMI9HS0ykfB/bRFIBcybIYwuMbeUMOEruLOLWeFwI=
SHA256 (Pkgfile) = e29f507978ffe3516a3dbdf36d21cd100fb1488d817ce84b779df733f17657cf
SHA256 (.footprint) = b7c73d4ebaf8a8b202af68370a2dd094f8200d8afe2660f68fb69f2d691e2ea2
RWSagIOpLGJF35QxTjqS1VGu4/xjQ25RdI8j6dt0/ZYRqP5bN/FxBS5gJny8KdMMIcWpht9z6w+LUjiXV6W14HwYoxPdYiOHkQo=
SHA256 (Pkgfile) = eab8fcc984a2ff698b737bc9979d151eecf6ca67808acb2da1c8cee459c53da0
SHA256 (.footprint) = 5333d0a1e4fc5524b971aa1c6c05ce2548aebbceddb0cac454d8297d41763dbb
SHA256 (pam-gnupg-0.1.tar.gz) = b6e1a018185fb0ed467fa33e25998a9d666634da3828f8e4497e5d3739a59dc4
SHA256 (11d3e44c9868d0dfcc2dee1eb372b86af273e8da.patch) = 65f83349837b4c08064dd786914c1f1b4673101ec5ede7c6f2dc67ddf9ab27e7
SHA256 (d2e25475296d0403b14a0d02c73326d0bbef5a2f.patch) = ab759b6520577cbae9c19e7f6f62136fe60c33adeb6b8e42b7245013ea0c3c7e
SHA256 (21a03265ab2a001a3afadc1ffb73ef63c1fb7bdd.patch) = af7c3dc6416123dbb564ef5f9139dedf0f2a91b17fdb3fbc9dd14ddcd5e8756c
SHA256 (c3c764feac3efe5d9dea94885c10bbb15e6d2b55.patch) = 344c9e270abe717cffd50eca9f61394be31bec8ece0866362797bd3c9b020a53

View File

@ -5,13 +5,23 @@
name=pam-gnupg
version=0.1
release=1
source=(https://github.com/cruegge/pam-gnupg/archive/v$version/$name-$version.tar.gz)
release=2
source=(https://github.com/cruegge/pam-gnupg/archive/v$version/$name-$version.tar.gz
# cherry picked commits
https://github.com/cruegge/pam-gnupg/commit/11d3e44c9868d0dfcc2dee1eb372b86af273e8da.patch
https://github.com/cruegge/pam-gnupg/commit/d2e25475296d0403b14a0d02c73326d0bbef5a2f.patch
https://github.com/cruegge/pam-gnupg/commit/21a03265ab2a001a3afadc1ffb73ef63c1fb7bdd.patch
https://github.com/cruegge/pam-gnupg/commit/c3c764feac3efe5d9dea94885c10bbb15e6d2b55.patch)
build() {
cd $name-$version
patch -Np1 -i $SRC/11d3e44c9868d0dfcc2dee1eb372b86af273e8da.patch
patch -Np1 -i $SRC/d2e25475296d0403b14a0d02c73326d0bbef5a2f.patch
patch -Np1 -i $SRC/21a03265ab2a001a3afadc1ffb73ef63c1fb7bdd.patch
patch -Np1 -i $SRC/c3c764feac3efe5d9dea94885c10bbb15e6d2b55.patch
./autogen.sh
./configure --prefix=/usr
./configure --prefix=/usr \
--libexecdir=/usr/lib
make
make DESTDIR=$PKG install
}