diff options
author | wjv <wjv@FreeBSD.org> | 2002-02-08 14:04:37 +0000 |
---|---|---|
committer | wjv <wjv@FreeBSD.org> | 2002-02-08 14:04:37 +0000 |
commit | b253de274f4cfd3cbbaa0a8ee12d2551b63de6b1 (patch) | |
tree | 6f20098bfe787f690878d8bf17b0a4c1acd452fb /mail/mailman/files | |
parent | 34afa197464b6050f520bdd9639336429d772976 (diff) | |
download | FreeBSD-ports-b253de274f4cfd3cbbaa0a8ee12d2551b63de6b1.zip FreeBSD-ports-b253de274f4cfd3cbbaa0a8ee12d2551b63de6b1.tar.gz |
- Cleaning up the Mailman port, Step 2.
- Move creation of user/group from $FILESDIR/config.sh to $PKGINSTALL to
ensure they are created if installed from package.
- Switch to using uid/gid which are not yet registered in section 15.15 of
Porter's Handbook.
- Add @exec statements to $PLIST to ensure all necessary directories are
created with the correct modes if installed from package.
- Bump PORTREVISION.
- More to follow...
Partially stolen from: net/cvsup-mirror (PKGINSTALL)
PR: 34654 (uid/gid change)
Submitted by: Sean Chittenden <sean@chittenden.org> (uid/gid change)
Diffstat (limited to 'mail/mailman/files')
-rw-r--r-- | mail/mailman/files/configure.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/mail/mailman/files/configure.sh b/mail/mailman/files/configure.sh deleted file mode 100644 index 919a6cb..0000000 --- a/mail/mailman/files/configure.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -USER=$1 -UID=$2 -MAILMANDIR=$3 -GROUP=${USER} -GID=${UID} - -if [ -z "$USER" -o -z "$UID" -o -z "$MAILMANDIR" ]; then - echo "Syntax: $0 <username> <uid> <homedir>" - exit 1 -fi - -if pw group show "${GROUP}" 2>/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." -else - if pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi -fi - -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 ${MAILMANDIR} -s /sbin/nologin -c "Mailman User" - then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi -fi |