diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-auth/pam_usb | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-auth/pam_usb')
-rw-r--r-- | sys-auth/pam_usb/Manifest | 1 | ||||
-rw-r--r-- | sys-auth/pam_usb/files/pam_usb-0.5.0-openpam.patch | 16 | ||||
-rw-r--r-- | sys-auth/pam_usb/metadata.xml | 14 | ||||
-rw-r--r-- | sys-auth/pam_usb/pam_usb-0.5.0.ebuild | 53 |
4 files changed, 84 insertions, 0 deletions
diff --git a/sys-auth/pam_usb/Manifest b/sys-auth/pam_usb/Manifest new file mode 100644 index 000000000000..fc5f1ec484bd --- /dev/null +++ b/sys-auth/pam_usb/Manifest @@ -0,0 +1 @@ +DIST pam_usb-0.5.0.tar.gz 35233 SHA256 011f9970730a9b9fad7a1a8205f4eb63e757282d80d8bc146ad455d492063cbc SHA512 25c78f94793b4119c37e03f2d7d189ab6d1e4b82dfbadc3d83f5579fa70d8938ebfa4269155e04055a94c4562d618249fe046a67e7ea401cc571f482a3ed7bce WHIRLPOOL 4d1641587ed28c635ac012d60bc11c50f1b730c0a4ff882db92788c4cedac2a919e6efd337df291291be5995657bfab1b65476bfd9547d8d283e5e00ab44120f 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/metadata.xml b/sys-auth/pam_usb/metadata.xml new file mode 100644 index 000000000000..9ea5fa40735f --- /dev/null +++ b/sys-auth/pam_usb/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>pam</herd> + <longdescription> +A PAM module that enables authentication using a USB-Storage device (such as a USB Pen) through DSA private/public keys. +</longdescription> + <longdescription lang="ja"> +DSA 秘密/公開鍵による USB ストレージ・デバイス( USB ペン等)を使った認証を可能にする PAM モジュールです。 +</longdescription> + <upstream> + <remote-id type="sourceforge">pamusb</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-auth/pam_usb/pam_usb-0.5.0.ebuild b/sys-auth/pam_usb/pam_usb-0.5.0.ebuild new file mode 100644 index 000000000000..d65dc54e9775 --- /dev/null +++ b/sys-auth/pam_usb/pam_usb-0.5.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils pam python-single-r1 toolchain-funcs + +DESCRIPTION="A pam module to provide authentication using USB device" +HOMEPAGE="http://pamusb.org/" +SRC_URI="mirror://sourceforge/pamusb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +COMMON_DEPEND="dev-libs/libxml2 + sys-apps/dbus + virtual/pam" +RDEPEND="${COMMON_DEPEND} + ${PYTHON_DEPS} + dev-python/dbus-python + dev-python/pygobject:2 + sys-apps/pmount + sys-fs/udisks:0" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-openpam.patch + python_fix_shebang tools/pamusb-{conf,agent} #413025 +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + DOCS_DEST="${D}/usr/share/doc/${PF}" \ + PAM_USB_DEST="${D}/$(getpam_mod_dir)" \ + install + + dodoc ChangeLog README.md +} |