summaryrefslogtreecommitdiff
path: root/mail/mailserv/Makefile
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2001-08-01 14:09:38 +0000
committerrh <rh@pkgsrc.org>2001-08-01 14:09:38 +0000
commitb40cb612e0d1bf670ce49433a937c8b2a7864e5f (patch)
tree21efcc372e42f87d2aa6e2edb36b1a1e60c8b4fe /mail/mailserv/Makefile
parentb335a408dd398c525f5a0180e8b38b6d3c8c3d7f (diff)
downloadpkgsrc-b40cb612e0d1bf670ce49433a937c8b2a7864e5f.tar.gz
Oops, forgot to install cgi-lib.pl. And while we are at it, install
documentation as well.
Diffstat (limited to 'mail/mailserv/Makefile')
-rw-r--r--mail/mailserv/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/mail/mailserv/Makefile b/mail/mailserv/Makefile
index 554143c08bf..367160b9a39 100644
--- a/mail/mailserv/Makefile
+++ b/mail/mailserv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/08/01 13:54:10 rh Exp $
+# $NetBSD: Makefile,v 1.2 2001/08/01 14:09:38 rh Exp $
#
DISTNAME= mailserv
@@ -15,16 +15,20 @@ USE_PERL5= YES
NO_BUILD= YES
do-configure:
+.for file in mailserv cgi-lib.pl
cd ${WRKSRC} && \
- ${CHMOD} 0755 mailserv && \
- ${CP} mailserv mailserv.old && \
- ${SED} < mailserv.old > mailserv \
+ ${CHMOD} 0755 ${file} && \
+ ${CP} ${file} ${file}.old && \
+ ${SED} < ${file}.old > ${file} \
-e "s|@PREFIX@|${PREFIX}|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} ${PREFIX}/etc/mailserv
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mailserv
.for cf in listproc listserv mail-list maiser majordomo-admin \
@@ -35,5 +39,9 @@ do-install:
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"