summaryrefslogtreecommitdiff
path: root/mail/qmail/files
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-11-26 22:22:19 +0000
committerzuntum <zuntum@pkgsrc.org>2001-11-26 22:22:19 +0000
commitd516380156975086577de35d94cda617cef9f3aa (patch)
treecab737d342d5464280a26c3a7c5d36bb5df10c9e /mail/qmail/files
parentfe6e701be6d746213a52396efe5f163153409680 (diff)
downloadpkgsrc-d516380156975086577de35d94cda617cef9f3aa.tar.gz
o switched to bsd.pkg.install.mk logic -- now it depends on qmail-users package
Diffstat (limited to 'mail/qmail/files')
-rwxr-xr-xmail/qmail/files/checkusers.sh57
-rwxr-xr-xmail/qmail/files/removeusers.sh14
2 files changed, 0 insertions, 71 deletions
diff --git a/mail/qmail/files/checkusers.sh b/mail/qmail/files/checkusers.sh
deleted file mode 100755
index d44327ef40f..00000000000
--- a/mail/qmail/files/checkusers.sh
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: checkusers.sh,v 1.1.1.1 2001/08/13 09:10:10 zuntum Exp $
-
-QMAILDIR=@QMAILDIR@
-USER_CMD=@USER_CMD@
-GROUP_CMD=@GROUP_CMD@
-
-create_group()
-{
- GROUP=$1
-
- ${GROUP_CMD} info -e ${GROUP}
- if [ $? -eq 0 ]; then
- echo "Group '${GROUP}' already exists... proceeding."
- else
- echo -n "Creating '${GROUP}' group... "
- ${GROUP_CMD} add ${GROUP}
- echo "done."
- fi
-
- return
-}
-
-create_user()
-{
- USER=$1
- GROUP=$2
-
- if [ "$USER" = alias ]; then
- HOME="$QMAILDIR/alias"
- else
- HOME="$QMAILDIR"
- fi
-
- ${USER_CMD} info -e ${USER}
- if [ $? -eq 0 ]; then
- echo "User '${USER}' already exists... proceeding."
- else
- echo -n "Creating '${USER}' user... "
- ${USER_CMD} add -g ${GROUP} -s /sbin/nologin -d ${HOME} ${USER}
- echo "done."
- fi
-
- return
-}
-
-create_group qmail
-create_group nofiles
-
-create_user alias nofiles
-create_user qmaill nofiles
-create_user qmaild nofiles
-create_user qmailp nofiles
-create_user qmailq qmail
-create_user qmailr qmail
-create_user qmails qmail
diff --git a/mail/qmail/files/removeusers.sh b/mail/qmail/files/removeusers.sh
deleted file mode 100755
index f6be9ba9cd8..00000000000
--- a/mail/qmail/files/removeusers.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: removeusers.sh,v 1.1.1.1 2001/08/13 09:10:10 zuntum Exp $
-
-USER_CMD=@USER_CMD@
-GROUP_CMD=@GROUP_CMD@
-
-USERS="alias qmaill qmaild qmailp qmailq qmailr qmails"
-GROUPS="qmail nofiles"
-
-for i in $USERS; do ${USER_CMD} del $i 2> /dev/null > /dev/null; done
-for i in $GROUPS; do ${GROUP_CMD} del $i 2> /dev/null > /dev/null; done
-
-echo "qmail users and groups removed."