1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Use $USERS instead of pkg-install for adding wnn user.

Submitted by:	Chris Rees (utisoft@gmail.com)
PR:		ports/157579
This commit is contained in:
Hiroki Sato 2011-06-11 06:07:08 +00:00
parent 96601952ce
commit fa9f1ef648
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275342
2 changed files with 1 additions and 18 deletions

View File

@ -32,6 +32,7 @@ INSTALL_TARGET= install install.man
SUB_FILES= pkg-install
PKGINSTALL= ${WRKDIR}/pkg-install
MAKE_JOBS_UNSAFE= yes
USERS= wnn
WNNTYPE?= WNN
CONFIGURE_ARGS= --enable-libraries=no \
@ -77,10 +78,6 @@ ${M}+= ${${M}.${WNNTYPE}}
. endif
.endfor
pre-install:
${SETENV} BATCH=${BATCH} \
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

View File

@ -2,20 +2,6 @@
# $FreeBSD$
case $2 in
PRE-INSTALL)
if id -u wnn > /dev/null 2>&1; then
echo "INFO: wnn user already exists. FreeWnn will use it."
else
echo "INFO: Creating 'wnn' user..."
if pw useradd wnn -u 69 -g 7 -h - -d /nonexistent \
-s /nonexistent -c Wnn; then
echo "INFO: Created."
else
echo "ERROR: wnn user cannot create."
exit 1
fi
fi
;;
POST-INSTALL)
case $1 in
ja-FreeWnn-*)