1996-07-20 03:39:22 +02:00
|
|
|
# New ports collection makefile for: majordomo
|
1996-10-26 20:21:17 +02:00
|
|
|
# Date created: 23 October 1996
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: jfitz@FreeBSD.org
|
1996-07-20 03:39:22 +02:00
|
|
|
#
|
1999-08-25 08:51:17 +02:00
|
|
|
# $FreeBSD$
|
1996-07-20 03:39:22 +02:00
|
|
|
#
|
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= majordomo
|
2001-02-05 16:11:27 +01:00
|
|
|
PORTVERSION= 1.94.5
|
2001-07-23 18:14:02 +02:00
|
|
|
PORTREVISION= 1
|
1996-11-10 22:32:56 +01:00
|
|
|
CATEGORIES= mail
|
2000-05-29 20:17:39 +02:00
|
|
|
MASTER_SITES= ftp://ftp.greatcircle.com/pub/majordomo/1.94.5/ \
|
|
|
|
ftp://ftp.sgi.com/other/majordomo/1.94.5/
|
1997-09-10 04:52:59 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
1996-07-20 03:39:22 +02:00
|
|
|
|
2002-02-08 02:56:26 +01:00
|
|
|
MAINTAINER= anders@FreeBSD.org
|
1996-07-20 03:39:22 +02:00
|
|
|
|
2001-08-29 08:51:10 +02:00
|
|
|
.if defined(WITH_SHA1_COOKIES)
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1
|
|
|
|
.else
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
|
|
|
|
.endif
|
|
|
|
USE_PERL5= yes
|
|
|
|
|
1996-07-20 03:39:22 +02:00
|
|
|
# Needs to create a user and group
|
|
|
|
IS_INTERACTIVE= yes
|
1996-12-08 02:45:16 +01:00
|
|
|
NO_PACKAGE= "User and group need to be created"
|
1996-10-26 20:21:17 +02:00
|
|
|
ALL_TARGET= wrapper
|
|
|
|
INSTALL_TARGET= install install-wrapper
|
1996-11-17 08:42:58 +01:00
|
|
|
MAN1= approve.1 bounce-remind.1 digest.1
|
|
|
|
MAN8= majordomo.8
|
1996-10-26 20:21:17 +02:00
|
|
|
|
2001-07-23 18:14:02 +02:00
|
|
|
post-patch:
|
2001-08-29 08:51:10 +02:00
|
|
|
.if defined(WITH_POSTFIX_APPROVE_PATCH)
|
2001-07-23 18:14:02 +02:00
|
|
|
@cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/postfix-approve-patch 2>/dev/null
|
2000-06-05 01:21:30 +02:00
|
|
|
.endif
|
2001-08-29 08:51:10 +02:00
|
|
|
.if defined(WITH_SHA1_COOKIES)
|
|
|
|
${SED} <${WRKSRC}/majordomo >${WRKSRC}/majordomo.temp \
|
|
|
|
"{s/md5_hex/sha1_hex/g;s/Digest::MD5/Digest::SHA1/g;}"
|
|
|
|
${MV} ${WRKSRC}/majordomo.temp ${WRKSRC}/majordomo
|
|
|
|
.endif
|
2000-06-05 01:21:30 +02:00
|
|
|
|
1996-10-26 20:21:17 +02:00
|
|
|
pre-configure:
|
2001-08-29 08:51:10 +02:00
|
|
|
@ ${SETENV} ${MAKE_ENV} ${PERL} ${SCRIPTDIR}/createuser
|
1996-10-26 20:21:17 +02:00
|
|
|
@ ${CP} ${FILESDIR}/aliases.majordomo ${WRKSRC}
|
|
|
|
|
|
|
|
pre-install:
|
2001-07-23 18:14:02 +02:00
|
|
|
@ if test -f ${WRKSRC}/majordomo.cf; then :; else \
|
|
|
|
${CP} ${WRKSRC}/sample.cf ${WRKSRC}/majordomo.cf; \
|
2001-08-29 08:51:10 +02:00
|
|
|
${PERL} ${SCRIPTDIR}/makeseed ${WRKSRC}/majordomo.cf; \
|
2001-07-23 18:14:02 +02:00
|
|
|
fi
|
1996-07-20 03:39:22 +02:00
|
|
|
post-install:
|
1999-07-12 06:09:14 +02:00
|
|
|
.for file in ${MAN1}
|
|
|
|
@ ${INSTALL_MAN} ${WRKSRC}/Doc/man/${file} ${PREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
.for file in ${MAN8}
|
|
|
|
@ ${INSTALL_MAN} ${WRKSRC}/Doc/man/${file} ${PREFIX}/man/man8
|
|
|
|
.endfor
|
|
|
|
|
1999-08-28 03:58:05 +02:00
|
|
|
@ ${LN} -sf archive2.pl ${PREFIX}/majordomo/archive
|
1996-10-26 20:21:17 +02:00
|
|
|
@ for dir in tmp lists/test-l.archive lists/test-l-digest.archive digests/test-l-digest doc; do \
|
1999-07-04 23:20:21 +02:00
|
|
|
${MKDIR} ${PREFIX}/majordomo/$$dir; \
|
1996-10-26 20:21:17 +02:00
|
|
|
done
|
2001-06-01 08:05:18 +02:00
|
|
|
@ ${CHOWN} majordom:majordom ${PREFIX}/majordomo/tmp
|
1999-08-22 21:01:07 +02:00
|
|
|
@ ${CHMOD} 700 ${PREFIX}/majordomo/tmp
|
|
|
|
@ ${CHMOD} 755 ${PREFIX}/majordomo
|
1996-10-26 20:21:17 +02:00
|
|
|
@ for dir in digests lists lists/test-l.archive lists/test-l-digest.archive digests/test-l-digest doc; do \
|
2001-06-01 08:05:18 +02:00
|
|
|
${CHOWN} majordom:majordom ${PREFIX}/majordomo/$$dir; \
|
1999-08-22 21:01:07 +02:00
|
|
|
${CHMOD} 775 ${PREFIX}/majordomo/$$dir; \
|
1996-10-26 20:21:17 +02:00
|
|
|
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
|
2001-07-24 06:21:42 +02:00
|
|
|
@ if test -f ${PREFIX}/majordomo/aliases.majordomo; then :; \
|
|
|
|
else ${INSTALL_DATA} ${WRKSRC}/aliases.majordomo \
|
|
|
|
${PREFIX}/majordomo; fi
|
1996-10-26 20:21:17 +02:00
|
|
|
@ for file in test-l test-l-digest test-l.passwd test-l.info; do \
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/$$file ${PREFIX}/majordomo/lists; \
|
|
|
|
done
|
1999-08-28 03:58:05 +02:00
|
|
|
@ ${LN} -sf test-l.info ${PREFIX}/majordomo/lists/test-l-digest.info
|
|
|
|
@ ${LN} -sf test-l.passwd ${PREFIX}/majordomo/lists/test-l-digest.passwd
|
1999-08-22 21:01:07 +02:00
|
|
|
@ ${CHMOD} 660 ${PREFIX}/majordomo/lists/test-l.passwd
|
2001-06-01 08:05:18 +02:00
|
|
|
@ ${CHOWN} -R majordom:majordom ${PREFIX}/majordomo/lists
|
1999-08-22 21:01:07 +02:00
|
|
|
@ ${CHMOD} -R 664 ${PREFIX}/majordomo/lists
|
2000-05-29 20:17:39 +02:00
|
|
|
@ ${CHMOD} 755 ${PREFIX}/majordomo/lists
|
|
|
|
@ ${CHMOD} 755 ${PREFIX}/majordomo/lists/test-l.archive
|
|
|
|
@ ${CHMOD} 755 ${PREFIX}/majordomo/lists/test-l-digest.archive
|
1999-08-22 21:01:07 +02:00
|
|
|
@ ${CHMOD} 660 ${PREFIX}/majordomo/lists/*.passwd
|
1996-10-26 20:21:17 +02:00
|
|
|
.if !defined(BATCH)
|
2002-02-08 02:56:26 +01:00
|
|
|
@ ${SH} ${SCRIPTDIR}/adaptwrapper ${PREFIX}
|
1996-10-26 20:21:17 +02:00
|
|
|
@ /usr/bin/more -e ${FILESDIR}/post-install-notes
|
|
|
|
.endif
|
1996-07-20 03:39:22 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|