pkgsrc/mail/nmh/patches/patch-cj
jmmv a75aaa5d10 Make this package honour PKG_SYSCONFDIR by copying the configuration files
into the examples hierarchy and using bsd.pkg.install.mk to copy them into
place.  While here, sort PLIST.  Bump PKGREVISION to 6.

Patch from PR pkg/28978 made by Greg A. Woods with very slight modifications
by me.
2005-01-16 19:19:46 +00:00

59 lines
1.6 KiB
Text

$NetBSD: patch-cj,v 1.2 2005/01/16 19:19:46 jmmv Exp $
Add manual links for folders and flists (PR#23466).
--- man/Makefile.in.orig 2000-01-27 20:14:58.000000000 +0000
+++ man/Makefile.in 2004-01-02 20:38:09.000000000 +0000
@@ -17,6 +17,7 @@
bindir = @bindir@
libdir = @libdir@
etcdir = @sysconfdir@
+egdir = @prefix@/share/examples/nmh
mandir = @mandir@
manext1 = 1
manext5 = 5
@@ -78,6 +79,9 @@
fmtdump.$(manext8) install-mh.$(manext8) mh-mts.$(manext8) \
post.$(manext8)
+LINK1 = flist.$(manext1) flists.$(manext1) \
+ folder.$(manext1) folders.$(manext1)
+
# source for man pages
DIST_MAN = ali.man anno.man ap.man burst.man comp.man conflict.man \
dist.man dp.man flist.man fmtdump.man folder.man forw.man \
@@ -129,8 +133,8 @@
# install the include file for man pages
install-hdr:
- $(top_srcdir)/mkinstalldirs $(etcdir)
- $(INSTALL_DATA) tmac.h $(etcdir)/tmac.h
+ $(top_srcdir)/mkinstalldirs $(egdir)
+ $(INSTALL_DATA) tmac.h $(egdir)/tmac.h
# install the man pages in man1
install-man1:
@@ -138,6 +142,14 @@
for file in $(MAN1); do \
$(INSTALL_DATA) $$file $(mandir)/man$(manext1) ; \
done
+ set $(LINK1); \
+ while test $$# -ge 2; do \
+ name=$$1; shift; \
+ link=$$1; shift; \
+ ln -sf $(mandir)/man$(manext1)/$${name} \
+ $(mandir)/man$(manext1)/$${link};\
+ done
+
# install the man pages in man5
install-man5:
@@ -163,7 +175,7 @@
# uninstall the include file for man pages
uninstall-hdr:
- rm -f $(etcdir)/tmac.h
+ rm -f $(egdir)/tmac.h
# uninstall the man pages in man1
uninstall-man1: