1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

- Actually populate the variable used for the homedir when creating the

mailman user.
- Bump PORTREVISION
This commit is contained in:
Chris D. Faulhaber 2000-10-08 18:20:40 +00:00
parent 6d6a246240
commit f65b3ad332
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33587
2 changed files with 6 additions and 5 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= mailman
PORTVERSION= 2.0b5
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://download.sourceforge.net/mailman/
DISTNAME= mailman-2.0beta5
@ -29,7 +29,7 @@ MAILMANDIR= ${PREFIX}/mailman
pre-configure:
# Add the username, uid, group amd gid
${SH} ${FILESDIR}/configure.sh ${UNAME} ${UID}
${SH} ${FILESDIR}/configure.sh ${UNAME} ${UID} ${MAILMANDIR}
# Create the dir and the correct permissions for it.
${MKDIR} ${MAILMANDIR}

View File

@ -2,11 +2,12 @@
USER=$1
UID=$2
MAILMANDIR=$3
GROUP=${USER}
GID=${UID}
if [ -z "$USER" -o -z "$UID" ]; then
echo "Syntax: $0 <username> <uid>"
if [ -z "$USER" -o -z "$UID" -o -z "$MAILMANDIR" ]; then
echo "Syntax: $0 <username> <uid> <homedir>"
exit 1
fi
@ -25,7 +26,7 @@ if pw user show "${USER}" 2>/dev/null; then
echo "You already have a user \"${USER}\", so I will use it."
else
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
-d ${DB_DIR} -s /sbin/nologin -c "Mailman User"
-d ${MAILMANDIR} -s /sbin/nologin -c "Mailman User"
then
echo "Added user \"${USER}\"."
else