summaryrefslogtreecommitdiff
path: root/sysutils/user
diff options
context:
space:
mode:
authoragc <agc>1999-12-16 16:28:31 +0000
committeragc <agc>1999-12-16 16:28:31 +0000
commit7885d7b2a9b6b2b6eefb36a92c1cf802a58ff726 (patch)
tree932b4453d6c6e53297067c95dd8d17e9a64e4ef1 /sysutils/user
parent9f64821ee41bf4b8672e1d9019cbf0c689f078bb (diff)
downloadpkgsrc-7885d7b2a9b6b2b6eefb36a92c1cf802a58ff726.tar.gz
Import NetBSD-current's user(8) user/group management suite of
programs into the NetBSD packages collection.
Diffstat (limited to 'sysutils/user')
-rw-r--r--sysutils/user/Makefile23
-rw-r--r--sysutils/user/files/md53
-rw-r--r--sysutils/user/files/patch-sum3
-rw-r--r--sysutils/user/patches/patch-aa55
-rw-r--r--sysutils/user/pkg/COMMENT1
-rw-r--r--sysutils/user/pkg/DESCR10
-rw-r--r--sysutils/user/pkg/PLIST29
7 files changed, 124 insertions, 0 deletions
diff --git a/sysutils/user/Makefile b/sysutils/user/Makefile
new file mode 100644
index 00000000000..35d869c5409
--- /dev/null
+++ b/sysutils/user/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/12/16 16:28:31 agc Exp $
+#
+
+DISTNAME= user
+PKGNAME= user-19991216
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/usr.sbin/
+DIST_SUBDIR= ${PKGNAME}
+
+MAINTAINER= agc@netbsd.org
+HOMEPAGE= http://www.netbsd.org/
+
+WRKSRC= ${WRKDIR}/pub/NetBSD/NetBSD-current/src/usr.sbin/user
+
+ONLY_FOR_PLATFORM= NetBSD-*-* # already in Solaris base system
+
+.if exists(/usr/sbin/user)
+IGNORE= "is part of your NetBSD distribution"
+.endif
+
+NO_CONFIGURE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/user/files/md5 b/sysutils/user/files/md5
new file mode 100644
index 00000000000..ff793bfc525
--- /dev/null
+++ b/sysutils/user/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/12/16 16:28:31 agc Exp $
+
+MD5 (user-19991216/user.tar.gz) = 207fbab2c058bd696eaa1f2cb04dbb78
diff --git a/sysutils/user/files/patch-sum b/sysutils/user/files/patch-sum
new file mode 100644
index 00000000000..a4c8e6b012f
--- /dev/null
+++ b/sysutils/user/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/12/16 16:28:31 agc Exp $
+
+MD5 (patch-aa) = bda6cb8de5cd4c6f48c5012aa5c28460
diff --git a/sysutils/user/patches/patch-aa b/sysutils/user/patches/patch-aa
new file mode 100644
index 00000000000..1fd09c98717
--- /dev/null
+++ b/sysutils/user/patches/patch-aa
@@ -0,0 +1,55 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/12/16 16:28:31 agc Exp $
+
+Bring in strlcpy(3) from -current for those versions of NetBSD which
+don't have it.
+
+--- user.c Thu Dec 16 15:46:16 1999
++++ user.c Thu Dec 16 16:17:17 1999
+@@ -92,6 +92,47 @@
+ return ret;
+ }
+
++#if __NetBSD_Version__ < 104110000
++#undef _DIAGASSERT
++#define _DIAGASSERT(x)
++/*
++ * Copy src to string dst of size siz. At most siz-1 characters
++ * will be copied. Always NUL terminates (unless siz == 0).
++ * Returns strlen(src); if retval >= siz, truncation occurred.
++ */
++size_t
++strlcpy(dst, src, siz)
++ char *dst;
++ const char *src;
++ size_t siz;
++{
++ register char *d = dst;
++ register const char *s = src;
++ register size_t n = siz;
++
++ _DIAGASSERT(dst != NULL);
++ _DIAGASSERT(src != NULL);
++
++ /* Copy as many bytes as will fit */
++ if (n != 0 && --n != 0) {
++ do {
++ if ((*d++ = *s++) == 0)
++ break;
++ } while (--n != 0);
++ }
++
++ /* Not enough room in dst, add NUL and traverse rest of src */
++ if (n == 0) {
++ if (siz != 0)
++ *d = '\0'; /* NUL-terminate dst */
++ while (*s++)
++ ;
++ }
++
++ return(s - src - 1); /* count does not include NUL */
++}
++#endif
++
+ /* copy any dot files into the user's home directory */
+ static int
+ copydotfiles(char *skeldir, int uid, int gid, char *dir)
diff --git a/sysutils/user/pkg/COMMENT b/sysutils/user/pkg/COMMENT
new file mode 100644
index 00000000000..56b18dc4624
--- /dev/null
+++ b/sysutils/user/pkg/COMMENT
@@ -0,0 +1 @@
+Solaris-compatible {user,group}{add,del,mod} commands
diff --git a/sysutils/user/pkg/DESCR b/sysutils/user/pkg/DESCR
new file mode 100644
index 00000000000..5fefbd8b9d7
--- /dev/null
+++ b/sysutils/user/pkg/DESCR
@@ -0,0 +1,10 @@
+The usermgmt suite of programs provides SVR4/Solaris-compatible
+{user,group}{add,del,mod} commands, and two utilities, user(8) and
+group(8) whcih perform the same functions. In addition, some
+extensions are provided, which allow a user to be created with the
+same uid and gid, for example.
+
+The usermgmt suite was based on the old addnerd package, which, in turn,
+was based on Matt Green's addbozo script.
+
+Alistair G. Crooks (agc@netbsd.org)
diff --git a/sysutils/user/pkg/PLIST b/sysutils/user/pkg/PLIST
new file mode 100644
index 00000000000..1f85c05e942
--- /dev/null
+++ b/sysutils/user/pkg/PLIST
@@ -0,0 +1,29 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/12/16 16:28:31 agc Exp $
+sbin/user
+sbin/useradd
+sbin/userdel
+sbin/usermod
+sbin/group
+sbin/groupadd
+sbin/groupdel
+sbin/groupmod
+man/cat8/user.0
+man/cat8/useradd.0
+man/cat8/userdel.0
+man/cat8/usermod.0
+man/cat8/group.0
+man/cat8/groupadd.0
+man/cat8/groupdel.0
+man/cat8/groupmod.0
+man/man8/user.8
+man/man8/useradd.8
+man/man8/userdel.8
+man/man8/usermod.8
+man/man8/group.8
+man/man8/groupadd.8
+man/man8/groupdel.8
+man/man8/groupmod.8
+share/examples/usermgmt/.cshrc
+share/examples/usermgmt/.login
+share/examples/usermgmt/.profile
+@dirrm share/examples/usermgmt