1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/mail/mixminion/Makefile
2006-09-05 04:43:13 +00:00

60 lines
1.5 KiB
Makefile

# ports collection makefile for: mixminion
# Date created: 2004.06.11
# Whom: freebsd-ports@rikrose.net
#
# $FreeBSD$
#
PORTNAME= Mixminion
DISTVERSION= 0.0.8alpha2
CATEGORIES= mail security
MASTER_SITES= http://www.mixminion.net/dist/${DISTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= A Type III Anonymous Remailer
USE_OPENSSL= yes
USE_PYTHON= 2.0+
MAN1= mixminion.1
MAN5= mixminiond.conf.5 mixminionrc.5
MAN8= mixminiond.8
PORTDOCS= statusfd.txt tutorial.txt
.if !defined(WITHOUT_SERVER)
USE_RC_SUBR+= mixminiond
SUB_FILES+= pkg-message
.endif
post-patch:
@${REINPLACE_CMD} -e "s|share/man|man|g" ${WRKSRC}/setup.py
post-install:
.if !defined(WITHOUT_SERVER)
@${INSTALL_DATA} ${WRKSRC}/etc/mixminiond.conf \
${PREFIX}/etc/mixminiond.conf.sample
@${INSTALL_DATA} ${WRKSRC}/etc/blacklist.conf \
${PREFIX}/etc/blacklist.conf.sample
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@-${MKDIR} /var/spool/mixminion
@${CHOWN} _mixminion:_mixminion /var/spool/mixminion
@${CHMOD} 0700 /var/spool/mixminion
@-${MKDIR} /var/run/mixminion
@${CHOWN} _mixminion:_mixminion /var/run/mixminion
@${CHMOD} 0700 /var/run/mixminion
@-${TOUCH} /var/log/mixminion
@${CHOWN} _mixminion:_mixminion /var/log/mixminion
@${CHMOD} 0700 /var/log/mixminion
@${CAT} ${PKGMESSAGE}
.endif
.if !defined(NOPORTDOC)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>