summaryrefslogtreecommitdiff
path: root/mail/minimalist/Makefile
blob: dbca66e758c7bb1c5fb172f7debe6590b4d68c98 (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
# New ports collection makefile for:   minimalist
# Date created:        15 September 1999
# Whom:                gmarco@scotty.masternet.it
#
# $FreeBSD$
#

PORTNAME=	minimalist
PORTVERSION=	2.3.3r3
CATEGORIES=	mail
MASTER_SITES=	http://www.mml.org.ua/LIST/ \
		http://www.giovannelli.it/~gmarco/files/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/r/-/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	gmarco@giovannelli.it
COMMENT=	A minimalistic mailing list manager

NO_BUILD=	yes
USE_REINPLACE=	yes

post-patch:
	@(cd ${WRKSRC}; ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' docs/README \
		minimalist.conf-sample minimalist.pl contrib/minimalist_request.pl)

do-install:
	@${MKDIR} ${PREFIX}/share/minimalist/FAQ
	@${MKDIR} ${PREFIX}/share/minimalist/FAQ
	@${MKDIR} ${PREFIX}/share/minimalist/sample
	@${INSTALL_SCRIPT} ${WRKSRC}/minimalist.pl ${PREFIX}/bin/
	@${INSTALL_SCRIPT} ${WRKSRC}/contrib/* ${PREFIX}/bin/
	@${INSTALL_DATA} ${WRKSRC}/minimalist.conf-sample ${PREFIX}/share/minimalist/
	@${INSTALL_DATA} ${WRKSRC}/minimalist.conf-sample ${PREFIX}/etc/minimalist.conf-sample
	@${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.txt ${PREFIX}/share/minimalist/
	@${INSTALL_DATA} ${WRKSRC}/docs/README ${PREFIX}/share/minimalist/
	@${INSTALL_DATA} ${WRKSRC}/docs/virtual-domains.txt ${PREFIX}/share/minimalist/
	@${INSTALL_DATA} ${WRKSRC}/docs/FAQ/* ${PREFIX}/share/minimalist/FAQ/
	@${INSTALL_DATA} ${WRKSRC}/sample/lists.lst ${PREFIX}/share/minimalist/list.lst-sample
	@${INSTALL_DATA} ${WRKSRC}/sample/sample/* ${PREFIX}/share/minimalist/sample/
	@${ECHO_MSG} "-------------------------------------------------------------------"
	@${ECHO_MSG} "Minimalist files are in: ${PREFIX}/share/minimalist"
	@${ECHO_MSG} "Minimalist binary is: ${PREFIX}/bin/minimalist.pl"
	@${ECHO_MSG} "Minimalist main config is: ${PREFIX}/etc/minimalist.conf-sample"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "To finish the installation: "
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Edit the ${PREFIX}/etc/minimalist.conf-sample and then copy "
	@${ECHO_MSG} "or rename it to ${PREFIX}/etc/minimalist.conf"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Check the ${PREFIX}/share/minimalist/README file to know how to modify"
	@${ECHO_MSG} "aliases file"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "A sample configuration for a mailing list can be"
	@${ECHO_MSG} "found in ${PREFIX}/share/minimalist/sample."
	@${ECHO_MSG} "-------------------------------------------------------------------"

.include <bsd.port.mk>