aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mailman/Makefile
blob: eb618a30063622e083b4de013cdf35cf3fd6ce82 (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
# New ports collection makefile for:    mailman
# Date created:     10 July 2000
# Whom:         n_hibma@qubesoft.com
#
# $FreeBSD$
#

PORTNAME=   mailman
PORTVERSION=    2.0.5
CATEGORIES= mail
MASTER_SITES=   ${MASTER_SITE_GNU} \
        ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mailman

MAINTAINER= ports@FreeBSD.org

RUN_DEPENDS=    ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13

HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${MAILMANDIR} \
        --with-mail-gid=${MAIL_GID} --with-cgi-gid=${CGI_GID}
USE_PYTHON= yes

USERNAME?=  mailman
USERID?=    89

CGI_GID?=   nogroup
MAIL_GID?=  daemon

MMDIR?=     mailman
MAILMANDIR= ${PREFIX}/${MMDIR}

pre-configure:
    # Add the username, uid, group and gid
    ${SH} ${FILESDIR}/configure.sh ${USERNAME} ${USERID} ${MAILMANDIR}

    # Create the dir and the correct permissions for it.
    ${MKDIR} ${MAILMANDIR}
    ${CHOWN} ${USERNAME}:${USERNAME} ${MAILMANDIR}
    ${CHMOD} 2775 ${MAILMANDIR}

post-install:
    @${CHOWN} -R :${USERNAME} ${MAILMANDIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for f in BUGS FAQ INSTALL NEWS README* UPGRADING
    @${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
.endfor
.endif
    @echo All related binaries have been installed in ${MAILMANDIR}/bin
    @echo See ${DOCSDIR}/INSTALL for installation instructions \(prefix == ${MAILMANDIR}\).
    @echo 'Sample entry for httpd.conf for Apache:'
    @echo '  ScriptAlias /mailman/ ${MAILMANDIR}/cgi-bin/'
    @echo '  <Directory ${MAILMANDIR}/cgi-bin/>'
    @echo '     Options FollowSymLinks ExecCGI'
    @echo '    ... other options ...'
    @echo '  </Directory>'

.include <bsd.port.mk>