diff options
author | bad <bad@pkgsrc.org> | 1999-06-08 17:51:25 +0000 |
---|---|---|
committer | bad <bad@pkgsrc.org> | 1999-06-08 17:51:25 +0000 |
commit | bcb41376e59edf10c0e2c4094dba815d9f11b8cd (patch) | |
tree | 6c8d59ca84d33e923ceeb652c27c14d41e543cde /mail | |
parent | 2d8c556c1b89e0d2ad857e9300887f5cd1ba6737 (diff) | |
download | pkgsrc-bcb41376e59edf10c0e2c4094dba815d9f11b8cd.tar.gz |
Initial import of pkg for majordomo-1.94.4, the popular mailing list manager.
Packaged by Brook Milligan brook@trillium.NMSU.Edu.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/majordomo/Makefile | 118 | ||||
-rw-r--r-- | mail/majordomo/files/.keep_me | 1 | ||||
-rw-r--r-- | mail/majordomo/files/aliases.majordomo | 127 | ||||
-rw-r--r-- | mail/majordomo/files/example-l.info | 1 | ||||
-rw-r--r-- | mail/majordomo/files/example-l.passwd | 1 | ||||
-rw-r--r-- | mail/majordomo/files/md5 | 3 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-aa | 128 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-ab | 10 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-ac | 10 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-ad | 17 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-ae | 13 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-af | 10 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-ag | 10 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-ah | 10 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-ai | 17 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-aj | 86 | ||||
-rw-r--r-- | mail/majordomo/pkg/COMMENT | 1 | ||||
-rw-r--r-- | mail/majordomo/pkg/DESCR | 9 | ||||
-rw-r--r-- | mail/majordomo/pkg/MESSAGE | 51 | ||||
-rw-r--r-- | mail/majordomo/pkg/PLIST | 66 | ||||
-rw-r--r-- | mail/majordomo/pkg/REQ | 44 |
21 files changed, 733 insertions, 0 deletions
diff --git a/mail/majordomo/Makefile b/mail/majordomo/Makefile new file mode 100644 index 00000000000..1a02dec2662 --- /dev/null +++ b/mail/majordomo/Makefile @@ -0,0 +1,118 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/06/08 17:51:25 bad 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/ +EXTRACT_SUFX= .tgz + +MAINTAINER= packages@biology.nmsu.edu + +DEPENDS+= addnerd-1.6:../../sysutils/addnerd + +USE_PERL5= yes + +NO_PACKAGE= requires compiled in uid/gid + +ALL_TARGET= wrapper +INSTALL_TARGET= install install-wrapper + +PLIST_SRC= ${WRKDIR}/PLIST.tmp +MESSAGE_FILE= ${WRKDIR}/MESSAGE +REQ_FILE= ${WRKDIR}/REQ +MAKEFILE= Makefile.netbsd + +TMPDIR?= /var/tmp +HOMEDIR?= /home +MAJORDOMO_USER?= majordom +MAJORDOMO_GROUP?= majordom + +DOCDIR= ${PREFIX}/share/doc/majordomo +DOCFILES= Changelog FUTURE INSTALL LICENSE NEWLIST README +DOCDOCFILES= FAQ README.sequencer list-owner-info majordomo-faq.html \ + majordomo.lisa6.ps majordomo.ora + +EXDIR= ${PREFIX}/share/examples/majordomo +EXDIRS= archives archives/example-l digests digests/example-l-digest lists +EXFILES= example-l.passwd example-l.info +EXLISTS= example-l example-l-digest + +do-configure: + @${SED} \ + -e 's|@MAJORDOMO_USER@|${MAJORDOMO_USER}|g' \ + -e 's|@MAJORDOMO_GROUP@|${MAJORDOMO_GROUP}|g' \ + -e 's|@HOME@|${HOMEDIR}|g' \ + -e 's|@LOCALBASE@|${LOCALBASE}|g' \ + < ${PKGDIR}/REQ > ${REQ_FILE} + @${SH} ${REQ_FILE} ${PKGNAME} INSTALL + @${SED} \ + -e 's:@PREFIX@:${PREFIX}:g' \ + -e 's:@LOCALBASE@:${LOCALBASE}:g' \ + -e 's|@HOME@|${HOMEDIR}|g' \ + -e 's:@MAJORDOMO_USER@:${MAJORDOMO_USER}:g' \ + -e "s:@UID@:`${ID} -ru ${MAJORDOMO_USER}`:g" \ + -e "s:@GID@:`${ID} -rg ${MAJORDOMO_USER}`:g" \ + -e 's:@TMPDIR@:${TMPDIR}:g' \ + < ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.netbsd + @${SED} \ + -e 's:@PREFIX@:${PREFIX}:g' \ + -e 's:@HOME@:${HOMEDIR}:g' \ + -e 's:@MAJORDOMO_USER@:${MAJORDOMO_USER}:g' \ + -e 's:@TMPDIR@:${TMPDIR}:g' \ + < ${WRKSRC}/sample.cf > ${WRKSRC}/majordomo.cf + @${SED} \ + -e 's:@PREFIX@:${PREFIX}:g' \ + -e 's:@HOME@:${HOMEDIR}:g' \ + -e 's:@MAJORDOMO_USER@:${MAJORDOMO_USER}:g' \ + < ${FILESDIR}/aliases.majordomo > ${WRKSRC}/aliases.majordomo + +pre-install: + @${SED} \ + -e 's|@HOME@|${HOMEDIR}|g' \ + -e 's|@MAJORDOMO_USER@|${MAJORDOMO_USER}|g' \ + < ${PKGDIR}/PLIST > ${PLIST_SRC} + @${SED} \ + -e 's:@PREFIX@:${PREFIX}:g' \ + -e 's:@HOME@:${HOMEDIR}:g' \ + -e 's:@MAJORDOMO_USER@:${MAJORDOMO_USER}:g' \ + -e 's:@MAJORDOMO_GROUP@:${MAJORDOMO_GROUP}:g' \ + < ${PKGDIR}/MESSAGE > ${MESSAGE_FILE} + +post-install: + @${LN} -sf archive2.pl ${PREFIX}/libexec/majordomo/archive + ${INSTALL_DATA_DIR} ${DOCDIR} +.for file in ${DOCFILES} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCDIR}/${file} +.endfor +.for file in ${DOCDOCFILES} + @${INSTALL_DATA} ${WRKSRC}/Doc/${file} ${DOCDIR}/${file} +.endfor + @${INSTALL_DATA} ${MESSAGE_FILE} ${DOCDIR}/post-install-notes + ${INSTALL} -d -m 775 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} ${EXDIR} +.for dir in ${EXDIRS} + @${INSTALL} -d -m 775 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} ${EXDIR}/${dir} +.endfor + @${INSTALL_DATA} -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \ + ${WRKSRC}/aliases.majordomo ${EXDIR}/aliases.majordomo + @${INSTALL_DATA} -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \ + ${FILESDIR}/.keep_me ${EXDIR}/archives/example-l/.keep_me + @${INSTALL_DATA} -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \ + ${FILESDIR}/.keep_me ${EXDIR}/digests/example-l-digest/.keep_me +.for file in ${EXFILES} + @${INSTALL_DATA} -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \ + ${FILESDIR}/${file} ${EXDIR}/lists/${file} +.endfor +.for file in ${EXLISTS} + @${INSTALL} -m 664 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \ + /dev/null ${EXDIR}/lists/${file} +.endfor + @${LN} -sf example-l.info ${EXDIR}/lists/example-l-digest.info + @${LN} -sf example-l.passwd ${EXDIR}/lists/example-l-digest.passwd + ${INSTALL_DATA} -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \ + ${WRKSRC}/majordomo.cf ${EXDIR}/majordomo.cf + +# verify installation; requires interaction +check test: install + ${PREFIX}/libexec/majordomo/wrapper config-test + +.include "../../mk/bsd.pkg.mk" diff --git a/mail/majordomo/files/.keep_me b/mail/majordomo/files/.keep_me new file mode 100644 index 00000000000..aedb72a50a7 --- /dev/null +++ b/mail/majordomo/files/.keep_me @@ -0,0 +1 @@ +This normally empty directory needs to be kept in the distribution. diff --git a/mail/majordomo/files/aliases.majordomo b/mail/majordomo/files/aliases.majordomo new file mode 100644 index 00000000000..33af435fb0f --- /dev/null +++ b/mail/majordomo/files/aliases.majordomo @@ -0,0 +1,127 @@ +## $NetBSD: aliases.majordomo,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ +## +## Basic Majordomo Aliases +## +## Replace your own hostname for "@HOSTNAME@" in the aliases. +## + +majordomo: "|@PREFIX@/libexec/majordomo/wrapper majordomo" +majordomo-owner: @MAJORDOMO_USER@ +owner-majordomo: majordomo-owner +majordom: majordomo-owner + +## The bounces mailing list is used to move people off of lists when their +## e-mail address becomes undeliverable. See the bounce-remind script for a +## way to inform people that they've been moved. + +## bounces mailing list +#owner-bounces:majordomo-owner +#bounces-approval:owner-bounces +#owner-bounces-outgoing:owner-bounces + +#bounces: "|@PREFIX@/libexec/majordomo/wrapper resend -l bounces -h @HOSTNAME@ bounces-outgoing" + +#bounces-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/bounces + +## Example List +## +## This is a example list that should be removed once you are familiar with +## the operation of Majordomo. +## +owner-example-l:@MAJORDOMO_USER@ +owner-example-l-digest:owner-example-l +owner-example-l-outgoing:owner-example-l +owner-example-l-digest-outgoing:owner-example-l +example-l-approval:owner-example-l +example-l-digest-approval:owner-example-l + +example-l: "|@PREFIX@/libexec/majordomo/wrapper resend -l example-l -h @HOSTNAME@ example-l-outgoing" +example-l-digest:example-l +example-l-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/example-l, + "|@PREFIX@/libexec/majordomo/wrapper archive -a -m -f @HOME@/@MAJORDOMO_USER@/archives/example-l/example-l", + "|@PREFIX@/libexec/majordomo/wrapper digest -r -C -l example-l-digest example-l-digest-outgoing" +example-l-digest-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/example-l-digest + +example-l-request: "|@PREFIX@/libexec/majordomo/wrapper majordomo -l example-l" +example-l-digest-request: "|@PREFIX@/libexec/majordomo/wrapper majordomo -l example-l-digest" + + +## Sample Lists +## +## Majordomo lists take one of four general forms: +## +## 1. Regular mailing list +## 2. Mailing list with archiving +## 3. Mailing list with a digested form of the list +## 4. Mailing list with a digested form of the list and archiving +## +## Examples for each are commented out below +## + + +# Regular Mailing List +# + +#owner-listname:user +#owner-listname-outgoing:owner-listname +#listname-approval:owner-listname + +#listname: "|@PREFIX@/libexec/majordomo/wrapper resend -l listname -h @HOSTNAME@ listname-outgoing" +#listname-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/listname + +#listname-request: "|@PREFIX@/libexec/majordomo/wrapper majordomo -l listname" + + +# Mailing List with archiving +# + +#owner-listname:user +#owner-listname-outgoing:owner-listname +#listname-approval:owner-listname + +#listname: "|@PREFIX@/libexec/majordomo/wrapper resend -l listname -h @HOSTNAME@ listname-outgoing" +#listname-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/listname, +# "|@PREFIX@/libexec/majordomo/wrapper archive -a -m -f @HOME@/@MAJORDOMO_USER@/archives/listname/listname" + +#listname-request: "|@PREFIX@/libexec/majordomo/wrapper majordomo -l listname" + + +# Mailing List with a digested form of the list +# + +#owner-listname:user +#owner-listname-digest:owner-listname +#owner-listname-outgoing:owner-listname +#owner-listname-digest-outgoing:owner-listname +#listname-approval:owner-listname +#listname-digest-approval:owner-listname + +#listname: "|@PREFIX@/libexec/majordomo/wrapper resend -l listname -h @HOSTNAME@ listname-outgoing" +#listname-digest:listname +#listname-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/listname, +# "|@PREFIX@/libexec/majordomo/wrapper digest -r -C -l listname-digest listname-digest-outgoing" +#listname-digest-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/listname-digest + +#listname-request: "|@PREFIX@/libexec/majordomo/wrapper majordomo -l listname" +#listname-digest-request: "|@PREFIX@/libexec/majordomo/wrapper majordomo -l listname-digest" + + +# Mailing List with a digested form of the list and archiving +# + +#owner-listname:user +#owner-listname-digest:owner-listname +#owner-listname-outgoing:owner-listname +#owner-listname-digest-outgoing:owner-listname +#listname-approval:owner-listname +#listname-digest-approval:owner-listname + +#listname: "|@PREFIX@/libexec/majordomo/wrapper resend -l listname -h @HOSTNAME@ listname-outgoing" +#listname-digest:listname +#listname-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/listname, +# "|@PREFIX@/libexec/majordomo/wrapper archive -a -m -f @HOME@/@MAJORDOMO_USER@/archives/listname/listname", +# "|@PREFIX@/libexec/majordomo/wrapper digest -r -C -l listname-digest listname-digest-outgoing" +#listname-digest-outgoing::include:@HOME@/@MAJORDOMO_USER@/lists/listname-digest + +#listname-request: "|@PREFIX@/libexec/majordomo/wrapper majordomo -l listname" +#listname-digest-request: "|@PREFIX@/libexec/majordomo/wrapper majordomo -l listname-digest" diff --git a/mail/majordomo/files/example-l.info b/mail/majordomo/files/example-l.info new file mode 100644 index 00000000000..23d4e92b2a2 --- /dev/null +++ b/mail/majordomo/files/example-l.info @@ -0,0 +1 @@ +This is an example list installed with the NetBSD port of majordomo. diff --git a/mail/majordomo/files/example-l.passwd b/mail/majordomo/files/example-l.passwd new file mode 100644 index 00000000000..33a9488b167 --- /dev/null +++ b/mail/majordomo/files/example-l.passwd @@ -0,0 +1 @@ +example diff --git a/mail/majordomo/files/md5 b/mail/majordomo/files/md5 new file mode 100644 index 00000000000..04a30f68234 --- /dev/null +++ b/mail/majordomo/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +MD5 (majordomo-1.94.4.tgz) = c58f51102d87ca271af1d583a7fc8522 diff --git a/mail/majordomo/patches/patch-aa b/mail/majordomo/patches/patch-aa new file mode 100644 index 00000000000..56226952092 --- /dev/null +++ b/mail/majordomo/patches/patch-aa @@ -0,0 +1,128 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./Makefile.orig Wed Aug 27 09:56:21 1997 ++++ ./Makefile Tue Jun 8 10:59:33 1999 +@@ -14,5 +14,5 @@ + + # Put the location of your Perl binary here: +-PERL = /bin/perl ++PERL = @LOCALBASE@/bin/perl + + # What do you call your C compiler? +@@ -21,18 +21,20 @@ + # Where do you want Majordomo to be installed? This CANNOT be the + # current directory (where you unpacked the distribution) +-W_HOME = /usr/test/majordomo-$(VERSION) ++W_HOME = @PREFIX@/libexec/majordomo ++HOME = @HOME@/@MAJORDOMO_USER@ + + # Where do you want man pages to be installed? +-MAN = $(W_HOME)/man ++MAN = @PREFIX@/man + + # You need to have or create a user and group which majordomo will run as. + # Enter the numeric UID and GID (not their names!) here: +-W_USER = 123 +-W_GROUP = 45 ++W_USER = @UID@ ++W_GROUP = @GID@ + + # These set the permissions for all installed files and executables (except + # the wrapper), respectively. Some sites may wish to make these more + # lenient, or more restrictive. +-FILE_MODE = 644 ++CF_MODE = 664 ++MAN_MODE = 444 + EXEC_MODE = 755 + HOME_MODE = 751 +@@ -63,9 +65,9 @@ + # passed to processes run by "wrapper" + W_SHELL = /bin/sh +-W_PATH = /bin:/usr/bin:/usr/ucb +-W_MAJORDOMO_CF = $(W_HOME)/majordomo.cf ++W_PATH = /bin:/usr/bin ++W_MAJORDOMO_CF = @HOME@/@MAJORDOMO_USER@/majordomo.cf + + # A directory for temp files.. +-TMPDIR = /usr/tmp ++TMPDIR = @TMPDIR@ + + #--------YOU SHOULDN'T HAVE TO CHANGE ANYTHING BELOW THIS LINE.------------- +@@ -77,5 +79,5 @@ + + WRAPPER_FLAGS = -DBIN=\"$(W_HOME)\" -DPATH=\"PATH=$(W_PATH)\" \ +- -DHOME=\"HOME=$(W_HOME)\" -DSHELL=\"SHELL=$(W_SHELL)\" \ ++ -DHOME=\"HOME=$(HOME)\" -DSHELL=\"SHELL=$(W_SHELL)\" \ + -DMAJORDOMO_CF=\"MAJORDOMO_CF=$(W_MAJORDOMO_CF)\" \ + $(POSIX) +@@ -145,11 +147,10 @@ + install-scripts: config-scripts + $(INSTALL) -m $(HOME_MODE) $(INSTALL_FLAGS) . $(W_HOME) +- $(INSTALL) -m $(EXEC_MODE) $(INSTALL_FLAGS) . $(W_HOME)/bin + +- @echo "Copying tools to $(W_HOME)/bin" ++ @echo "Copying tools to @PREFIX@/bin" + + @for file in $(BINBIN); do \ + $(INSTALL) -m $(EXEC_MODE) $(INSTALL_FLAGS) \ +- $(TMP)/$$file $(W_HOME)/bin/$$file; \ ++ $(TMP)/$$file @PREFIX@/bin/$$file; \ + done + +@@ -178,43 +179,37 @@ + # be able to check for new variables. + install-cf: +- @if [ ! -f $(W_HOME)/majordomo.cf ]; \ ++ @if [ ! -f $(W_MAJORDOMO_CF) ]; \ + then \ + if [ -f majordomo.cf ]; \ + then \ + echo "Using majordomo.cf"; \ +- $(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ +- majordomo.cf $(W_HOME)/majordomo.cf; \ ++ $(INSTALL) -m $(CF_MODE) $(INSTALL_FLAGS) \ ++ majordomo.cf $(W_MAJORDOMO_CF); \ + else \ + echo "Using sample.cf"; \ +- $(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ +- sample.cf $(W_HOME)/majordomo.cf; \ ++ $(INSTALL) -m $(CF_MODE) $(INSTALL_FLAGS) \ ++ sample.cf $(W_MAJORDOMO_CF); \ + fi; \ + else \ + echo "Using installed majordomo.cf"; \ + fi; +- @$(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ ++ @$(INSTALL) -m $(CF_MODE) $(INSTALL_FLAGS) \ + sample.cf $(W_HOME) + + install-man: + @echo "Installing manual pages in $(MAN)" +- @$(INSTALL) -m $(EXEC_MODE) $(INSTALL_FLAGS) \ +- . $(MAN) +- @$(INSTALL) -m $(EXEC_MODE) $(INSTALL_FLAGS) \ +- . $(MAN)/man1 +- @$(INSTALL) -m $(EXEC_MODE) $(INSTALL_FLAGS) \ +- . $(MAN)/man8 +- @$(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ ++ @$(INSTALL) -m $(MAN_MODE) $(INSTALL_FLAGS) \ + Doc/man/approve.1 $(MAN)/man1/approve.1 +- @$(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ ++ @$(INSTALL) -m $(MAN_MODE) $(INSTALL_FLAGS) \ + Doc/man/digest.1 $(MAN)/man1/digest.1 +- @$(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ ++ @$(INSTALL) -m $(MAN_MODE) $(INSTALL_FLAGS) \ + Doc/man/bounce.1 $(MAN)/man1/bounce.1 +- @$(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ ++ @$(INSTALL) -m $(MAN_MODE) $(INSTALL_FLAGS) \ + Doc/man/bounce-remind.1 $(MAN)/man1/bounce-remind.1 +- @$(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ ++ @$(INSTALL) -m $(MAN_MODE) $(INSTALL_FLAGS) \ + Doc/man/resend.1 $(MAN)/man1/resend.1 +- @$(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ ++ @$(INSTALL) -m $(MAN_MODE) $(INSTALL_FLAGS) \ + Doc/man/majordomo.8 $(MAN)/man8/majordomo.8 +- @$(INSTALL) -m $(FILE_MODE) $(INSTALL_FLAGS) \ ++ @$(INSTALL) -m $(MAN_MODE) $(INSTALL_FLAGS) \ + Doc/man/resend.1 $(MAN)/man1/resend.1 + diff --git a/mail/majordomo/patches/patch-ab b/mail/majordomo/patches/patch-ab new file mode 100644 index 00000000000..faf6a3ee621 --- /dev/null +++ b/mail/majordomo/patches/patch-ab @@ -0,0 +1,10 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./archive2.pl.orig Wed Aug 27 09:07:44 1997 ++++ ./archive2.pl Tue Jun 8 10:55:12 1999 +@@ -61,4 +61,5 @@ + + # All these should be in the standard PERL library ++unshift(@INC, $bindir); + unshift(@INC, $homedir); + require "ctime.pl"; # To get MoY definitions for month abbrevs diff --git a/mail/majordomo/patches/patch-ac b/mail/majordomo/patches/patch-ac new file mode 100644 index 00000000000..24788b2645d --- /dev/null +++ b/mail/majordomo/patches/patch-ac @@ -0,0 +1,10 @@ +$NetBSD: patch-ac,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./bounce-remind.orig Mon Dec 9 09:49:46 1996 ++++ ./bounce-remind Tue Jun 8 10:55:12 1999 +@@ -34,4 +34,5 @@ + + # All these should be in the standard PERL library ++unshift(@INC, $bindir); + unshift(@INC, $homedir); + diff --git a/mail/majordomo/patches/patch-ad b/mail/majordomo/patches/patch-ad new file mode 100644 index 00000000000..604a0e5db98 --- /dev/null +++ b/mail/majordomo/patches/patch-ad @@ -0,0 +1,17 @@ +$NetBSD: patch-ad,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./config-test.orig Wed Aug 27 09:17:13 1997 ++++ ./config-test Tue Jun 8 10:55:12 1999 +@@ -126,4 +126,5 @@ + } + ++unshift(@INC, $bindir); + foreach (@requires) { + if (require $_) { +@@ -287,5 +288,5 @@ + + open($cf, $cf) || &bad("Couldn't open $cf for reading, $!"); +-open(S, 'sample.cf') || &bad("Couldn't open sample.cf for reading, $!"); ++open(S, "$bindir/sample.cf") || &bad("Couldn't open $bindir/sample.cf for reading, $!"); + + while (<S>) { diff --git a/mail/majordomo/patches/patch-ae b/mail/majordomo/patches/patch-ae new file mode 100644 index 00000000000..3f51328300c --- /dev/null +++ b/mail/majordomo/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./digest.orig Wed Aug 27 08:42:52 1997 ++++ ./digest Tue Jun 8 10:55:12 1999 +@@ -320,4 +320,8 @@ + chdir($homedir); + ++ # All these should be in the standard PERL library ++ unshift(@INC, $bindir); ++ unshift(@INC, $homedir); ++ + $opt_l =~ tr/A-Z/a-z/; + diff --git a/mail/majordomo/patches/patch-af b/mail/majordomo/patches/patch-af new file mode 100644 index 00000000000..04f7d9cfcc7 --- /dev/null +++ b/mail/majordomo/patches/patch-af @@ -0,0 +1,10 @@ +$NetBSD: patch-af,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./majordomo.orig Wed Aug 27 08:55:29 1997 ++++ ./majordomo Tue Jun 8 10:55:13 1999 +@@ -59,4 +59,5 @@ + + # All these should be in the standard PERL library ++unshift(@INC, $bindir); + unshift(@INC, $homedir); + require "ctime.pl"; # To get MoY definitions for month abbrevs diff --git a/mail/majordomo/patches/patch-ag b/mail/majordomo/patches/patch-ag new file mode 100644 index 00000000000..d68b1a67c4e --- /dev/null +++ b/mail/majordomo/patches/patch-ag @@ -0,0 +1,10 @@ +$NetBSD: patch-ag,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./medit.orig Mon Apr 28 12:38:05 1997 ++++ ./medit Tue Jun 8 10:55:13 1999 +@@ -30,4 +30,5 @@ + + # All these should be in the standard PERL library ++unshift(@INC, $bindir); + unshift(@INC, $homedir); + require "shlock.pl"; # NNTP-style file locking diff --git a/mail/majordomo/patches/patch-ah b/mail/majordomo/patches/patch-ah new file mode 100644 index 00000000000..f4ce9534e87 --- /dev/null +++ b/mail/majordomo/patches/patch-ah @@ -0,0 +1,10 @@ +$NetBSD: patch-ah,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./request-answer.orig Mon Dec 9 09:50:20 1996 ++++ ./request-answer Tue Jun 8 10:55:13 1999 +@@ -27,4 +27,5 @@ + + chdir($homedir) || die("Can't chdir(\"$homedir\"): $!"); ++unshift(@INC, $bindir); + unshift(@INC, $homedir); + require "shlock.pl"; diff --git a/mail/majordomo/patches/patch-ai b/mail/majordomo/patches/patch-ai new file mode 100644 index 00000000000..388e25e2de6 --- /dev/null +++ b/mail/majordomo/patches/patch-ai @@ -0,0 +1,17 @@ +$NetBSD: patch-ai,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./resend.orig Wed Aug 27 08:59:24 1997 ++++ ./resend Tue Jun 8 10:55:13 1999 +@@ -93,4 +93,5 @@ + chdir($homedir) || die("Can't chdir(\"$homedir\"): $!"); + ++unshift(@INC, $bindir); + unshift(@INC, $homedir); + require "ctime.pl"; # For logging purposes +@@ -316,5 +317,5 @@ + &bitch("resend: \$admin_body not defined in $cf !!\n" . + "Majordomo will only catch \"subscribe\" and \"unsubscribe\" in\n" . +- "the body.\nLook at $homedir/sample.cf for a good definition."); ++ "the body.\nLook at $bindir/sample.cf for a good definition."); + @admin_body = ('/^subject:\s*subscribe\b/i' , + '/^subject:\s*unsubscribe\b/i'); diff --git a/mail/majordomo/patches/patch-aj b/mail/majordomo/patches/patch-aj new file mode 100644 index 00000000000..ff46f7e9c87 --- /dev/null +++ b/mail/majordomo/patches/patch-aj @@ -0,0 +1,86 @@ +$NetBSD: patch-aj,v 1.1.1.1 1999/06/08 17:51:26 bad Exp $ + +--- ./sample.cf.orig Wed Aug 27 09:00:31 1997 ++++ ./sample.cf Tue Jun 8 10:55:13 1999 +@@ -7,5 +7,5 @@ + # $whereami -- What machine am I running on? + # +-$whereami = "example.com"; ++$whereami = "@HOSTNAME@"; + + # $whoami -- Who do users send requests to me as? +@@ -17,5 +17,5 @@ + $whoami_owner = "Majordomo-Owner\@$whereami"; + +-# $homedir -- Where can I find my extra .pl files, like majordomo.pl? ++# $homedir -- Where can I find my lists? + # the environment variable HOME is set by the wrapper + # +@@ -23,5 +23,14 @@ + $homedir = $ENV{"HOME"}; + } else { +- $homedir = "/usr/test/majordomo"; ++ $homedir = "@HOME@/@MAJORDOMO_USER@"; ++} ++ ++# $bindir -- Where can I find my extra .pl files, like majordomo.pl? ++# the environment variable BIN is set by the wrapper ++# ++if ( defined $ENV{"BIN"}) { ++ $bindir = $ENV{"BIN"}; ++} else { ++ $bindir = "@PREFIX@/libexec/majordomo"; + } + +@@ -33,8 +42,8 @@ + # Each list must have a subdirectory under this directory in order for + # digest to work. E.G. The bblisa list would use: +-# /usr/local/mail/digest/bblisa ++# @HOME@/@MAJORDOMO_USER@/digests/bblisa + # as its directory. + # +-$digest_work_dir = "/usr/local/mail/digest"; ++$digest_work_dir = "$homedir/digests"; + + # $log -- Where do I write my log? +@@ -46,6 +55,6 @@ + # seem to prefer /usr/sbin/sendmail + # +-$sendmail_command = "/usr/lib/sendmail"; +-# $sendmail_command = "/usr/sbin/sendmail"; ++# $sendmail_command = "/usr/lib/sendmail"; ++$sendmail_command = "/usr/sbin/sendmail"; + + # $mailer -- What program and args do I use to send mail to the list? +@@ -69,5 +78,5 @@ + # To use TLB and use no outgoing alias: + # if ($main'program_name eq 'mj_resend' && $opt_l eq 'test-list') { +-# $mailer = "/usr/local/majordomo/tlb /usr/local/lists/${opt_l}.tlb"; ++# $mailer = "@HOME@/@MAJORDOMO_USER@/tlb @HOME@/@MAJORDOMO_USER@/lists/${opt_l}.tlb"; + # } + # +@@ -128,6 +137,6 @@ + # directory "$filedir/$list$filedir_suffix", so set $filedir and + # $filedir_suffix appropriately. For instance, to look in +-# /usr/local/mail/files/$list, use: +-# $filedir = "/usr/local/mail/files"; ++# @HOME@/@MAJORDOMO_USER@/mail/files/$list, use: ++# $filedir = "@HOME@/@MAJORDOMO_USER@/mail/files"; + # $filedir_suffix = ""; # empty string + # or to look in $listdir/$list.archive, use: +@@ -135,6 +144,6 @@ + # $filedir_suffix = ".archive"; + +-$filedir = "$listdir"; +-$filedir_suffix = ".archive"; ++$filedir = "@HOME@/@MAJORDOMO_USER@/archives"; ++$filedir_suffix = ""; + + # What command should I use to process an "index" request? +@@ -191,5 +200,5 @@ + # Uses the environment variable TMPDIR, since that's pretty common + # +-$TMPDIR = $ENV{'TMPDIR'} || "/usr/tmp"; ++$TMPDIR = $ENV{'TMPDIR'} || "@TMPDIR@"; + + # Tune how long set_lock tries to obtain a lock before giving up. Each diff --git a/mail/majordomo/pkg/COMMENT b/mail/majordomo/pkg/COMMENT new file mode 100644 index 00000000000..ad957d301c7 --- /dev/null +++ b/mail/majordomo/pkg/COMMENT @@ -0,0 +1 @@ +The Majordomo mailing list manager diff --git a/mail/majordomo/pkg/DESCR b/mail/majordomo/pkg/DESCR new file mode 100644 index 00000000000..677137905aa --- /dev/null +++ b/mail/majordomo/pkg/DESCR @@ -0,0 +1,9 @@ +Majordomo is a program which automates the management of Internet + mailing lists. Commands are sent to Majordomo via electronic mail to + handle all aspects of list maintainance. Once a list is set up, + virtually all operations can be performed remotely, requiring no + intervention upon the postmaster of the list site. + + _majordomo - n: a person who speaks, makes arrangements, or takes + charge for another. From latin "major domus" - "master of the + house". _ diff --git a/mail/majordomo/pkg/MESSAGE b/mail/majordomo/pkg/MESSAGE new file mode 100644 index 00000000000..2a85dec6d74 --- /dev/null +++ b/mail/majordomo/pkg/MESSAGE @@ -0,0 +1,51 @@ +Post-Install Notes for Majordomo +================================ + +Before you can use Majordomo, you will need to complete a few steps manually: + + - install majordomo.cf in @HOME@/@MAJORDOMO_USER@. + Look in @PREFIX@/share/examples/majordomo for an example and be sure + to change instances of @HOSTNAME@ as appropriate. + + - create lists in @HOME@/@MAJORDOMO_USER@. + Look in @PREFIX@/share/doc/majordomo for information and see the + files and directories for an example list (example-l) in + @PREFIX@/share/examples/majordomo. Pay attention to the permissions + on the files and directories. + + - add a .forward file in @HOME@/@MAJORDOMO_USER@ (or an appropriate + alias) so administrative mail to @MAJORDOMO_USER@ gets redirected + properly. + + - install majordomo aliases for sendmail. + For example, create /etc/aliases.majordomo following the example in + @PREFIX@/share/examples/majordomo and add it to your sendmail + configuration. This can be done by adding a line similar to the + following to /etc/sendmail.cf : + + OA/etc/aliases.majordomo (for 8.6.x Sendmail), + + O AliasFile=/etc/aliases,/etc/aliases.majordomo (for 8.7.x and up), + + or a line similar to the following to your m4 macros file: + + define(`ALIAS_FILE',/etc/aliases,/etc/aliases.majordomo') + + - if the group for @MAJORDOMO_USER@ (@MAJORDOMO_GROUP@) is not daemon, + add @MAJORDOMO_USER@ as a trusted user for sendmail. This can be + done by adding a line similar to the following in /etc/sendmail.cf : + + T@MAJORDOMO_USER@ + + or a line similar to the following to your m4 macros file: + + define(`confTRUSTED_USERS', @MAJORDOMO_USER@)dnl + + - be sure to run `newaliases' to create the sendmail database, and + be sure that sendmail knows about any changes to /etc/sendmail.cf + (e.g., reboot or rerun sendmail) + + - add entries in /etc/newsyslog.conf to rotate the log in + @HOME@/@MAJORDOMO_USER@/Log if necessary + +Enjoy Majordomo! diff --git a/mail/majordomo/pkg/PLIST b/mail/majordomo/pkg/PLIST new file mode 100644 index 00000000000..8a1cabc89e7 --- /dev/null +++ b/mail/majordomo/pkg/PLIST @@ -0,0 +1,66 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/06/08 17:51:27 bad Exp $ +bin/approve +bin/bounce +bin/medit +libexec/majordomo/Tools/archive.pl +libexec/majordomo/Tools/archive_mh.pl +libexec/majordomo/Tools/digest.send +libexec/majordomo/Tools/logsummary.pl +libexec/majordomo/Tools/makeindex.pl +libexec/majordomo/Tools/new-list +libexec/majordomo/Tools/sequencer +libexec/majordomo/archive +libexec/majordomo/archive2.pl +libexec/majordomo/bounce-remind +libexec/majordomo/config-test +libexec/majordomo/config_parse.pl +libexec/majordomo/digest +libexec/majordomo/majordomo +libexec/majordomo/majordomo.pl +libexec/majordomo/majordomo_version.pl +libexec/majordomo/request-answer +libexec/majordomo/resend +libexec/majordomo/sample.cf +libexec/majordomo/shlock.pl +libexec/majordomo/wrapper +man/man1/approve.1 +man/man1/bounce-remind.1 +man/man1/bounce.1 +man/man1/digest.1 +man/man1/resend.1 +man/man8/majordomo.8 +share/doc/majordomo/Changelog +share/doc/majordomo/FAQ +share/doc/majordomo/FUTURE +share/doc/majordomo/INSTALL +share/doc/majordomo/LICENSE +share/doc/majordomo/NEWLIST +share/doc/majordomo/README +share/doc/majordomo/README.sequencer +share/doc/majordomo/list-owner-info +share/doc/majordomo/majordomo-faq.html +share/doc/majordomo/majordomo.lisa6.ps +share/doc/majordomo/majordomo.ora +share/doc/majordomo/post-install-notes +share/examples/majordomo/aliases.majordomo +share/examples/majordomo/archives/example-l/.keep_me +share/examples/majordomo/digests/example-l-digest/.keep_me +share/examples/majordomo/lists/example-l +share/examples/majordomo/lists/example-l-digest +share/examples/majordomo/lists/example-l-digest.info +share/examples/majordomo/lists/example-l-digest.passwd +share/examples/majordomo/lists/example-l.info +share/examples/majordomo/lists/example-l.passwd +share/examples/majordomo/majordomo.cf +@dirrm share/examples/majordomo/lists +@dirrm share/examples/majordomo/digests/example-l-digest +@dirrm share/examples/majordomo/digests +@dirrm share/examples/majordomo/archives/example-l +@dirrm share/examples/majordomo/archives +@dirrm share/examples/majordomo +@dirrm share/doc/majordomo +@dirrm libexec/majordomo/Tools +@dirrm libexec/majordomo +@unexec echo "If you are removing majordomo permanently, you may wish to" +@unexec echo " - remove @HOME@/@MAJORDOMO_USER@" +@unexec echo " - remove majordomo aliases from /etc/sendmail.cf and run newaliases" diff --git a/mail/majordomo/pkg/REQ b/mail/majordomo/pkg/REQ new file mode 100644 index 00000000000..bf4f4d67b94 --- /dev/null +++ b/mail/majordomo/pkg/REQ @@ -0,0 +1,44 @@ +#!/bin/sh + +HOME=@HOME@ +MAJORDOMO_USER=@MAJORDOMO_USER@ +MAJORDOMO_GROUP=@MAJORDOMO_GROUP@ +ADDNERD=@LOCALBASE@/sbin/addnerd + + +PKG=$1 +STAGE=$2 + +if [ "$STAGE" != "INSTALL" ]; +then + exit 0 +fi + + +# use finger to be able to use NIS, ... +if finger ${MAJORDOMO_USER} 2>&1 | grep >/dev/null "no such user" +then + echo "Creating '$MAJORDOMO_USER' user ..." + ${ADDNERD} -h ${HOME} -g ${MAJORDOMO_GROUP} ${MAJORDOMO_USER} + echo Done. +else + echo "User '$MAJORDOMO_USER' already exists, proceeding." +fi + + +# Group... the default's shipped with NetBSD +# +if grep "^${MAJORDOMO_GROUP}:" /etc/group 2>&1 >/dev/null +then + echo "Group '$MAJORDOMO_GROUP' already exists, proceeding." +else + echo "Please add group '$MAJORDOMO_GROUP' to /etc/group, then restart." + exit 1 +fi + +# Home... in case the login exists but not the home directory +# +install -d -m 775 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} ${HOME}/${MAJORDOMO_USER} +install -d -m 775 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} ${HOME}/${MAJORDOMO_USER}/archives +install -d -m 775 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} ${HOME}/${MAJORDOMO_USER}/digests +install -d -m 775 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} ${HOME}/${MAJORDOMO_USER}/lists |