pkgsrc/mail/mailserv/Makefile
jlam 9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00

57 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2006/03/04 21:30:00 jlam Exp $
#
DISTNAME= mailserv
PKGNAME= ${DISTNAME}-3.29
CATEGORIES= mail
MASTER_SITES= http://www.csicop.org/~fitz/www/mailserv/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.csicop.org/~fitz/www/mailserv/
COMMENT= WWW interface to several types of mailing list servers
WRKSRC= ${WRKDIR}
DIST_SUBDIR= ${PKGNAME_NOREV}
USE_TOOLS+= perl:run
NO_BUILD= YES
PKG_SYSCONFSUBDIR= mailserv
EGDIR= ${PREFIX}/share/examples/mailserv
CONF_FILES=
.for cf in listproc listserv mail-list maiser majordomo-admin \
majordomo-share majordomo mlp pmdf smartlist subscribe
CONF_FILES+= ${EGDIR}/${cf}.cf ${PKG_SYSCONFDIR}/${cf}.cf
.endfor
INSTALLATION_DIRS= libexec/cgi-bin
do-configure:
.for file in mailserv cgi-lib.pl
cd ${WRKSRC} && \
${CHMOD} 0755 ${file} && \
${CP} ${file} ${file}.old && \
${SED} < ${file}.old > ${file} \
-e "s|@PREFIX@|${PREFIX}|g" \
-e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
-e "s|/usr/local/bin/perl|${PREFIX}/bin/perl|g" \
-e "s|/usr/bin/perl|${PREFIX}/bin/perl|g"
.endfor
do-install:
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/cgi-bin/mailserv
${INSTALL_SCRIPT} ${WRKSRC}/mailserv ${PREFIX}/libexec/cgi-bin/mailserv
${INSTALL_SCRIPT} ${WRKSRC}/cgi-lib.pl ${PREFIX}/libexec/cgi-bin/mailserv
${INSTALL_DATA_DIR} ${EGDIR}
.for cf in listproc listserv mail-list maiser majordomo-admin \
majordomo-share majordomo mlp pmdf smartlist subscribe
${INSTALL_DATA} ${WRKSRC}/${cf}.cf ${EGDIR}
cd ${PREFIX}/libexec/cgi-bin/mailserv && \
${LN} -s mailserv ${cf}
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailserv
.for doc in ChangeLog LICENSE README
${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/mailserv
.endfor
.include "../../mk/bsd.pkg.mk"