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
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
2000-10-23 23:03:11 +02:00
MAINTAINER = ports@FreeBSD.org
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
2000-06-05 01:21:30 +02: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 20:21:17 +02: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 03:39:22 +02:00
post-install :
1999-07-12 06:09:14 +02: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 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
. 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 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
. 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 03:39:22 +02:00
. i n c l u d e < b s d . p o r t . m k >