Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/pam_u2f/files/, sys-auth/pam_u2f/
Date: Tue, 28 Jun 2016 21:41:10
Message-Id: 1467149924.d629f9fe9e99dc983188295b2d4be2ed7eeff494.gokturk@gentoo
1 commit: d629f9fe9e99dc983188295b2d4be2ed7eeff494
2 Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 00:50:56 2016 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 21:38:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d629f9fe
7
8 sys-auth/pam_u2f: initial commit of U2F PAM module
9
10 Package-Manager: portage-2.2.28
11
12 sys-auth/pam_u2f/Manifest | 1 +
13 .../pam_u2f/files/pam_u2f-1.0.2-fix-Makefile.patch | 13 ++++++++
14 sys-auth/pam_u2f/metadata.xml | 22 +++++++++++++
15 sys-auth/pam_u2f/pam_u2f-1.0.4.ebuild | 36 ++++++++++++++++++++++
16 4 files changed, 72 insertions(+)
17
18 diff --git a/sys-auth/pam_u2f/Manifest b/sys-auth/pam_u2f/Manifest
19 new file mode 100644
20 index 0000000..7af83b3
21 --- /dev/null
22 +++ b/sys-auth/pam_u2f/Manifest
23 @@ -0,0 +1 @@
24 +DIST pam_u2f-1.0.4.tar.gz 349114 SHA256 71542e4568e6d2acaa50810a93c67297ba402f960da1ebb621413bd31f0732a1 SHA512 324d1a1172eae567372f95971d9ee6bb237b47758b89c083f3cfb11275c4b0c22c4cf02a51380451f88d372dd6aaa415bdb671a43a7444062fbf8f50b658f087 WHIRLPOOL a4aeb74cb551d2c22de7cd1ab5cddf1ccff7d5d660017b0569c83478f33902dd8641325fef1f76033b7df2c4919c0def892208e1451a673f0c21b518f66dcd83
25
26 diff --git a/sys-auth/pam_u2f/files/pam_u2f-1.0.2-fix-Makefile.patch b/sys-auth/pam_u2f/files/pam_u2f-1.0.2-fix-Makefile.patch
27 new file mode 100644
28 index 0000000..a835976
29 --- /dev/null
30 +++ b/sys-auth/pam_u2f/files/pam_u2f-1.0.2-fix-Makefile.patch
31 @@ -0,0 +1,13 @@
32 +--- a/Makefile.am
33 ++++ b/Makefile.am
34 +@@ -34,8 +34,8 @@
35 + # Release
36 +
37 + install-exec-hook:
38 +- rm -f $(PAMDIR)/pam_u2f.la
39 +- chmod -f 644 $(PAMDIR)/pam_u2f.so || true
40 ++ rm -f $(DESTDIR)/$(PAMDIR)/pam_u2f.la
41 ++ chmod -f 644 $(DESTDIR)/$(PAMDIR)/pam_u2f.so || true
42 +
43 + indent:
44 + indent -kr -nut -i2 *.c *.h pamu2fcfg/*.c pamu2fcfg/*.h
45
46 diff --git a/sys-auth/pam_u2f/metadata.xml b/sys-auth/pam_u2f/metadata.xml
47 new file mode 100644
48 index 0000000..11ec7f2
49 --- /dev/null
50 +++ b/sys-auth/pam_u2f/metadata.xml
51 @@ -0,0 +1,22 @@
52 +<?xml version="1.0" encoding="UTF-8"?>
53 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
54 +<pkgmetadata>
55 + <maintainer type="person">
56 + <email>shirk+gentoo@×××××××.org</email>
57 + <name>René Köcher</name>
58 + </maintainer>
59 + <maintainer type="person">
60 + <email>gokturk@g.o</email>
61 + <name>Göktürk Yüksek</name>
62 + </maintainer>
63 + <use>
64 + <flag name="debug">
65 + Enable debug messages using the pam logging macros.
66 + (Note: these will be visible on stdout for terminal logins).
67 + </flag>
68 + </use>
69 + <upstream>
70 + <remote-id type="github">Yubico/pam-u2f</remote-id>
71 + <bugs-to>https://github.com/Yubico/pam-u2f/issues</bugs-to>
72 + </upstream>
73 +</pkgmetadata>
74
75 diff --git a/sys-auth/pam_u2f/pam_u2f-1.0.4.ebuild b/sys-auth/pam_u2f/pam_u2f-1.0.4.ebuild
76 new file mode 100644
77 index 0000000..16a5741
78 --- /dev/null
79 +++ b/sys-auth/pam_u2f/pam_u2f-1.0.4.ebuild
80 @@ -0,0 +1,36 @@
81 +# Copyright 1999-2016 Gentoo Foundation
82 +# Distributed under the terms of the GNU General Public License v2
83 +# $Id$
84 +
85 +EAPI=6
86 +
87 +inherit autotools flag-o-matic pam
88 +
89 +DESCRIPTION="Library for authenticating against PAM with a Yubikey"
90 +HOMEPAGE="https://github.com/Yubico/pam-u2f"
91 +SRC_URI="https://developers.yubico.com/${PN/_/-}/Releases/${P}.tar.gz"
92 +
93 +LICENSE="BSD"
94 +SLOT="0"
95 +KEYWORDS="~amd64 ~x86"
96 +IUSE="debug"
97 +
98 +RDEPEND="
99 + app-crypt/libu2f-host
100 + app-crypt/libu2f-server
101 + virtual/pam"
102 +
103 +DEPEND="${RDEPEND}
104 + virtual/pkgconfig"
105 +
106 +PATCHES=( "${FILESDIR}/${PN}-1.0.2-fix-Makefile.patch" )
107 +
108 +src_prepare() {
109 + default
110 + use debug || append-cppflags -UDEBUG_PAM -UPAM_DEBUG
111 + eautoreconf
112 +}
113 +
114 +src_configure() {
115 + econf --with-pam-dir=$(getpam_mod_dir)
116 +}