0023b20e9f
${COURIER_STATEDIR}/tmp, which defaults to /var/courier/tmp. This allows some of the servers which drop root privileges too soon to still write the pid file into a courier-owned directory instead of the root-owned /var/run. In mail/courier-mta, de-list ${COURIER_STATEDIR}/webmlm from the list of owned directories. In fact, webmlmd expects that path to be a socket file, and breaks horribly if the "webmlm" directory is present instead. Bump PKGREVISIONs for the following packages: mail/courier-imap --> 2 mail/courier-mta --> 9 mail/sqwebmail --> 4 meta-pkgs/courier --> 5
70 lines
2.4 KiB
Makefile
70 lines
2.4 KiB
Makefile
# $NetBSD: pkginstall.mk,v 1.7 2007/09/22 04:42:03 jlam Exp $
|
|
|
|
# Convenience definition used below for a file or directory owned by the
|
|
# courier user and group.
|
|
#
|
|
COURIER_OWNED= ${COURIER_USER} ${COURIER_GROUP}
|
|
|
|
REQD_DIRS+= ${DATADIR} ${DOCDIR} ${EGDIR} \
|
|
${LIBEXECDIR} ${LIBEXECDIR}/modules
|
|
REQD_DIRS_PERMS+= ${LIBEXECDIR}/webmail \
|
|
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
|
|
MAKE_DIRS+= ${COURIER_STATEDIR}
|
|
MAKE_DIRS_PERMS+= ${COURIER_STATEDIR}/tmp ${COURIER_OWNED} 0770
|
|
|
|
###
|
|
### Courier filter directories
|
|
###
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/filters ${COURIER_OWNED} 0750
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/filters/active \
|
|
${COURIER_OWNED} 0750
|
|
OWN_DIRS_PERMS+= ${COURIER_STATEDIR}/allfilters ${COURIER_OWNED} 0750
|
|
OWN_DIRS_PERMS+= ${COURIER_STATEDIR}/filters ${COURIER_OWNED} 0750
|
|
|
|
###
|
|
### Courier mail submission directories
|
|
###
|
|
OWN_DIRS_PERMS+= ${COURIER_STATEDIR}/msgq ${COURIER_OWNED} 0750
|
|
OWN_DIRS_PERMS+= ${COURIER_STATEDIR}/msgs ${COURIER_OWNED} 0750
|
|
OWN_DIRS_PERMS+= ${COURIER_STATEDIR}/track ${COURIER_OWNED} 0755
|
|
|
|
###
|
|
### Courier webadmin directories
|
|
###
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/webadmin ${COURIER_OWNED} 0700
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/webadmin/added \
|
|
${COURIER_OWNED} 0700
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/webadmin/removed \
|
|
${COURIER_OWNED} 0700
|
|
|
|
###
|
|
### Courier setuid and setgid binaries
|
|
###
|
|
SPECIAL_PERMS+= bin/cancelmsg ${COURIER_OWNED} 6555
|
|
SPECIAL_PERMS+= bin/mailq ${COURIER_OWNED} 2555
|
|
SPECIAL_PERMS+= bin/sendmail ${SETUID_ROOT_PERMS}
|
|
SPECIAL_PERMS+= libexec/courier/webmail/webadmin \
|
|
${SETUID_ROOT_PERMS}
|
|
SPECIAL_PERMS+= libexec/courier/submitmkdir ${COURIER_OWNED} 4550
|
|
|
|
###
|
|
### Courier delivery configuration directories
|
|
###
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/aliasdir ${COURIER_OWNED} 0755
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/aliases ${COURIER_OWNED} 0750
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/smtpaccess ${COURIER_OWNED} 0755
|
|
|
|
.for _file_ in aliases/system
|
|
CONF_FILES_PERMS+= ${EGDIR}/${_file_} ${PKG_SYSCONFDIR}/${_file_} \
|
|
${COURIER_OWNED} 0640
|
|
.endfor
|
|
.for _file_ in courierd.dist enablefiltering locallowercase \
|
|
maildrop maildropfilter rfcerr2045.txt \
|
|
rfcerr2046.txt rfcerr2047.txt rfcerrheader.txt \
|
|
smtpaccess/default webmlmrc.dist
|
|
CONF_FILES_PERMS+= ${EGDIR}/${_file_} \
|
|
${PKG_SYSCONFDIR}/${_file_:S/.dist$//} \
|
|
${COURIER_FILE_PERMS}
|
|
.endfor
|
|
|
|
RCD_SCRIPTS+= courier courierd courierfilter webmlm
|