1996-07-20 01:39:22 +00:00
# New ports collection makefile for: majordomo
1996-10-26 18:21:17 +00:00
# Date created: 23 October 1996
1999-08-31 06:53:31 +00:00
# Whom: jfitz@FreeBSD.org
1996-07-20 01:39:22 +00:00
#
1999-08-25 06:51:17 +00:00
# $FreeBSD$
1996-07-20 01:39:22 +00:00
#
2000-04-13 20:01:08 +00:00
PORTNAME = majordomo
2000-05-29 18:17:39 +00:00
PORTVERSION = 1.94.5
1996-11-10 21:32:56 +00:00
CATEGORIES = mail
2000-05-29 18:17:39 +00:00
MASTER_SITES = ftp://ftp.greatcircle.com/pub/majordomo/1.94.5/ \
ftp://ftp.sgi.com/other/majordomo/1.94.5/
1997-09-10 02:52:59 +00:00
EXTRACT_SUFX = .tgz
1996-07-20 01:39:22 +00:00
2000-10-23 21:03:11 +00:00
MAINTAINER = ports@FreeBSD.org
1996-07-20 01:39:22 +00:00
1999-03-11 21:47:15 +00:00
Y2K = http://www.greatcircle.com/majordomo/majordomo-faq.html#1.8
1996-07-20 01:39:22 +00:00
# Needs to create a user and group
IS_INTERACTIVE = yes
1996-12-08 01:45:16 +00:00
NO_PACKAGE = "User and group need to be created"
1996-10-26 18:21:17 +00:00
ALL_TARGET = wrapper
INSTALL_TARGET = install install-wrapper
1996-11-17 07:42:58 +00:00
MAN1 = approve.1 bounce-remind.1 digest.1
MAN8 = majordomo.8
1996-10-26 18:21:17 +00:00
2000-06-04 23:21:30 +00:00
pre-fetch :
. i f ! d e f i n e d ( B A T C H ) & & ! d e f i n e d ( P A C K A G E _ B U I L D I N G )
/usr/bin/dialog --yesno "Majordomo is unsafe to use on multi-user machines: local users can run arbitrary commands as the majordomo user. Do you wish to accept the security risk and build majordomo anyway?" 8 60 || ${ FALSE }
. e n d i f
1996-10-26 18:21:17 +00:00
pre-configure :
@ ${ SETENV } ${ MAKE_ENV } /usr/bin/perl ${ SCRIPTDIR } /createuser
@ ${ CP } ${ FILESDIR } /aliases.majordomo ${ WRKSRC }
pre-install :
@ ${ CP } ${ WRKSRC } /sample.cf ${ WRKSRC } /majordomo.cf
1996-07-20 01:39:22 +00:00
post-install :
1999-07-12 04:09:14 +00:00
. f o r f i l e i n $ { M A N 1 }
@ ${ INSTALL_MAN } ${ WRKSRC } /Doc/man/${ file } ${ PREFIX } /man/man1
. e n d f o r
. f o r f i l e i n $ { M A N 8 }
@ ${ INSTALL_MAN } ${ WRKSRC } /Doc/man/${ file } ${ PREFIX } /man/man8
. e n d f o r
1999-08-28 01:58:05 +00:00
@ ${ LN } -sf archive2.pl ${ PREFIX } /majordomo/archive
1996-10-26 18:21:17 +00:00
@ for dir in tmp lists/test-l.archive lists/test-l-digest.archive digests/test-l-digest doc; do \
1999-07-04 21:20:21 +00:00
${ MKDIR } ${ PREFIX } /majordomo/$$ dir; \
1996-10-26 18:21:17 +00:00
done
1999-08-22 19:01:07 +00:00
@ ${ CHOWN } majordom.majordom ${ PREFIX } /majordomo/tmp
@ ${ CHMOD } 700 ${ PREFIX } /majordomo/tmp
@ ${ CHMOD } 755 ${ PREFIX } /majordomo
1996-10-26 18:21:17 +00:00
@ for dir in digests lists lists/test-l.archive lists/test-l-digest.archive digests/test-l-digest doc; do \
1999-08-22 19:01:07 +00:00
${ CHOWN } majordom.majordom ${ PREFIX } /majordomo/$$ dir; \
${ CHMOD } 775 ${ PREFIX } /majordomo/$$ dir; \
1996-10-26 18:21:17 +00:00
done
. i f ! d e f i n e d ( N O P O R T D O C S )
@ 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
. e n d i f
@ ${ 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
1999-08-28 01:58:05 +00: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 19:01:07 +00:00
@ ${ CHMOD } 660 ${ PREFIX } /majordomo/lists/test-l.passwd
@ ${ CHOWN } -R majordom.majordom ${ PREFIX } /majordomo/lists
@ ${ CHMOD } -R 664 ${ PREFIX } /majordomo/lists
2000-05-29 18:17:39 +00: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 19:01:07 +00:00
@ ${ CHMOD } 660 ${ PREFIX } /majordomo/lists/*.passwd
1996-10-26 18:21:17 +00:00
. i f ! d e f i n e d ( B A T C H )
@ /usr/bin/more -e ${ FILESDIR } /post-install-notes
. e n d i f
1996-07-20 01:39:22 +00:00
. i n c l u d e < b s d . p o r t . m k >