summaryrefslogtreecommitdiffstats
path: root/mail/majordomo/Makefile
blob: bea9e0c170ac297e988cbc103c2f1cacf487838b (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:	majordomo
# Version required:	1.94.4
# Date created:		23 October 1996
# Whom:			jfitz@FreeBSD.ORG
#
# $Id: Makefile,v 1.14 1999/04/21 00:39:27 scrappy Exp $
#

DISTNAME=	majordomo-1.94.4
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.sgi.com/other/majordomo/1.94.4/ \
		ftp://ftp-europe.sgi.com/other/majordomo/1.94.4/
#		ftp://ftp.greatcircle.com/pub/majordomo/1.94.3/ \
EXTRACT_SUFX=   .tgz

MAINTAINER=	jfitz@FreeBSD.ORG

Y2K=		http://www.greatcircle.com/majordomo/majordomo-faq.html#1.8

# Needs to create a user and group
IS_INTERACTIVE= yes
NO_PACKAGE=	"User and group need to be created"
ALL_TARGET=	wrapper
INSTALL_TARGET=	install install-wrapper
MAN1=		approve.1 bounce-remind.1 digest.1
MAN8=		majordomo.8

pre-configure:
		@ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/createuser
		@ ${CP} ${FILESDIR}/aliases.majordomo ${WRKSRC}

pre-install:
		@ ${CP} ${WRKSRC}/sample.cf ${WRKSRC}/majordomo.cf

post-install:
		@ ln -sf archive2.pl ${PREFIX}/majordomo/archive
		@ for dir in tmp lists/test-l.archive lists/test-l-digest.archive digests/test-l-digest doc; do \
			${MKDIR} ${PREFIX}/majordomo/$$dir; \
		done
		@ /usr/sbin/chown majordom.majordom ${PREFIX}/majordomo/tmp
		@ /bin/chmod 700 ${PREFIX}/majordomo/tmp
		@ /bin/chmod 755 ${PREFIX}/majordomo
		@ for dir in digests lists lists/test-l.archive lists/test-l-digest.archive digests/test-l-digest doc; do \
			/usr/sbin/chown majordom.majordom ${PREFIX}/majordomo/$$dir; \
			/bin/chmod 775 ${PREFIX}/majordomo/$$dir; \
		done
.if !defined(NOPORTDOCS)
		@ for file in Changelog FUTURE INSTALL LICENSE NEWLIST README; do \
			${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/majordomo/doc; \
		done
		@ for file in FAQ README.sequencer list-owner-info majordomo-faq.html majordomo.lisa6.ps majordomo.ora; do \
			${INSTALL_DATA} ${WRKSRC}/Doc/$$file ${PREFIX}/majordomo/doc; \
		done
		@ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/majordomo/doc
.endif
		@ ${INSTALL_DATA} ${WRKSRC}/aliases.majordomo ${PREFIX}/majordomo
		@ for file in test-l test-l-digest test-l.passwd test-l.info; do \
			${INSTALL_DATA} ${FILESDIR}/$$file ${PREFIX}/majordomo/lists; \
		done
		@ ln -sf test-l.info ${PREFIX}/majordomo/lists/test-l-digest.info
		@ ln -sf test-l.passwd ${PREFIX}/majordomo/lists/test-l-digest.passwd
		@ /bin/chmod 660 ${PREFIX}/majordomo/lists/test-l.passwd
		@ /usr/sbin/chown -R majordom.majordom ${PREFIX}/majordomo/lists
		@ /bin/chmod -R 664 ${PREFIX}/majordomo/lists
		@ /bin/chmod 775 ${PREFIX}/majordomo/lists
		@ /bin/chmod 775 ${PREFIX}/majordomo/lists/test-l.archive
		@ /bin/chmod 775 ${PREFIX}/majordomo/lists/test-l-digest.archive
		@ /bin/chmod 660 ${PREFIX}/majordomo/lists/*.passwd
.if !defined(BATCH)
		@ /usr/bin/more -e ${FILESDIR}/post-install-notes
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud