patch-Makefile_PL 915 B

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-Makefile_PL,v 1.3 2016/04/17 18:55:49 afresh1 Exp $
  2. --- Makefile.PL.orig Tue May 8 23:47:53 2007
  3. +++ Makefile.PL Fri Feb 5 11:39:03 2016
  4. @@ -58,7 +58,7 @@ MAN5PODS = docs/razor-agent.conf.pod \
  5. docs/razor-whitelist.pod \
  6. docs/razor-agents.pod
  7. INST_MAN5DIR = blib/man5
  8. -INSTALLMAN5DIR = $(DESTDIR)$(PREFIX)/share/man/man5
  9. +INSTALLMAN5DIR = $(DESTDIR)$(PREFIX)/man/man5
  10. INSTALLSITEMAN5DIR = $(DESTDIR)$(SITEPREFIX)/share/man/man5
  11. INSTALLVENDORMAN5DIR = $(DESTDIR)$(VENDORPREFIX)/share/man/man5
  12. MAN5EXT = 5
  13. @@ -139,10 +139,9 @@ sub MY::install {
  14. my $self = shift;
  15. my $inherited = $self->SUPER::install(@_);
  16. - my $man5 = q{ \\
  17. - $(INST_MAN5DIR) $(INSTALLMAN5DIR)};
  18. + $inherited =~ s{(\$\((?:DEST)?INSTALL\w*MAN1DIR\)("?))}{$1 \\
  19. + $2\$(INST_MAN5DIR)$2 $2\$(INSTALLMAN5DIR)$2}gm;
  20. - $inherited =~ s/(\$\((?:DEST)?INSTALL\w*MAN1DIR\))/$1$man5/gm;
  21. return $inherited;
  22. }