summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-16 17:11:25 +0000
committerjlam <jlam@pkgsrc.org>2006-06-16 17:11:25 +0000
commit07bb1e95242b89de6f5a10742b11827de6b2a315 (patch)
tree73b5c9e8e3f67fdfc91c97fa676b7fd2813157d9 /mail
parent1d18774782c27bce495687b5d35e1e44d78fb3c3 (diff)
downloadpkgsrc-07bb1e95242b89de6f5a10742b11827de6b2a315.tar.gz
Modify (finally!) to use pkginstall framework. Bump PKGREVISION to 2.
Diffstat (limited to 'mail')
-rw-r--r--mail/majordomo/DEINSTALL27
-rw-r--r--mail/majordomo/INSTALL51
-rw-r--r--mail/majordomo/Makefile105
-rw-r--r--mail/majordomo/distinfo4
-rw-r--r--mail/majordomo/patches/patch-aa4
5 files changed, 44 insertions, 147 deletions
diff --git a/mail/majordomo/DEINSTALL b/mail/majordomo/DEINSTALL
deleted file mode 100644
index 77d27de2991..00000000000
--- a/mail/majordomo/DEINSTALL
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.2 2003/08/30 20:22:56 jlam Exp $
-#
-
-PKGNAME=$1
-STAGE=$2
-
-USER=@MAJORDOMO_USER@
-GROUP=@MAJORDOMO_GROUP@
-HOME=@HOME@
-
-case ${STAGE} in
-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
- ;;
-esac
-exit 0
diff --git a/mail/majordomo/INSTALL b/mail/majordomo/INSTALL
deleted file mode 100644
index f15618772ab..00000000000
--- a/mail/majordomo/INSTALL
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/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/Makefile b/mail/majordomo/Makefile
index 85a8b95fb00..32a132c7c64 100644
--- a/mail/majordomo/Makefile
+++ b/mail/majordomo/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.25 2006/06/09 08:59:01 rillig Exp $
+# $NetBSD: Makefile,v 1.26 2006/06/16 17:11:25 jlam Exp $
DISTNAME= majordomo-1.94.5
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= mail
MASTER_SITES= ftp://ftp.sgi.com/other/majordomo/1.94.5/ \
ftp://ftp-europe.sgi.com/other/majordomo/1.94.5/
@@ -13,27 +13,12 @@ COMMENT= The Majordomo mailing list manager
LICENSE= majordomo-license
-.if exists(/usr/sbin/user)
-ADDUSER= /usr/sbin/useradd
-ADDGROUP= /usr/sbin/groupadd
-.else
-DEPENDS+= user>=20000313:../../sysutils/user
-ADDUSER= ${LOCALBASE}/sbin/useradd
-ADDGROUP= ${LOCALBASE}/sbin/groupadd
-.endif
-
CONFLICTS+= bounce-*
USE_TOOLS+= perl:run
-NO_BIN_ON_FTP= requires compiled-in hardcoded uid/gid
-NO_BIN_ON_CDROM= ${NO_BIN_ON_FTP}
-
BUILD_TARGET= wrapper
INSTALL_TARGET= install install-wrapper
-
-DEINSTALL_SRC= ${PKGDIR}/DEINSTALL
-INSTALL_SRC= ${PKGDIR}/INSTALL
MAKEFILE= Makefile.netbsd
MAJORDOMO_TMPDIR?= /var/tmp
@@ -41,17 +26,9 @@ MAJORDOMO_HOMEDIR?= /home
MAJORDOMO_USER?= majordom
MAJORDOMO_GROUP?= majordom
-PLIST_SUBST+= HOME=${MAJORDOMO_HOMEDIR:Q} \
- MAJORDOMO_USER=${MAJORDOMO_USER:Q}
MESSAGE_SUBST+= HOME=${MAJORDOMO_HOMEDIR} \
MAJORDOMO_USER=${MAJORDOMO_USER} \
MAJORDOMO_GROUP=${MAJORDOMO_GROUP}
-FILES_SUBST+= HOME=${MAJORDOMO_HOMEDIR:Q} \
- MAJORDOMO_USER=${MAJORDOMO_USER} \
- MAJORDOMO_GROUP=${MAJORDOMO_GROUP} \
- ADDUSER=${ADDUSER} ADDGROUP=${ADDGROUP} \
- CHGRP=${CHGRP:Q} ID=${ID:Q} \
- TOUCH=${TOUCH:Q} RM=${RM:Q}
DOCDIR= ${PREFIX}/share/doc/majordomo
DOCFILES= Changelog FUTURE INSTALL LICENSE NEWLIST README
@@ -66,45 +43,43 @@ EXLISTS= example-l example-l-digest
BUILD_DEFS+= MAJORDOMO_USER MAJORDOMO_GROUP MAJORDOMO_TMPDIR
-.PHONY: require-uid
-require-uid:
- ${_PKG_SILENT}${_PKG_DEBUG} \
- if ! ${ID} ${MAJORDOMO_USER} >/dev/null 2>&1; then \
- ${TOUCH} "/tmp/grouptestmajordomo1.$$$$"; \
- if ! ${CHGRP} ${MAJORDOMO_GROUP} \
- "/tmp/grouptestmajordomo1.$$$$" >/dev/null 2>&1; then \
- realtarget="root-require-uid"; \
- action="create user for"; \
- ${_SU_TARGET}; \
- fi; \
- ${RM} -f "/tmp/grouptestmajordomo1.$$$$"; \
- fi
-
-.PHONY: root-require-uid
-root-require-uid: pre-install-script
-
-do-configure: generate-install-scripts
- ${MAKE} ${.MAKEFLAGS} require-uid
- ${SED} \
- -e 's:@PREFIX@:${PREFIX}:g' \
- -e 's:@LOCALBASE@:${LOCALBASE}:g' \
- -e 's|@HOME@|${MAJORDOMO_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@:${MAJORDOMO_TMPDIR}:g' \
- < ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.netbsd
- ${SED} \
- -e 's:@PREFIX@:${PREFIX}:g' \
- -e 's:@HOME@:${MAJORDOMO_HOMEDIR}:g' \
- -e 's:@MAJORDOMO_USER@:${MAJORDOMO_USER}:g' \
- -e 's:@TMPDIR@:${MAJORDOMO_TMPDIR}:g' \
- < ${WRKSRC}/sample.cf > ${WRKSRC}/majordomo.cf
- ${SED} \
- -e 's:@PREFIX@:${PREFIX}:g' \
- -e 's:@HOME@:${MAJORDOMO_HOMEDIR}:g' \
- -e 's:@MAJORDOMO_USER@:${MAJORDOMO_USER}:g' \
- < ${FILESDIR}/aliases.majordomo > ${WRKSRC}/aliases.majordomo
+USERGROUP_PHASE= configure
+PKG_GROUPS= ${MAJORDOMO_GROUP}
+PKG_USERS= ${MAJORDOMO_USER}:${MAJORDOMO_GROUP}
+OWN_DIRS_PERMS+= ${MAJORDOMO_HOMEDIR}/${MAJORDOMO_USER} \
+ ${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0775
+OWN_DIRS_PERMS+= ${MAJORDOMO_HOMEDIR}/${MAJORDOMO_USER}/archives \
+ ${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0775
+OWN_DIRS_PERMS+= ${MAJORDOMO_HOMEDIR}/${MAJORDOMO_USER}/digests \
+ ${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0775
+OWN_DIRS_PERMS+= ${MAJORDOMO_HOMEDIR}/${MAJORDOMO_USER}/lists \
+ ${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0775
+
+CONFIGURE_SED= -e "s|@PREFIX@|${PREFIX}|g" \
+ -e "s|@PERL@|${PERL5}|g" \
+ -e "s|@HOME@|${MAJORDOMO_HOMEDIR}|g" \
+ -e "s|@MAJORDOMO_USER@|${MAJORDOMO_USER}|g" \
+ -e "s|@UID@|${PKG_UID.${MAJORDOMO_USER}}|g" \
+ -e "s|@GID@|${PKG_GID.${MAJORDOMO_GROUP}}|g" \
+ -e "s|@TMPDIR@|${MAJORDOMO_TMPDIR}|g"
+
+MESSAGE_SED= -e 's|$${PREFIX}|${PREFIX}|g' \
+ -e 's|$${HOME}|${HOME}|g' \
+ -e 's|$${MAJORDOMO_USER}|${MAJORDOMO_USER}|g' \
+ -e 's|$${MAJORDOMO_GROUP}|${MAJORDOMO_GROUP}|g' \
+
+do-configure:
+ ${SED} ${CONFIGURE_SED} ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.netbsd
+
+post-build:
+ ${SED} ${CONFIGURE_SED} ${WRKSRC}/sample.cf > ${WRKSRC}/majordomo.cf
+ ${SED} ${CONFIGURE_SED} ${FILESDIR}/aliases.majordomo \
+ > ${WRKSRC}/aliases.majordomo
+ ${SED} -e 's|$${PREFIX}|${PREFIX}|g' \
+ -e 's|$${HOME}|${HOME}|g' \
+ -e 's|$${MAJORDOMO_USER}|${MAJORDOMO_USER}|g' \
+ -e 's|$${MAJORDOMO_GROUP}|${MAJORDOMO_GROUP}|g' \
+ ${PKGDIR}/MESSAGE > ${WRKSRC}/post-install-notes
post-install:
${LN} -sf archive2.pl ${PREFIX}/libexec/majordomo/archive
@@ -115,7 +90,7 @@ post-install:
.for file in ${DOCDOCFILES}
${INSTALL_DATA} ${WRKSRC}/Doc/${file} ${DOCDIR}/${file}
.endfor
- ${INSTALL_DATA} ${MESSAGE} ${DOCDIR}/post-install-notes
+ ${INSTALL_DATA} ${WRKSRC}/post-install-notes ${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}
diff --git a/mail/majordomo/distinfo b/mail/majordomo/distinfo
index efb81aea801..b9aa41c9c07 100644
--- a/mail/majordomo/distinfo
+++ b/mail/majordomo/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.4 2005/07/23 14:44:39 he Exp $
+$NetBSD: distinfo,v 1.5 2006/06/16 17:11:25 jlam Exp $
SHA1 (majordomo-1.94.5.tgz) = 44b18c7b9133f2cd992f6e718551d613d9d45c00
RMD160 (majordomo-1.94.5.tgz) = 7f6b48fb5cc5b23948133658b055588d0d6608c4
Size (majordomo-1.94.5.tgz) = 312244 bytes
-SHA1 (patch-aa) = 7e7c3230c707c48f402e06ec1f021af1c2ba988b
+SHA1 (patch-aa) = 6cc6cd49eb6413489fb782a3bcac70baac99fa7f
SHA1 (patch-ab) = 68bdbd77029ebd8f113c492e50e60aa7efb35de9
SHA1 (patch-ac) = bea997e785b2656b1660a11efce759a56a700ab2
SHA1 (patch-ad) = 65370547240539128a405484e98c7ed15a869464
diff --git a/mail/majordomo/patches/patch-aa b/mail/majordomo/patches/patch-aa
index 3dedf9de183..8b24ca9d84b 100644
--- a/mail/majordomo/patches/patch-aa
+++ b/mail/majordomo/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.2 2001/03/27 11:53:18 agc Exp $
+$NetBSD: patch-aa,v 1.3 2006/06/16 17:11:25 jlam Exp $
--- Makefile.orig Wed Aug 27 16:56:21 1997
+++ Makefile Tue Mar 27 12:41:29 2001
@@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.2 2001/03/27 11:53:18 agc Exp $
# Put the location of your Perl binary here:
-PERL = /bin/perl
-+PERL = @LOCALBASE@/bin/perl
++PERL = @PERL@
# What do you call your C compiler?
CC = cc