| @@ -1,32 +1,34 @@ | | | @@ -1,32 +1,34 @@ |
1 | $NetBSD: patch-Configurations_unix-Makefile.tmpl,v 1.2 2020/03/31 15:02:31 sevan Exp $ | | 1 | $NetBSD: patch-Configurations_unix-Makefile.tmpl,v 1.3 2020/09/29 05:45:04 martin Exp $ |
2 | | | 2 | |
3 | Use pkgsrc layout. | | 3 | Use pkgsrc layout. |
4 | Do not install HTML documentation. | | 4 | Do not install HTML documentation. |
| | | 5 | Avoid -B $NUM argument to m4 (ignored by most m4 implementations, not |
| | | 6 | supported by others) |
5 | | | 7 | |
6 | --- Configurations/unix-Makefile.tmpl.orig 2020-03-31 14:23:39.098512410 +0000 | | 8 | --- Configurations/unix-Makefile.tmpl.orig 2020-04-21 14:22:39.000000000 +0200 |
7 | +++ Configurations/unix-Makefile.tmpl | | 9 | +++ Configurations/unix-Makefile.tmpl 2020-09-28 15:17:07.747914097 +0200 |
8 | @@ -274,8 +274,9 @@ libdir={- File::Spec::Win32->file_name_i | | 10 | @@ -274,8 +274,9 @@ |
9 | ? $libdir : '$(INSTALLTOP)/$(LIBDIR)' -} | | 11 | ? $libdir : '$(INSTALLTOP)/$(LIBDIR)' -} |
10 | {- output_on() if $config{target} !~ /^mingw/; "" -} | | 12 | {- output_on() if $config{target} !~ /^mingw/; "" -} |
11 | | | 13 | |
12 | -MANDIR=$(INSTALLTOP)/share/man | | 14 | -MANDIR=$(INSTALLTOP)/share/man |
13 | +MANDIR=$(INSTALLTOP)/$(PKGMANDIR) | | 15 | +MANDIR=$(INSTALLTOP)/$(PKGMANDIR) |
14 | DOCDIR=$(INSTALLTOP)/share/doc/$(BASENAME) | | 16 | DOCDIR=$(INSTALLTOP)/share/doc/$(BASENAME) |
15 | +EXAMPLEDIR=$(INSTALLTOP)/share/examples/openssl | | 17 | +EXAMPLEDIR=$(INSTALLTOP)/share/examples/openssl |
16 | HTMLDIR=$(DOCDIR)/html | | 18 | HTMLDIR=$(DOCDIR)/html |
17 | | | 19 | |
18 | # MANSUFFIX is for the benefit of anyone who may want to have a suffix | | 20 | # MANSUFFIX is for the benefit of anyone who may want to have a suffix |
19 | @@ -544,54 +545,54 @@ install_sw: install_dev install_engines | | 21 | @@ -544,54 +545,54 @@ |
20 | | | 22 | |
21 | uninstall_sw: uninstall_runtime uninstall_engines uninstall_dev | | 23 | uninstall_sw: uninstall_runtime uninstall_engines uninstall_dev |
22 | | | 24 | |
23 | -install_docs: install_man_docs install_html_docs | | 25 | -install_docs: install_man_docs install_html_docs |
24 | +install_docs: install_man_docs | | 26 | +install_docs: install_man_docs |
25 | | | 27 | |
26 | uninstall_docs: uninstall_man_docs uninstall_html_docs | | 28 | uninstall_docs: uninstall_man_docs uninstall_html_docs |
27 | $(RM) -r "$(DESTDIR)$(DOCDIR)" | | 29 | $(RM) -r "$(DESTDIR)$(DOCDIR)" |
28 | | | 30 | |
29 | install_ssldirs: | | 31 | install_ssldirs: |
30 | - @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/certs" | | 32 | - @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/certs" |
31 | - @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/private" | | 33 | - @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/private" |
32 | - @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/misc" | | 34 | - @$(PERL) $(SRCDIR)/util/mkdir-p.pl "$(DESTDIR)$(OPENSSLDIR)/misc" |
| @@ -90,13 +92,22 @@ Do not install HTML documentation. | | | @@ -90,13 +92,22 @@ Do not install HTML documentation. |
90 | - cp $(SRCDIR)/apps/ct_log_list.cnf "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf"; \ | | 92 | - cp $(SRCDIR)/apps/ct_log_list.cnf "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf"; \ |
91 | - chmod 644 "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf"; \ | | 93 | - chmod 644 "$(DESTDIR)$(OPENSSLDIR)/ct_log_list.cnf"; \ |
92 | + @$(ECHO) "install $(SRCDIR)/apps/ct_log_list.cnf -> $(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.dist" | | 94 | + @$(ECHO) "install $(SRCDIR)/apps/ct_log_list.cnf -> $(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.dist" |
93 | + @cp $(SRCDIR)/apps/ct_log_list.cnf "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.new" | | 95 | + @cp $(SRCDIR)/apps/ct_log_list.cnf "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.new" |
94 | + @chmod 644 "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.new" | | 96 | + @chmod 644 "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.new" |
95 | + @mv -f "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.new" "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.dist" | | 97 | + @mv -f "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.new" "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf.dist" |
96 | + @if [ ! -f "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf" ]; then \ | | 98 | + @if [ ! -f "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf" ]; then \ |
97 | + $(ECHO) "install $(SRCDIR)/apps/ct_log_list.cnf -> $(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf"; \ | | 99 | + $(ECHO) "install $(SRCDIR)/apps/ct_log_list.cnf -> $(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf"; \ |
98 | + cp $(SRCDIR)/apps/ct_log_list.cnf "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf"; \ | | 100 | + cp $(SRCDIR)/apps/ct_log_list.cnf "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf"; \ |
99 | + chmod 644 "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf"; \ | | 101 | + chmod 644 "$(DESTDIR)$(EXAMPLEDIR)/ct_log_list.cnf"; \ |
100 | fi | | 102 | fi |
101 | | | 103 | |
102 | install_dev: install_runtime_libs | | 104 | install_dev: install_runtime_libs |
| | | 105 | @@ -1058,7 +1059,7 @@ |
| | | 106 | if ($args{generator}->[0] =~ /\.pl$/) { |
| | | 107 | $generator = 'CC="$(CC)" $(PERL)'.$generator_incs.' '.$generator; |
| | | 108 | } elsif ($args{generator}->[0] =~ /\.m4$/) { |
| | | 109 | - $generator = 'm4 -B 8192'.$generator_incs.' '.$generator.' >' |
| | | 110 | + $generator = 'm4 '.$generator_incs.' '.$generator.' >' |
| | | 111 | } elsif ($args{generator}->[0] =~ /\.S$/) { |
| | | 112 | $generator = undef; |
| | | 113 | } else { |