summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-04-22 16:13:32 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-04-22 16:13:32 +0000
commitcb97bbeac68e1cdf47247d657324fc39f777b57b (patch)
treef48100390cbfbb6b003b9ae52947982a22671782 /sys-auth
parentPrepare for new ssmtp with optional mta support (bug #289973). (diff)
downloadhistorical-cb97bbeac68e1cdf47247d657324fc39f777b57b.tar.gz
historical-cb97bbeac68e1cdf47247d657324fc39f777b57b.tar.bz2
historical-cb97bbeac68e1cdf47247d657324fc39f777b57b.zip
Backport -openpam.patch from 0.4.2.
Package-Manager: portage-2.2.0_alpha30/cvs/Linux x86_64
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/pam_usb/ChangeLog6
-rw-r--r--sys-auth/pam_usb/Manifest11
-rw-r--r--sys-auth/pam_usb/files/pam_usb-0.5.0-openpam.patch16
-rw-r--r--sys-auth/pam_usb/pam_usb-0.5.0.ebuild11
4 files changed, 34 insertions, 10 deletions
diff --git a/sys-auth/pam_usb/ChangeLog b/sys-auth/pam_usb/ChangeLog
index 1fd24b27ec95..2466479045ef 100644
--- a/sys-auth/pam_usb/ChangeLog
+++ b/sys-auth/pam_usb/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-auth/pam_usb
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/ChangeLog,v 1.18 2011/04/22 16:03:01 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/ChangeLog,v 1.19 2011/04/22 16:13:32 ssuominen Exp $
+
+ 22 Apr 2011; Samuli Suominen <ssuominen@gentoo.org> pam_usb-0.5.0.ebuild,
+ +files/pam_usb-0.5.0-openpam.patch:
+ Backport -openpam.patch from 0.4.2.
*pam_usb-0.5.0 (22 Apr 2011)
diff --git a/sys-auth/pam_usb/Manifest b/sys-auth/pam_usb/Manifest
index ee816a72742b..a76000d28144 100644
--- a/sys-auth/pam_usb/Manifest
+++ b/sys-auth/pam_usb/Manifest
@@ -1,14 +1,15 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
+AUX pam_usb-0.5.0-openpam.patch 266 RMD160 7f723d739a7e2996c1545b837d9efd3ad39fe2a9 SHA1 8106616fb7f2d449d5fc93f56b6e98a17730ed55 SHA256 c10afaaef611bf8e905145634a67b8b485a755abd5f833c77327abd08ae46461
DIST pam_usb-0.5.0.tar.gz 35233 RMD160 aab1a55fec9c5c360d7509ccd053d7d4f5ed4111 SHA1 97bf8ae15a0b0c39cfcd4d8a5f531781ad8c80e7 SHA256 011f9970730a9b9fad7a1a8205f4eb63e757282d80d8bc146ad455d492063cbc
-EBUILD pam_usb-0.5.0.ebuild 989 RMD160 8fd8251318e3b93151d0b2777b1b188100630e7e SHA1 b2aab45aa64858c37f72716c45e2ea9affe6f04b SHA256 a8e47452578cc6e66c7c2bea08920d58c433efdc3f28ef776d1ab46881dd372d
-MISC ChangeLog 461 RMD160 e8e12f1257877d24a751ddcdb918a52a5da25602 SHA1 d8e4aa97e773f6cdaa42b64a5f4b0632176b376b SHA256 7d9025ecea46a292624e96c8282407e907b2a72f72ce295a2246ce3c8e7f84d9
+EBUILD pam_usb-0.5.0.ebuild 1059 RMD160 a34216c9b6497ef7db1e8c835e17e67f107fc298 SHA1 8e5f4acc4d448f1ed61d6643170ac3e7c5eacfa4 SHA256 a7df81681753d4fd2a38218c59f362188c149a1d2f8c6586921e88b89d57a177
+MISC ChangeLog 614 RMD160 9c53e4ad321afcc9598bf0165aa90e523b2f737d SHA1 489dbc74de85a7a2c26d3d3afaa015fb5c268849 SHA256 504191295bb16e0285bb342f2d5238ae21fae85d6ee0d512e7f479d5d417f74f
MISC metadata.xml 509 RMD160 89a5209a4df0497e449a1684791c7b8dff1de971 SHA1 ae454e01334714830fee6a90c838b173211cef94 SHA256 4371fb31be6845a400828f9be3d206034e9fb9051e2aed5f7248f30ae0be4637
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iF4EAREIAAYFAk2xpvYACgkQXkR9YqOcLPFjDwD9HDzKRwqbJ/u2YO9D68Tr4MAu
-RpEHm6/kHBuMkdTtFO4A/0uw1fwxPElFxK/o0dhOJXUPjlxyiTWmNDJ+yLRmCWUA
-=UKAi
+iF4EAREIAAYFAk2xqW0ACgkQXkR9YqOcLPGJLAD/U+wHC0mvCcy9mI8r0fzr+i09
+YSzv9gFXmwpc+npVfpgBAJtmHSzYOg1tBGGW0BY/sf2OicUw/ptgT3H3OqP/cgCw
+=r+C8
-----END PGP SIGNATURE-----
diff --git a/sys-auth/pam_usb/files/pam_usb-0.5.0-openpam.patch b/sys-auth/pam_usb/files/pam_usb-0.5.0-openpam.patch
new file mode 100644
index 000000000000..d5493d67a130
--- /dev/null
+++ b/sys-auth/pam_usb/files/pam_usb-0.5.0-openpam.patch
@@ -0,0 +1,16 @@
+--- src/pam.c
++++ src/pam.c
+@@ -16,8 +16,12 @@
+ */
+
+ #define PAM_SM_AUTH
++
++#include <stdlib.h>
++#include <string.h>
++
+ #include <security/pam_modules.h>
+-#include <security/_pam_macros.h>
++#include <security/pam_appl.h>
+
+ #include "version.h"
+ #include "conf.h"
diff --git a/sys-auth/pam_usb/pam_usb-0.5.0.ebuild b/sys-auth/pam_usb/pam_usb-0.5.0.ebuild
index e6c2c9e325d8..822b92e541f2 100644
--- a/sys-auth/pam_usb/pam_usb-0.5.0.ebuild
+++ b/sys-auth/pam_usb/pam_usb-0.5.0.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.5.0.ebuild,v 1.1 2011/04/22 16:03:01 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.5.0.ebuild,v 1.2 2011/04/22 16:13:32 ssuominen Exp $
EAPI=4
-inherit pam toolchain-funcs
+inherit eutils pam toolchain-funcs
DESCRIPTION="A pam module to provide authentication using USB device"
HOMEPAGE="http://pamusb.org/"
@@ -27,9 +27,12 @@ RDEPEND="${COMMON_DEPEND}
DEPEND="${COMMON_DEPEND}
dev-util/pkgconfig"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-openpam.patch
+}
+
src_compile() {
- tc-export CC
- emake
+ emake CC="$(tc-getCC)"
}
src_install() {