aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mixminion/Makefile
blob: f4cc7d5a0905d0749491984824c271edead95f20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# ports collection makefile for:        mixminion
# Date created:                 2004.06.11
# Whom:                     freebsd-ports@rikrose.net
#
# $FreeBSD$
#

PORTNAME=   Mixminion
DISTVERSION=    0.0.8alpha3
CATEGORIES= mail security
MASTER_SITES=   http://www.mixminion.net/dist/${DISTVERSION}/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Type III Anonymous Remailer

USE_OPENSSL=    yes
OPENSSL_LDFLAGS+=-lssl
USE_PYTHON= 2.0-2.5
INSTALLS_EGGINFO=   yes
PYDISTUTILS_PKGVERSION= ${DISTVERSION}

MAN1=   mixminion.1
MAN5=   mixminiond.conf.5 mixminionrc.5
MAN8=   mixminiond.8

PORTDOCS=   statusfd.txt tutorial.txt

OPTIONS=    SERVER "Also install the server" on

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_SERVER)
USE_RC_SUBR+=   mixminiond
SUB_FILES+= pkg-message
PLIST_SUB+= SERVER=""
USERS=  _${PORTNAME:L}
GROUPS= ${USERS}
.else
PLIST_SUB+= SERVER="@comment "
.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
    @-${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(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>