diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-01-30 14:04:02 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-01-30 14:04:02 +0000 |
commit | fda290ce5cc52720b72f08cbf1c0cbe32f8e7776 (patch) | |
tree | 00aef3f0ffb75f480ef7c9b2103f2fb72917dd0d /security/cyrus-sasl2/pkg-install | |
parent | a5390e24c8d098881651263f7c7bf72d1c84022e (diff) | |
download | ports-fda290ce5cc52720b72f08cbf1c0cbe32f8e7776.tar.gz ports-fda290ce5cc52720b72f08cbf1c0cbe32f8e7776.zip |
Notes
Diffstat (limited to 'security/cyrus-sasl2/pkg-install')
-rw-r--r-- | security/cyrus-sasl2/pkg-install | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/security/cyrus-sasl2/pkg-install b/security/cyrus-sasl2/pkg-install index 609c9becfba2..0ba4edab6ede 100644 --- a/security/cyrus-sasl2/pkg-install +++ b/security/cyrus-sasl2/pkg-install @@ -13,13 +13,16 @@ PKG_PREFIX=${PKG_PREFIX:=/usr/local} SASLDB_NAME=${PKG_PREFIX}/etc/%%SASLDB%% +CYRUS_USER=${CYRUS_USER:=%%CYRUS_USER%%} +CYRUS_GROUP=${CYRUS_GROUP:=%%CYRUS_GROUP%%} + # # create 'cyrus' user and group before installing # create_user() { - USER=cyrus - GROUP=cyrus + USER=${CYRUS_USER} + GROUP=${CYRUS_GROUP} PW=/usr/sbin/pw if [ -x /sbin/nologin ]; then @@ -77,12 +80,12 @@ create_user() { create_sasldb() { if [ ! -f ${SASLDB_NAME} ]; then - echo "test" | ${PKG_PREFIX}/sbin/saslpasswd2 -p -c cyrus + echo "test" | ${PKG_PREFIX}/sbin/saslpasswd2 -p -c ${CYRUS_USER} if [ `${PKG_PREFIX}/sbin/sasldblistusers2 | wc -l` -eq 0 ] ; then echo "WARNING: Failed to create ${PKG_PREFIX}/etc/$SASLDB_NAME}" else - ${PKG_PREFIX}/sbin/saslpasswd2 -d cyrus - chown cyrus:mail ${SASLDB_NAME} + ${PKG_PREFIX}/sbin/saslpasswd2 -d ${CYRUS_USER} + chown ${CYRUS_USER}:mail ${SASLDB_NAME} chmod 640 ${SASLDB_NAME} fi fi |