summaryrefslogtreecommitdiff
path: root/mail/distribute/Makefile
blob: 00004a646a9d5e6c90f3bac3ced9445cc8dbb1ce (plain)
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
# $NetBSD: Makefile,v 1.12 2004/01/20 12:19:43 agc Exp $
# FreeBSD: ports/mail/distribute/Makefile,v 1.2 1999/08/25 06:50:06 obrien Exp
#

DISTNAME=	distribute-2.1-pl19
PKGNAME=	distribute-2.1.26
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.foretune.co.jp/pub/network/mail/distribute/

PATCH_SITES=	ftp://ftp.foretune.co.jp/pub/network/mail/distribute/BETA/
PATCHFILES=	patch.20.gz patch.21e.gz patch.22e.gz patch.23e.gz \
		patch.24e.gz patch.25e.gz patch.26e.gz

MAINTAINER=	itojun@itojun.org
# in japanese
HOMEPAGE=	http://www.foretune.co.jp/people/shigeya/distribute/
COMMENT=	Mail dispatcher for mailing list.  Fits nicely with majordomo

WRKSRC=		${WRKDIR}/distribute-pl19
USE_PERL5=	YES

MAN1=		distribute.1
DIST_SUBDIR=	distribute

# customize below if you would like to
# mail/majordomo likes this
MAJORDOMO_DIR=		/home/majordom
MAJORDOMO_LIST_DIR=	${MAJORDOMO_DIR}/lists
# just as example, you may disagree with these
MAILINGLIST_DIR=	/var/mail-list
ARCHIVE_DIR=		/var/spool/mail-list
DEF_DOMAINNAME?=	your.domain.here

MAKE_ENV+=	DEFAULTCONFIG="-DDEF_SEQ_PATH=\\\"${MAILINGLIST_DIR}\\\" \
			-DDEF_RECIPIENT_PATH=\\\"${MAILINGLIST_DIR}\\\" \
			-DDEF_MAJORDOMO_RECIPIENT_PATH=\\\"${MAJORDOMO_LIST_DIR}\\\" \
			-DDEF_DOMAINNAME=\\\"${DEF_DOMAINNAME}\\\" \
			-DDEF_ARCHIVE_PATH=\\\"${ARCHIVE_DIR}\\\"" \
		INSTALL="${INSTALL}" \
		INSTALL_MAN="${INSTALL_MAN}"

pre-build:
	${TOUCH} ${WRKSRC}/logging.h ${WRKSRC}/strsep.c

post-build: mmessage
post-install: mmessage
mmessage::
	@${ECHO} "===> distribute was compiled with the following configuration:"
	@${ECHO} "     membership file directory: ${MAILINGLIST_DIR}"
	@${ECHO} "     membership file directory: ${MAJORDOMO_LIST_DIR} (for majordomo)"
	@${ECHO} "     archiving directory: ${ARCHIVE_DIR}"
	@${ECHO} "     if necessary, override them and perform compilation again."
	@${ECHO} "     there's no way to override them at runtime."

.include "../../mk/bsd.pkg.mk"