Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2009 16:09:53 -0700 (PDT)
From:      Douglas William Thrift <douglas@douglasthrift.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/138513: New port: security/py-keyring Store and access your passwords safely
Message-ID:  <200909032309.n83N9mgi027215@slowhand.douglasthrift.net>
Resent-Message-ID: <200909032310.n83NA3Lm058219@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         138513
>Category:       ports
>Synopsis:       New port: security/py-keyring Store and access your passwords safely
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 03 23:10:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Douglas William Thrift
>Release:        FreeBSD 7.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD justonenight.douglasthrift.net 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #13: Fri Jul 31 03:59:43 PDT 2009 root@justonenight.douglasthrift.net:/usr/obj/usr/src/sys/FURTHERONUPTHEROAD amd64
>Description:
The Python keyring lib provides an easy way to access the system keyring
service from Python. It can be used in any application that needs safe password
storage. It supports OSX, KDE, Gnome and Windows's native password storing
services. Besides this, it is shipped with kinds of Python implemented keyring
for the left environments.

WWW: http://pypi.python.org/pypi/keyring
>How-To-Repeat:
>Fix:
--- py-keyring.shar begins here ---
#!/bin/sh
# This is a shell archive
echo x py-keyring
mkdir -p py-keyring > /dev/null 2>&1
echo x py-keyring/pkg-plist
sed 's/^X//' > py-keyring/pkg-plist << 'SHAR_END'
X@comment $FreeBSD$
X%%GNOME_KEYRING%%%%PYTHON_SITELIBDIR%%/gnome_keyring.so
X%%KDE_KWALLET%%%%PYTHON_SITELIBDIR%%/kde_kwallet.so
X%%PYTHON_SITELIBDIR%%/keyring/__init__.py
X%%PYTHON_SITELIBDIR%%/keyring/__init__.pyc
X%%PYTHON_SITELIBDIR%%/keyring/__init__.pyo
X%%PYTHON_SITELIBDIR%%/keyring/backend.py
X%%PYTHON_SITELIBDIR%%/keyring/backend.pyc
X%%PYTHON_SITELIBDIR%%/keyring/backend.pyo
X%%PYTHON_SITELIBDIR%%/keyring/core.py
X%%PYTHON_SITELIBDIR%%/keyring/core.pyc
X%%PYTHON_SITELIBDIR%%/keyring/core.pyo
X@dirrm %%PYTHON_SITELIBDIR%%/keyring
SHAR_END
echo x py-keyring/files
mkdir -p py-keyring/files > /dev/null 2>&1
echo x py-keyring/distinfo
sed 's/^X//' > py-keyring/distinfo << 'SHAR_END'
XMD5 (keyring-0.1.tar.gz) = e593725919ed00a631c4348d08c77f56
XSHA256 (keyring-0.1.tar.gz) = c5e19bfd138034a8d3193a5c5314493e51a90a0c4bb78db87c0a0451aa7327a8
XSIZE (keyring-0.1.tar.gz) = 14468
SHAR_END
echo x py-keyring/Makefile
sed 's/^X//' > py-keyring/Makefile << 'SHAR_END'
X# New ports collection makefile for:	py-keyring
X# Date created:				2 September 2009
X# Whom:					Douglas Thrift
X#
X# $FreeBSD$
X#
X
XPORTNAME=	keyring
XPORTVERSION=	0.1
XCATEGORIES=	security python
XMASTER_SITES=	CHEESESHOP \
X		http://code.douglasthrift.net/files/${PORTNAME}/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	douglas@douglasthrift.net
XCOMMENT=	Store and access your passwords safely
X
XLATEST_LINK=	py-${PORTNAME}
X
XUSE_KDE4=	#
XUSE_PYTHON=	2.6+
XUSE_PYDISTUTILS=	yes
X
XOPTIONS=	GNOME_KEYRING "GNOME Keyring backend" Off \
X		KDE_KWALLET "KDE KWallet backend" Off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_GNOME_KEYRING)
XLIB_DEPENDS+=	gnome-keyring.0:${PORTSDIR}/security/gnome-keyring
XPLIST_SUB+=	GNOME_KEYRING=""
X.else
XPLIST_SUB+=	GNOME_KEYRING="@comment "
X.endif
X
X.if defined(WITH_KDE_KWALLET)
XPLIST_SUB+=	KDE_KWALLET=""
XUSE_KDE4+=	kdelibs
X.else
XPLIST_SUB+=	KDE_KWALLET="@comment "
X.endif
X
Xpost-patch:
X.if !defined(WITH_GNOME_KEYRING)
X	@${REINPLACE_CMD} -e 's|exts\.append(gnome_keychain_module)|#&|' \
X		${WRKSRC}/extensions.py
X.endif
X.if defined(WITH_KDE_KWALLET)
X	@${REINPLACE_CMD} -e 's|kde4-config|${KDE4_PREFIX}/bin/kde4-config|' \
X		${WRKSRC}/extensions.py
X.else
X	@${REINPLACE_CMD} -e 's|exts\.append(kde_kwallet_module)|#&|' \
X		${WRKSRC}/extensions.py
X.endif
X
X.include <bsd.port.post.mk>
SHAR_END
echo x py-keyring/pkg-descr
sed 's/^X//' > py-keyring/pkg-descr << 'SHAR_END'
XThe Python keyring lib provides an easy way to access the system keyring
Xservice from Python. It can be used in any application that needs safe password
Xstorage. It supports OSX, KDE, Gnome and Windows's native password storing
Xservices. Besides this, it is shipped with kinds of Python implemented keyring
Xfor the left environments.
X
XWWW: http://pypi.python.org/pypi/keyring
SHAR_END
echo x py-keyring/files/patch-extensions.py
sed 's/^X//' > py-keyring/files/patch-extensions.py << 'SHAR_END'
X--- extensions.py.orig	2009-08-21 09:34:01.000000000 -0700
X+++ extensions.py	2009-09-03 15:43:41.224189815 -0700
X@@ -42,9 +42,9 @@
X 
X     keywords.setdefault('libraries', []).append('kdeui')
X     libs = commands.getoutput("kde4-config --path lib").split(':')
X-    if len(libs) == 0:
X-        libs = commands.getoutput("kde-config --path lib").split(':')
X     keywords.setdefault('library_dirs', []).extend(libs)
X+    includes = commands.getoutput("kde4-config --install include").split(':')
X+    keywords.setdefault('include_dirs', []).extend(includes)
X     return keywords
X 
X def get_extensions():
SHAR_END
exit
--- py-keyring.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909032309.n83N9mgi027215>