2021-05-24 21:49:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.60 2021/05/24 19:52:42 wiz Exp $
|
1999-06-08 19:51:25 +02:00
|
|
|
|
2001-04-13 03:42:32 +02:00
|
|
|
DISTNAME= majordomo-1.94.5
|
2021-05-24 21:49:01 +02:00
|
|
|
PKGREVISION= 27
|
1999-06-08 19:51:25 +02:00
|
|
|
CATEGORIES= mail
|
2021-04-21 10:53:30 +02:00
|
|
|
MASTER_SITES+= # ftp://ftp-europe.sgi.com/other/majordomo/1.94.5/
|
2011-10-28 08:16:12 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
1999-06-08 19:51:25 +02:00
|
|
|
|
2010-10-16 12:30:56 +02:00
|
|
|
MAINTAINER= spz@NetBSD.org
|
2017-11-06 14:27:55 +01:00
|
|
|
HOMEPAGE= https://www.greatcircle.com/majordomo/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= The Majordomo mailing list manager
|
2010-10-29 23:51:21 +02:00
|
|
|
|
2001-06-04 23:46:57 +02:00
|
|
|
LICENSE= majordomo-license
|
|
|
|
|
2010-10-29 23:51:21 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
MAKE_JOBS_SAFE= NO
|
|
|
|
|
|
|
|
RESTRICTED= No distribution of modified binary packages to the general public
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
2010-10-16 12:30:56 +02:00
|
|
|
|
2010-10-29 23:51:21 +02:00
|
|
|
CONFLICTS+= bounce-[0-9]*
|
2006-01-06 03:35:32 +01:00
|
|
|
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
1999-06-08 19:51:25 +02:00
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= wrapper
|
1999-06-08 19:51:25 +02:00
|
|
|
INSTALL_TARGET= install install-wrapper
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= Makefile.netbsd
|
1999-06-08 19:51:25 +02:00
|
|
|
|
2010-10-29 23:51:21 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2010-11-02 09:01:08 +01:00
|
|
|
PKG_SYSCONFSUBDIR= majordomo
|
|
|
|
CONF_FILES+= ${EXAMPLEDIR}/aliases.majordomo ${PKG_SYSCONFDIR}/aliases
|
2010-11-09 08:09:58 +01:00
|
|
|
CONF_FILES+= ${EXAMPLEDIR}/majordomo.cf ${MAJORDOMO_CF}
|
2010-11-02 09:01:08 +01:00
|
|
|
|
2010-10-29 23:51:21 +02:00
|
|
|
MAJORDOMO_HOMEDIR?= ${VARBASE}/majordomo
|
2010-10-31 01:48:35 +02:00
|
|
|
MAJORDOMO_TMPDIR?= ${VARBASE}/majordomo/tmp
|
2010-11-02 09:01:08 +01:00
|
|
|
MAJORDOMO_CF?= ${PKG_SYSCONFDIR}/majordomo.cf
|
1999-06-08 19:51:25 +02:00
|
|
|
MAJORDOMO_USER?= majordom
|
|
|
|
MAJORDOMO_GROUP?= majordom
|
|
|
|
|
2010-10-29 23:51:21 +02:00
|
|
|
PKG_GECOS.${MAJORDOMO_USER}= Majordomo Mailinglist Manager
|
|
|
|
PKG_HOME.${MAJORDOMO_USER}= ${MAJORDOMO_HOMEDIR}
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= MAJORDOMO_GROUP
|
|
|
|
PKG_USERS_VARS+= MAJORDOMO_USER
|
|
|
|
|
2006-03-10 21:08:57 +01:00
|
|
|
MESSAGE_SUBST+= HOME=${MAJORDOMO_HOMEDIR} \
|
2010-10-29 23:51:21 +02:00
|
|
|
MAJORDOMO_CF=${MAJORDOMO_CF} \
|
2006-03-10 21:08:57 +01:00
|
|
|
MAJORDOMO_USER=${MAJORDOMO_USER} \
|
2001-01-29 12:34:21 +01:00
|
|
|
MAJORDOMO_GROUP=${MAJORDOMO_GROUP}
|
1999-09-06 10:08:17 +02:00
|
|
|
|
1999-06-08 19:51:25 +02:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/majordomo
|
|
|
|
DOCFILES= Changelog FUTURE INSTALL LICENSE NEWLIST README
|
2000-12-08 11:09:22 +01:00
|
|
|
DOCDOCFILES= FAQ README.sequencer list-owner-info \
|
|
|
|
majordomo-faq.html majordomo.lisa6.ps majordomo.ora
|
1999-06-08 19:51:25 +02:00
|
|
|
|
2010-10-29 23:51:21 +02:00
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/majordomo
|
2000-12-08 11:09:22 +01:00
|
|
|
EXDIRS= archives archives/example-l digests \
|
|
|
|
digests/example-l-digest lists
|
1999-06-08 19:51:25 +02:00
|
|
|
EXFILES= example-l.passwd example-l.info
|
|
|
|
EXLISTS= example-l example-l-digest
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
BUILD_DEFS+= MAJORDOMO_TMPDIR
|
2010-10-29 23:51:21 +02:00
|
|
|
BUILD_DEFS+= MAJORDOMO_HOMEDIR
|
|
|
|
BUILD_DEFS+= MAJORDOMO_CF
|
|
|
|
BUILD_DEFS+= VARBASE
|
1999-08-18 10:46:53 +02:00
|
|
|
|
2006-06-16 19:11:25 +02:00
|
|
|
USERGROUP_PHASE= configure
|
|
|
|
PKG_GROUPS= ${MAJORDOMO_GROUP}
|
|
|
|
PKG_USERS= ${MAJORDOMO_USER}:${MAJORDOMO_GROUP}
|
2010-10-29 23:51:21 +02:00
|
|
|
OWN_DIRS_PERMS+= ${MAJORDOMO_HOMEDIR} \
|
2011-01-29 18:16:32 +01:00
|
|
|
${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0755
|
2010-10-29 23:51:21 +02:00
|
|
|
OWN_DIRS_PERMS+= ${MAJORDOMO_HOMEDIR}/archives \
|
2011-01-29 18:16:32 +01:00
|
|
|
${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0755
|
2010-10-29 23:51:21 +02:00
|
|
|
OWN_DIRS_PERMS+= ${MAJORDOMO_HOMEDIR}/digests \
|
2011-01-29 18:16:32 +01:00
|
|
|
${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0755
|
2010-10-29 23:51:21 +02:00
|
|
|
OWN_DIRS_PERMS+= ${MAJORDOMO_HOMEDIR}/lists \
|
2011-01-29 18:16:32 +01:00
|
|
|
${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0755
|
2010-10-29 23:51:21 +02:00
|
|
|
OWN_DIRS_PERMS+= ${MAJORDOMO_TMPDIR} \
|
2011-01-29 18:16:32 +01:00
|
|
|
${MAJORDOMO_USER} ${MAJORDOMO_GROUP} 0755
|
2006-06-16 19:11:25 +02:00
|
|
|
|
|
|
|
CONFIGURE_SED= -e "s|@PREFIX@|${PREFIX}|g" \
|
|
|
|
-e "s|@PERL@|${PERL5}|g" \
|
|
|
|
-e "s|@HOME@|${MAJORDOMO_HOMEDIR}|g" \
|
2010-10-29 23:51:21 +02:00
|
|
|
-e "s|@MAJORDOMO_CF@|${MAJORDOMO_CF}|g" \
|
2006-06-16 19:11:25 +02:00
|
|
|
-e "s|@MAJORDOMO_USER@|${MAJORDOMO_USER}|g" \
|
2010-10-31 01:48:35 +02:00
|
|
|
-e "s|@MAJORDOMO_GROUP@|${MAJORDOMO_GROUP}|g" \
|
2006-06-16 19:11:25 +02:00
|
|
|
-e "s|@TMPDIR@|${MAJORDOMO_TMPDIR}|g"
|
|
|
|
|
|
|
|
MESSAGE_SED= -e 's|$${PREFIX}|${PREFIX}|g' \
|
|
|
|
-e 's|$${HOME}|${HOME}|g' \
|
2010-10-29 23:51:21 +02:00
|
|
|
-e 's|$${MAJORDOMO_CF}|${MAJORDOMO_CF}|g' \
|
2006-06-16 19:11:25 +02:00
|
|
|
-e 's|$${MAJORDOMO_USER}|${MAJORDOMO_USER}|g' \
|
2010-10-29 23:51:21 +02:00
|
|
|
-e 's|$${MAJORDOMO_GROUP}|${MAJORDOMO_GROUP}|g'
|
2006-06-16 19:11:25 +02:00
|
|
|
|
2010-10-31 01:48:35 +02:00
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}
|
|
|
|
|
2010-10-29 23:51:21 +02:00
|
|
|
INSTALLATION_DIRS+= ${PREFIX}/bin
|
|
|
|
INSTALLATION_DIRS+= ${PREFIX}/libexec/majordomo
|
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
|
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man8
|
2010-02-19 19:49:41 +01:00
|
|
|
|
2006-06-16 19:11:25 +02:00
|
|
|
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' \
|
2010-10-29 23:51:21 +02:00
|
|
|
-e 's|$${MAJORDOMO_CF}|${MAJORDOMO_CF}|g' \
|
2006-06-16 19:11:25 +02:00
|
|
|
-e 's|$${MAJORDOMO_USER}|${MAJORDOMO_USER}|g' \
|
|
|
|
-e 's|$${MAJORDOMO_GROUP}|${MAJORDOMO_GROUP}|g' \
|
|
|
|
${PKGDIR}/MESSAGE > ${WRKSRC}/post-install-notes
|
1999-06-08 19:51:25 +02:00
|
|
|
|
|
|
|
post-install:
|
2010-10-29 23:51:21 +02:00
|
|
|
${LN} -sf archive2.pl ${DESTDIR}${PREFIX}/libexec/majordomo/archive
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
|
1999-06-08 19:51:25 +02:00
|
|
|
.for file in ${DOCFILES}
|
2010-10-29 23:51:21 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${DOCDIR}/${file}
|
1999-06-08 19:51:25 +02:00
|
|
|
.endfor
|
|
|
|
.for file in ${DOCDOCFILES}
|
2010-10-29 23:51:21 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Doc/${file} ${DESTDIR}${DOCDIR}/${file}
|
1999-06-08 19:51:25 +02:00
|
|
|
.endfor
|
2010-10-29 23:51:21 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/post-install-notes ${DESTDIR}${DOCDIR}/post-install-notes
|
2011-01-29 18:16:32 +01:00
|
|
|
${INSTALL} -d -m 755 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} ${DESTDIR}${EXAMPLEDIR}
|
1999-06-08 19:51:25 +02:00
|
|
|
.for dir in ${EXDIRS}
|
2011-01-29 18:16:32 +01:00
|
|
|
${INSTALL} -d -m 755 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} ${DESTDIR}${EXAMPLEDIR}/${dir}
|
1999-06-08 19:51:25 +02:00
|
|
|
.endfor
|
2011-01-29 18:16:32 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/aliases.majordomo \
|
|
|
|
${DESTDIR}${EXAMPLEDIR}/aliases.majordomo
|
|
|
|
${INSTALL} -m 644 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \
|
2010-10-29 23:51:21 +02:00
|
|
|
${FILESDIR}/keep_me ${DESTDIR}${EXAMPLEDIR}/archives/example-l/.keep_me
|
2011-01-29 18:16:32 +01:00
|
|
|
${INSTALL} -m 644 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \
|
2010-10-29 23:51:21 +02:00
|
|
|
${FILESDIR}/keep_me ${DESTDIR}${EXAMPLEDIR}/digests/example-l-digest/.keep_me
|
1999-06-08 19:51:25 +02:00
|
|
|
.for file in ${EXFILES}
|
2011-01-29 18:16:32 +01:00
|
|
|
${INSTALL} -m 644 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \
|
2010-10-29 23:51:21 +02:00
|
|
|
${FILESDIR}/${file} ${DESTDIR}${EXAMPLEDIR}/lists/${file}
|
1999-06-08 19:51:25 +02:00
|
|
|
.endfor
|
|
|
|
.for file in ${EXLISTS}
|
2011-01-29 18:16:32 +01:00
|
|
|
${INSTALL} -m 644 -o ${MAJORDOMO_USER} -g ${MAJORDOMO_GROUP} \
|
2010-10-29 23:51:21 +02:00
|
|
|
/dev/null ${DESTDIR}${EXAMPLEDIR}/lists/${file}
|
1999-06-08 19:51:25 +02:00
|
|
|
.endfor
|
2010-10-29 23:51:21 +02:00
|
|
|
${LN} -sf example-l.info ${DESTDIR}${EXAMPLEDIR}/lists/example-l-digest.info
|
|
|
|
${LN} -sf example-l.passwd ${DESTDIR}${EXAMPLEDIR}/lists/example-l-digest.passwd
|
2011-01-29 18:16:32 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/majordomo.cf \
|
|
|
|
${DESTDIR}${EXAMPLEDIR}/majordomo.cf
|
1999-06-08 19:51:25 +02:00
|
|
|
|
|
|
|
# verify installation; requires interaction
|
2001-01-29 12:34:21 +01:00
|
|
|
test: install
|
2010-10-29 23:51:21 +02:00
|
|
|
${DESTDIR}${PREFIX}/libexec/majordomo/wrapper config-test
|
1999-06-08 19:51:25 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|