Bug 182325 - New port: security/p5-Unix-Passwd-File Use (or manipulate) passwd and group entries
Summary: New port: security/p5-Unix-Passwd-File Use (or manipulate) passwd and group e...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-23 14:00 UTC by Henk van Oers
Modified: 2013-11-11 14:10 UTC (History)
0 users

See Also:


Attachments
file.shar (2.44 KB, text/plain)
2013-09-23 14:00 UTC, Henk van Oers
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henk van Oers 2013-09-23 14:00:01 UTC
This module can be used to read and manipulate entries in Unix system password files

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-23 14:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

perl@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-11-11 13:25:01 UTC
Responsible Changed
From-To: perl->sunpoet

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-11-11 14:09:02 UTC
Author: sunpoet
Date: Mon Nov 11 14:08:52 2013
New Revision: 333504
URL: http://svnweb.freebsd.org/changeset/ports/333504

Log:
  - Add p5-Unix-Passwd-File 0.10
  
  Unix::Passwd::File can be used to read and manipulate entries in Unix system
  password files (/etc/passwd, /etc/group, /etc/group, /etc/gshadow) but can also
  be told to search in custom location, for testing purposes).
  
  This module uses a procedural (non-OO) interface. Each function in this module
  open and read the passwd files once. Read-only functions like `list_users()` and
  `get_max_gid()` open in read-only mode. Functions that might write to the files
  like `add_user()` or `delete_group()` first lock `passwd.lock` file, open in
  read+write mode and also read the files in the first pass, then seek to the
  beginning and write back the files.
  
  No caching is done so you should do your own if you need to.
  
  WWW: http://search.cpan.org/dist/Unix-Passwd-File/
  
  PR:		ports/182325
  Submitted by:	Henk van Oers <hvo.pm@xs4all.nl>

Added:
  head/security/p5-Unix-Passwd-File/
  head/security/p5-Unix-Passwd-File/Makefile   (contents, props changed)
  head/security/p5-Unix-Passwd-File/distinfo   (contents, props changed)
  head/security/p5-Unix-Passwd-File/pkg-descr   (contents, props changed)
  head/security/p5-Unix-Passwd-File/pkg-plist   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Mon Nov 11 14:08:22 2013	(r333503)
+++ head/security/Makefile	Mon Nov 11 14:08:52 2013	(r333504)
@@ -596,6 +596,7 @@
     SUBDIR += p5-Text-Password-Pronounceable
     SUBDIR += p5-Tie-EncryptedHash
     SUBDIR += p5-Tree-Authz
+    SUBDIR += p5-Unix-Passwd-File
     SUBDIR += p5-Yahoo-BBAuth
     SUBDIR += p5-dicewaregen
     SUBDIR += p5-openxpki

Added: head/security/p5-Unix-Passwd-File/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Unix-Passwd-File/Makefile	Mon Nov 11 14:08:52 2013	(r333504)
@@ -0,0 +1,33 @@
+# Created by: Henk van Oers <hvo.pm@xs4all.nl>
+# $FreeBSD$
+
+PORTNAME=	Unix-Passwd-File
+PORTVERSION=	0.10
+CATEGORIES=	security perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	perl@FreeBSD.org
+COMMENT=	Manipulate passwd and group entries
+
+LICENSE=	ART10 GPLv1
+LICENSE_COMB=	dual
+
+BUILD_DEPENDS=	p5-Crypt-Password-Util>=0.06:${PORTSDIR}/security/p5-Crypt-Password-Util \
+		p5-File-Flock>=0:${PORTSDIR}/devel/p5-File-Flock \
+		p5-Log-Any>=0:${PORTSDIR}/devel/p5-Log-Any
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+TEST_DEPENDS=	p5-File-Copy-Recursive>=0:${PORTSDIR}/devel/p5-File-Copy-Recursive \
+		p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp \
+		p5-File-chdir>=0:${PORTSDIR}/devel/p5-File-chdir
+
+USES=		perl5
+USE_PERL5=	modbuild
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501400
+TEST_DEPENDS+=	p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>

Added: head/security/p5-Unix-Passwd-File/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Unix-Passwd-File/distinfo	Mon Nov 11 14:08:52 2013	(r333504)
@@ -0,0 +1,2 @@
+SHA256 (Unix-Passwd-File-0.10.tar.gz) = 09fb90e827d9698a3f660267df2d4f43a4a908d2efea9be72ff1770987de1559
+SIZE (Unix-Passwd-File-0.10.tar.gz) = 33978

Added: head/security/p5-Unix-Passwd-File/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Unix-Passwd-File/pkg-descr	Mon Nov 11 14:08:52 2013	(r333504)
@@ -0,0 +1,14 @@
+Unix::Passwd::File can be used to read and manipulate entries in Unix system
+password files (/etc/passwd, /etc/group, /etc/group, /etc/gshadow) but can also
+be told to search in custom location, for testing purposes).
+
+This module uses a procedural (non-OO) interface. Each function in this module
+open and read the passwd files once. Read-only functions like `list_users()` and
+`get_max_gid()` open in read-only mode. Functions that might write to the files
+like `add_user()` or `delete_group()` first lock `passwd.lock` file, open in
+read+write mode and also read the files in the first pass, then seek to the
+beginning and write back the files.
+
+No caching is done so you should do your own if you need to.
+
+WWW: http://search.cpan.org/dist/Unix-Passwd-File/

Added: head/security/p5-Unix-Passwd-File/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/p5-Unix-Passwd-File/pkg-plist	Mon Nov 11 14:08:52 2013	(r333504)
@@ -0,0 +1,4 @@
+%%SITE_PERL%%/Unix/Passwd/File.pm
+%%PERL5_MAN3%%/Unix::Passwd::File.3.gz
+@dirrmtry %%SITE_PERL%%/Unix/Passwd
+@dirrmtry %%SITE_PERL%%/Unix
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-11-11 14:10:07 UTC
State Changed
From-To: open->closed

New port added. Thanks!