1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Install gentxt as gentxt-dk

Use "mailnull" as default user
Always chown piddir

Submitted by:   Hirohisa Yamaguchi <umq@ueo.co.jp>
This commit is contained in:
Andrey A. Chernov 2006-11-07 20:20:10 +00:00
parent 6381cc03dd
commit dcf156d45f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176743
4 changed files with 5 additions and 24 deletions

View File

@ -78,7 +78,7 @@ pre-configure:
post-install:
-${STRIP_CMD} ${PREFIX}/libexec/dk-filter
${INSTALL_SCRIPT} ${WRKSRC}/dk-filter/gentxt.csh \
${PREFIX}/sbin/gentxt
${PREFIX}/sbin/gentxt-dk
.for i in ${MAN8}
@${RM} -f ${MANPREFIX}/man/cat8/${i} ${MANPREFIX}/man/cat8/${i}.gz
${INSTALL_MAN} ${WRKSRC}/*/${i} ${MANPREFIX}/man/man8/

View File

@ -38,7 +38,7 @@ load_rc_config $name
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
milterdk_enable=${milterdk_enable:-"NO"}
milterdk_uid=${milterdk_uid:-"dkfilter"}
milterdk_uid=${milterdk_uid:-"mailnull"}
milterdk_profiles=${milterdk_profiles:-}
milterdk_socket=${milterdk_socket:-"unix:/var/run/milterdk/filter"}
milterdk_domain=${milterdk_domain:-"example.com"}
@ -100,10 +100,9 @@ dk_prepcmd ()
elif [ -S ${milterdk_socket##unix:} ] ; then
rm -f ${milterdk_socket##unix:}
fi
if [ -d ${_piddir} ] ; then
return;
if [ ! -d ${_piddir} ] ; then
mkdir -p ${_piddir}
fi
mkdir -p ${_piddir}
if [ -n "${milterdk_uid}" ] ; then
chown ${milterdk_uid} ${_piddir}
fi

View File

@ -1,18 +0,0 @@
#!/bin/sh
if [ "$2" != "POST-INSTALL" ]
then
exit 0;
fi
# check if dkfilter user exists
pw user show dkfilter > /dev/null 2>&1
if [ $? != 0 ]
then
echo "===> Adding user dkfilter"
pw useradd dkfilter -c "milter-dk" -s /sbin/nologin \
-d /nonexistent
else
echo "===> Using existing user dkfilter"
fi

View File

@ -1,5 +1,5 @@
libexec/dk-filter
sbin/gentxt
sbin/gentxt-dk
%%PORTDOCS%%%%DOCSDIR%%/FEATURES
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/KNOWNBUGS