2001-09-09 22:36:07 +02:00
|
|
|
# $NetBSD: Makefile,v 1.3 2001/09/09 20:36:34 agc Exp $
|
2001-08-01 15:54:10 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= mailserv
|
|
|
|
PKGNAME= ${DISTNAME}-3.27
|
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= http://www.csicop.org/~fitz/www/mailserv/
|
|
|
|
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.csicop.org/~fitz/www/mailserv/
|
|
|
|
COMMENT= WWW interface to several types of mailing list servers
|
|
|
|
|
|
|
|
USE_PERL5= YES
|
|
|
|
NO_BUILD= YES
|
2001-09-09 22:36:07 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
2001-08-01 15:54:10 +02:00
|
|
|
|
|
|
|
do-configure:
|
2001-08-01 16:09:38 +02:00
|
|
|
.for file in mailserv cgi-lib.pl
|
2001-08-01 15:54:10 +02:00
|
|
|
cd ${WRKSRC} && \
|
2001-08-01 16:09:38 +02:00
|
|
|
${CHMOD} 0755 ${file} && \
|
|
|
|
${CP} ${file} ${file}.old && \
|
|
|
|
${SED} < ${file}.old > ${file} \
|
2001-08-01 15:54:10 +02:00
|
|
|
-e "s|@PREFIX@|${PREFIX}|g" \
|
2001-08-01 16:09:38 +02:00
|
|
|
-e "s|/usr/local/bin/perl|${PREFIX}/bin/perl|g" \
|
2001-08-01 15:54:10 +02:00
|
|
|
-e "s|/usr/bin/perl|${PREFIX}/bin/perl|g"
|
2001-08-01 16:09:38 +02:00
|
|
|
.endfor
|
2001-08-01 15:54:10 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/cgi-bin/mailserv
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mailserv ${PREFIX}/libexec/cgi-bin/mailserv
|
2001-08-01 16:09:38 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/cgi-lib.pl ${PREFIX}/libexec/cgi-bin/mailserv
|
2001-08-01 15:54:10 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/etc/mailserv
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mailserv
|
|
|
|
.for cf in listproc listserv mail-list maiser majordomo-admin \
|
|
|
|
majordomo-share majordomo mlp pmdf smartlist subscribe
|
|
|
|
[ -f ${PREFIX}/etc/mailserv/${cf}.cf ] || \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${cf}.cf ${PREFIX}/etc/mailserv
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${cf}.cf ${PREFIX}/share/examples/mailserv
|
|
|
|
cd ${PREFIX}/libexec/cgi-bin/mailserv && \
|
|
|
|
${LN} -s mailserv ${cf}
|
|
|
|
.endfor
|
2001-08-01 16:09:38 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailserv
|
|
|
|
.for doc in ChangeLog LICENSE README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/mailserv
|
|
|
|
.endfor
|
2001-08-01 15:54:10 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|