From d80dfbecc6e71f67f0900d08fd00f6a632355e5a Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Tue, 30 Sep 2003 12:10:05 +0000 Subject: [PATCH] [NEW PORT] sysutils/userneu: Account management and creation tool 'userneu' is a Perl script that parses a list of usernames and additional information (such as the real name or other information to be put in the GECOS field in /etc/passwd) and creates Unix accounts and (if desired) Samba accounts as well. If the script stumbles upon duplicate user names it can append random characters to the username until it fits. WWW: http://btmdx8.mat.uni-bayreuth.de/~johannes/code.html PR: ports/56753 Submitted by: Andreas Fehlner --- sysutils/Makefile | 1 + sysutils/userneu-devel/Makefile | 45 ++++++++++++++++++++++++++++++++ sysutils/userneu-devel/distinfo | 1 + sysutils/userneu-devel/pkg-descr | 10 +++++++ sysutils/userneu-devel/pkg-plist | 16 ++++++++++++ sysutils/userneu/Makefile | 45 ++++++++++++++++++++++++++++++++ sysutils/userneu/distinfo | 1 + sysutils/userneu/pkg-descr | 10 +++++++ sysutils/userneu/pkg-plist | 16 ++++++++++++ 9 files changed, 145 insertions(+) create mode 100644 sysutils/userneu-devel/Makefile create mode 100644 sysutils/userneu-devel/distinfo create mode 100644 sysutils/userneu-devel/pkg-descr create mode 100644 sysutils/userneu-devel/pkg-plist create mode 100644 sysutils/userneu/Makefile create mode 100644 sysutils/userneu/distinfo create mode 100644 sysutils/userneu/pkg-descr create mode 100644 sysutils/userneu/pkg-plist diff --git a/sysutils/Makefile b/sysutils/Makefile index 81340ba2eb68..18148b67c69e 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -312,6 +312,7 @@ SUBDIR += userinfo SUBDIR += userlist SUBDIR += usermin + SUBDIR += userneu SUBDIR += utcount SUBDIR += uwatch SUBDIR += vcp diff --git a/sysutils/userneu-devel/Makefile b/sysutils/userneu-devel/Makefile new file mode 100644 index 000000000000..30bbdd40e909 --- /dev/null +++ b/sysutils/userneu-devel/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: userneu +# Date created: 7 August 2003 +# Whom: Andreas Fehlner (fehlner@gmx.de) +# +# $FreeBSD$ +# + +PORTNAME= userneu +PORTVERSION= 1.36 +CATEGORIES= sysutils +MASTER_SITES= http://btmdx8.mat.uni-bayreuth.de/~johannes/files/userneu/ \ + http://home.arcor.de/fehlner/inhalt/download/ + +MAINTAINER= fehlner@gmx.de +COMMENT= Account management and creation tool + +RUN_DEPENDS= \ +${SITE_PERL}/Crypt/PasswdMD5.pm:${PORTSDIR}/security/p5-Crypt-PasswdMD5/ \ +${SITE_PERL}/Crypt/RandPasswd.pm:${PORTSDIR}/security/p5-Crypt-RandPasswd/ \ +${SITE_PERL}/mach/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5/ + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +GLOCATE= ${PREFIX}/${PORTNAME} +USE_PERL5= yes +NO_BUILD= yes + +USE_IMAGE= yes +MANCOMPRESSED= no +MAN8= userneu.8 userquick.8 + +DOCS= BUGS CHANGES COPYING CREDITS REQUIREMENTS TODO doc/README doc/INSTALL doc/userneu.pod doc/userquick.pod +EXAMPLES= list-sample + +do-install: + ${MKDIR} ${GLOCATE} + ${INSTALL_MAN} ${WRKSRC}/doc/userneu.8 ${PREFIX}/man/man8 + ${INSTALL_MAN} ${WRKSRC}/doc/userquick.8 ${PREFIX}/man/man8 + ${INSTALL_SCRIPT} ${WRKSRC}/userneu.pl ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/userquick.pl ${PREFIX}/sbin + @${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} + +.include diff --git a/sysutils/userneu-devel/distinfo b/sysutils/userneu-devel/distinfo new file mode 100644 index 000000000000..83890adbade7 --- /dev/null +++ b/sysutils/userneu-devel/distinfo @@ -0,0 +1 @@ +MD5 (userneu-1.36.tar.gz) = 67ddcaf8539c62c9645ef6b405c04be2 diff --git a/sysutils/userneu-devel/pkg-descr b/sysutils/userneu-devel/pkg-descr new file mode 100644 index 000000000000..eede843d9639 --- /dev/null +++ b/sysutils/userneu-devel/pkg-descr @@ -0,0 +1,10 @@ +'userneu' is a Perl script that parses a list of usernames and additional +information (such as the real name or other information to be put in the +GECOS field in /etc/passwd) and creates Unix accounts and (if desired) +Samba accounts as well. If the script stumbles upon duplicate user names +it can append random characters to the username until it fits. + +WWW: http://btmdx8.mat.uni-bayreuth.de/~johannes/code.html + +-Andreas Fehlner +fehlner@gmx.de diff --git a/sysutils/userneu-devel/pkg-plist b/sysutils/userneu-devel/pkg-plist new file mode 100644 index 000000000000..4037215ec06d --- /dev/null +++ b/sysutils/userneu-devel/pkg-plist @@ -0,0 +1,16 @@ +sbin/userneu.pl +sbin/userquick.pl +%%DOCSDIR%%/BUGS +%%DOCSDIR%%/CHANGES +%%DOCSDIR%%/COPYING +%%DOCSDIR%%/REQUIREMENTS +%%DOCSDIR%%/TODO +%%DOCSDIR%%/README +%%DOCSDIR%%/INSTALL +%%DOCSDIR%%/CREDITS +%%DOCSDIR%%/userneu.pod +%%DOCSDIR%%/userquick.pod +%%EXAMPLESDIR%%/list-sample +@dirrm %%DOCSDIR%% +@dirrm %%EXAMPLESDIR%% +@dirrm userneu diff --git a/sysutils/userneu/Makefile b/sysutils/userneu/Makefile new file mode 100644 index 000000000000..30bbdd40e909 --- /dev/null +++ b/sysutils/userneu/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: userneu +# Date created: 7 August 2003 +# Whom: Andreas Fehlner (fehlner@gmx.de) +# +# $FreeBSD$ +# + +PORTNAME= userneu +PORTVERSION= 1.36 +CATEGORIES= sysutils +MASTER_SITES= http://btmdx8.mat.uni-bayreuth.de/~johannes/files/userneu/ \ + http://home.arcor.de/fehlner/inhalt/download/ + +MAINTAINER= fehlner@gmx.de +COMMENT= Account management and creation tool + +RUN_DEPENDS= \ +${SITE_PERL}/Crypt/PasswdMD5.pm:${PORTSDIR}/security/p5-Crypt-PasswdMD5/ \ +${SITE_PERL}/Crypt/RandPasswd.pm:${PORTSDIR}/security/p5-Crypt-RandPasswd/ \ +${SITE_PERL}/mach/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5/ + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +GLOCATE= ${PREFIX}/${PORTNAME} +USE_PERL5= yes +NO_BUILD= yes + +USE_IMAGE= yes +MANCOMPRESSED= no +MAN8= userneu.8 userquick.8 + +DOCS= BUGS CHANGES COPYING CREDITS REQUIREMENTS TODO doc/README doc/INSTALL doc/userneu.pod doc/userquick.pod +EXAMPLES= list-sample + +do-install: + ${MKDIR} ${GLOCATE} + ${INSTALL_MAN} ${WRKSRC}/doc/userneu.8 ${PREFIX}/man/man8 + ${INSTALL_MAN} ${WRKSRC}/doc/userquick.8 ${PREFIX}/man/man8 + ${INSTALL_SCRIPT} ${WRKSRC}/userneu.pl ${PREFIX}/sbin + ${INSTALL_SCRIPT} ${WRKSRC}/userquick.pl ${PREFIX}/sbin + @${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} + +.include diff --git a/sysutils/userneu/distinfo b/sysutils/userneu/distinfo new file mode 100644 index 000000000000..83890adbade7 --- /dev/null +++ b/sysutils/userneu/distinfo @@ -0,0 +1 @@ +MD5 (userneu-1.36.tar.gz) = 67ddcaf8539c62c9645ef6b405c04be2 diff --git a/sysutils/userneu/pkg-descr b/sysutils/userneu/pkg-descr new file mode 100644 index 000000000000..eede843d9639 --- /dev/null +++ b/sysutils/userneu/pkg-descr @@ -0,0 +1,10 @@ +'userneu' is a Perl script that parses a list of usernames and additional +information (such as the real name or other information to be put in the +GECOS field in /etc/passwd) and creates Unix accounts and (if desired) +Samba accounts as well. If the script stumbles upon duplicate user names +it can append random characters to the username until it fits. + +WWW: http://btmdx8.mat.uni-bayreuth.de/~johannes/code.html + +-Andreas Fehlner +fehlner@gmx.de diff --git a/sysutils/userneu/pkg-plist b/sysutils/userneu/pkg-plist new file mode 100644 index 000000000000..4037215ec06d --- /dev/null +++ b/sysutils/userneu/pkg-plist @@ -0,0 +1,16 @@ +sbin/userneu.pl +sbin/userquick.pl +%%DOCSDIR%%/BUGS +%%DOCSDIR%%/CHANGES +%%DOCSDIR%%/COPYING +%%DOCSDIR%%/REQUIREMENTS +%%DOCSDIR%%/TODO +%%DOCSDIR%%/README +%%DOCSDIR%%/INSTALL +%%DOCSDIR%%/CREDITS +%%DOCSDIR%%/userneu.pod +%%DOCSDIR%%/userquick.pod +%%EXAMPLESDIR%%/list-sample +@dirrm %%DOCSDIR%% +@dirrm %%EXAMPLESDIR%% +@dirrm userneu