diff options
author | jlam <jlam@pkgsrc.org> | 2001-10-15 21:30:36 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-10-15 21:30:36 +0000 |
commit | 09923a76d98ad78bdc0f2e2d6393f07c5f15b27d (patch) | |
tree | dfd46ac2af1fed927e6790ca6c7e77b1d4d45e42 /mail/cyrus-imapd/Makefile | |
parent | 206f3f2e506a4268f90c1444186f988330b9a3ec (diff) | |
download | pkgsrc-09923a76d98ad78bdc0f2e2d6393f07c5f15b27d.tar.gz |
Rename the manpages {deliver,imapd,master,pop3d}.8 to cyrus-*.8 as well as
changing all cross-references to them. This prevents name collisions with
other packages' manpages. This addresses pkg/14245 by Kimmo Suominen
<kim@tac.nyc.ny.us> (cyrus: master(8) conflicts).
Diffstat (limited to 'mail/cyrus-imapd/Makefile')
-rw-r--r-- | mail/cyrus-imapd/Makefile | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/mail/cyrus-imapd/Makefile b/mail/cyrus-imapd/Makefile index f800a51dd94..ff410b8849d 100644 --- a/mail/cyrus-imapd/Makefile +++ b/mail/cyrus-imapd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2001/09/25 21:48:17 skrll Exp $ +# $NetBSD: Makefile,v 1.19 2001/10/15 21:30:36 jlam Exp $ DISTNAME= cyrus-imapd-2.0.16 CATEGORIES= mail @@ -66,8 +66,24 @@ PERL5_PACKLIST= \ ${PERL5_SITEARCH}/auto/Cyrus/SIEVE/acap/.packlist \ ${PERL5_SITEARCH}/auto/Cyrus/SIEVE/managesieve/.packlist -post-extract: - cd ${WRKSRC}/man; ${MV} imapd.8 cyrus-imapd.8 +# Change references of some manpages from foo.8 to cyrus-foo.8 to avoid +# manpage conflicts with other packages. +# +post-patch: + cd ${WRKSRC}/man; \ + for man in deliver.8 imapd.8 master.8 pop3d.8; do \ + ${MV} $${man} cyrus-$${man}; \ + name=$${man%.*}; \ + suffix=$${man##*.}; \ + for file in *.[0-9]*; do \ + ${SED} -e "s|\(\\fB\)\($${name}($${suffix})\)|\1cyrus-\2|g" \ + $${file} > $${file}.fixed; \ + ${MV} -f $${file}.fixed $${file}; \ + done; \ + ${SED} -e "s|\(\$$(srcdir)/\)\($${man}\)|\1cyrus-\2|g" \ + Makefile.in > Makefile.in.fixed; \ + ${MV} -f Makefile.in.fixed Makefile.in; \ + done pre-install: ${SED} -e "s,@AWK@,${AWK},g" \ |