* let verbose output to stderr, so that such output is mixed to the command output (for example, using redirect). * avoid to use `flock', it is not a part of base. * useradd * add skel support * set homedir properly * avoid to try dropping from "Users" when uid=gid (pseudo group as user). * also chgrp gid for created homedir. * userdel * catch up error correctly when trying to delete Windows users.
26 lines
547 B
Makefile
26 lines
547 B
Makefile
# $NetBSD: Makefile,v 1.4 2013/03/13 12:35:15 obache Exp $
|
|
#
|
|
|
|
DISTNAME= user-20130313
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= obache@NetBSD.org
|
|
COMMENT= Limited NetBSD-compatible useradd/groupadd commands
|
|
|
|
ONLY_FOR_PLATFORM= Cygwin-*-*
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
NO_CONFIGURE= yes
|
|
NO_BUILD= yes
|
|
|
|
INSTALLATION_DIRS= sbin
|
|
|
|
do-install:
|
|
.for f in useradd userdel groupadd groupdel
|
|
${INSTALL_SCRIPT} ${FILESDIR}/${f}.sh ${DESTDIR}${PREFIX}/sbin/${f}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|