From c72c1cf5f95cbe537b005028f1743cddb16ef203 Mon Sep 17 00:00:00 2001 From: zuntum Date: Thu, 1 Nov 2001 00:57:41 +0000 Subject: Move pkg/ files into package's toplevel directory --- mail/majordomo/DEINSTALL | 33 +++++++++++++++++++++++ mail/majordomo/DESCR | 9 +++++++ mail/majordomo/INSTALL | 51 +++++++++++++++++++++++++++++++++++ mail/majordomo/MESSAGE | 58 ++++++++++++++++++++++++++++++++++++++++ mail/majordomo/PLIST | 63 ++++++++++++++++++++++++++++++++++++++++++++ mail/majordomo/pkg/DEINSTALL | 33 ----------------------- mail/majordomo/pkg/DESCR | 9 ------- mail/majordomo/pkg/INSTALL | 51 ----------------------------------- mail/majordomo/pkg/MESSAGE | 58 ---------------------------------------- mail/majordomo/pkg/PLIST | 63 -------------------------------------------- 10 files changed, 214 insertions(+), 214 deletions(-) create mode 100644 mail/majordomo/DEINSTALL create mode 100644 mail/majordomo/DESCR create mode 100644 mail/majordomo/INSTALL create mode 100644 mail/majordomo/MESSAGE create mode 100644 mail/majordomo/PLIST delete mode 100644 mail/majordomo/pkg/DEINSTALL delete mode 100644 mail/majordomo/pkg/DESCR delete mode 100644 mail/majordomo/pkg/INSTALL delete mode 100644 mail/majordomo/pkg/MESSAGE delete mode 100644 mail/majordomo/pkg/PLIST (limited to 'mail/majordomo') diff --git a/mail/majordomo/DEINSTALL b/mail/majordomo/DEINSTALL new file mode 100644 index 00000000000..e5ae06ef344 --- /dev/null +++ b/mail/majordomo/DEINSTALL @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1 2001/11/01 01:00:27 zuntum Exp $ +# + +PKGNAME=$1 +STAGE=$2 + +USER=@MAJORDOMO_USER@ +GROUP=@MAJORDOMO_GROUP@ +HOME=@HOME@ + +case ${STAGE} in +DEINSTALL) + ;; +POST-DEINSTALL) + cat << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want to + - remove the \`${USER}' user. + - remove his home directory \`${HOME}/${USER}' + - remove the \`${GROUP}' group from /etc/group + - remove majordomo aliases from /etc/mail/aliases and + run newaliases +=========================================================================== +EOF + ;; +*) + echo "Unexpected argument: $2" + exit 1 + ;; +esac +exit 0 diff --git a/mail/majordomo/DESCR b/mail/majordomo/DESCR new file mode 100644 index 00000000000..677137905aa --- /dev/null +++ b/mail/majordomo/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/INSTALL b/mail/majordomo/INSTALL new file mode 100644 index 00000000000..f15618772ab --- /dev/null +++ b/mail/majordomo/INSTALL @@ -0,0 +1,51 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1 2001/11/01 01:00:27 zuntum Exp $ + +PKGNAME=$1 +STAGE=$2 + +HOME=@HOME@ +MAJORDOMO_USER=@MAJORDOMO_USER@ +MAJORDOMO_GROUP=@MAJORDOMO_GROUP@ +ADDUSER=@ADDUSER@ +ADDGROUP=@ADDGROUP@ +CHGRP=@CHGRP@ +ID=@ID@ +TOUCH=@TOUCH@ +RM=@RM@ + +if [ "$STAGE" != "PRE-INSTALL" ]; +then + exit 0 +fi + +# We need to check that ${MAJORDOMO_GROUP} exists before adding the user. +# +${TOUCH} "/tmp/grouptestmajordomo.$$" +${CHGRP} ${MAJORDOMO_GROUP} "/tmp/grouptestmajordomo.$$" >/dev/null 2>&1 +if [ $? -eq 0 ]; then + echo "Group '${MAJORDOMO_GROUP}' already exists...proceeding." +else + echo "Creating '${MAJORDOMO_GROUP}' group..." + ${ADDGROUP} ${MAJORDOMO_GROUP} + echo "Done." +fi +${RM} -f "/tmp/grouptestmajordomo.$$" + +${ID} ${MAJORDOMO_USER} >/dev/null 2>&1 +if [ $? -eq 0 ]; then + echo "User '${MAJORDOMO_USER}' already exists...proceeding." +else + echo "Creating '${MAJORDOMO_USER}' user..." + ${ADDUSER} -c "Majordomo User" -g ${MAJORDOMO_GROUP} \ + -b ${HOME} ${MAJORDOMO_USER} + echo "Done." +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 diff --git a/mail/majordomo/MESSAGE b/mail/majordomo/MESSAGE new file mode 100644 index 00000000000..0f3727d66ea --- /dev/null +++ b/mail/majordomo/MESSAGE @@ -0,0 +1,58 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2001/11/01 01:00:27 zuntum Exp $ + +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 restart 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/PLIST b/mail/majordomo/PLIST new file mode 100644 index 00000000000..6f716c65b0a --- /dev/null +++ b/mail/majordomo/PLIST @@ -0,0 +1,63 @@ +@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:00:28 zuntum 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/man8/digest.8 +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 diff --git a/mail/majordomo/pkg/DEINSTALL b/mail/majordomo/pkg/DEINSTALL deleted file mode 100644 index b304eb930bf..00000000000 --- a/mail/majordomo/pkg/DEINSTALL +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -# -# $NetBSD: DEINSTALL,v 1.2 2000/08/29 14:37:36 tron Exp $ -# - -PKGNAME=$1 -STAGE=$2 - -USER=@MAJORDOMO_USER@ -GROUP=@MAJORDOMO_GROUP@ -HOME=@HOME@ - -case ${STAGE} in -DEINSTALL) - ;; -POST-DEINSTALL) - cat << EOF -=========================================================================== -If you won't be using ${PKGNAME} any longer, you may want to - - remove the \`${USER}' user. - - remove his home directory \`${HOME}/${USER}' - - remove the \`${GROUP}' group from /etc/group - - remove majordomo aliases from /etc/mail/aliases and - run newaliases -=========================================================================== -EOF - ;; -*) - echo "Unexpected argument: $2" - exit 1 - ;; -esac -exit 0 diff --git a/mail/majordomo/pkg/DESCR b/mail/majordomo/pkg/DESCR deleted file mode 100644 index 677137905aa..00000000000 --- a/mail/majordomo/pkg/DESCR +++ /dev/null @@ -1,9 +0,0 @@ -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/INSTALL b/mail/majordomo/pkg/INSTALL deleted file mode 100644 index e9d363cba6d..00000000000 --- a/mail/majordomo/pkg/INSTALL +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh -# -# $NetBSD: INSTALL,v 1.1 2000/12/08 10:09:23 wiz Exp $ - -PKGNAME=$1 -STAGE=$2 - -HOME=@HOME@ -MAJORDOMO_USER=@MAJORDOMO_USER@ -MAJORDOMO_GROUP=@MAJORDOMO_GROUP@ -ADDUSER=@ADDUSER@ -ADDGROUP=@ADDGROUP@ -CHGRP=@CHGRP@ -ID=@ID@ -TOUCH=@TOUCH@ -RM=@RM@ - -if [ "$STAGE" != "PRE-INSTALL" ]; -then - exit 0 -fi - -# We need to check that ${MAJORDOMO_GROUP} exists before adding the user. -# -${TOUCH} "/tmp/grouptestmajordomo.$$" -${CHGRP} ${MAJORDOMO_GROUP} "/tmp/grouptestmajordomo.$$" >/dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "Group '${MAJORDOMO_GROUP}' already exists...proceeding." -else - echo "Creating '${MAJORDOMO_GROUP}' group..." - ${ADDGROUP} ${MAJORDOMO_GROUP} - echo "Done." -fi -${RM} -f "/tmp/grouptestmajordomo.$$" - -${ID} ${MAJORDOMO_USER} >/dev/null 2>&1 -if [ $? -eq 0 ]; then - echo "User '${MAJORDOMO_USER}' already exists...proceeding." -else - echo "Creating '${MAJORDOMO_USER}' user..." - ${ADDUSER} -c "Majordomo User" -g ${MAJORDOMO_GROUP} \ - -b ${HOME} ${MAJORDOMO_USER} - echo "Done." -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 diff --git a/mail/majordomo/pkg/MESSAGE b/mail/majordomo/pkg/MESSAGE deleted file mode 100644 index b99ca6bafe6..00000000000 --- a/mail/majordomo/pkg/MESSAGE +++ /dev/null @@ -1,58 +0,0 @@ -=========================================================================== -$NetBSD: MESSAGE,v 1.2 2001/01/29 11:34:31 wiz Exp $ - -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 restart 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 deleted file mode 100644 index 8dcf11c82fc..00000000000 --- a/mail/majordomo/pkg/PLIST +++ /dev/null @@ -1,63 +0,0 @@ -@comment $NetBSD: PLIST,v 1.4 2001/03/27 11:53:18 agc 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/man8/digest.8 -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 -- cgit v1.2.3