summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GNUmakefile11
-rw-r--r--src/openssl.pubkey.lua2
2 files changed, 11 insertions, 2 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index 74a19fe..3fe2f65 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -123,8 +123,15 @@ $$(DESTDIR)$(3)/openssl/%.lua: $$(d)/openssl.%.lua
123 $$(MKDIR) -p $$(@D) 123 $$(MKDIR) -p $$(@D)
124 $$(CP) -p $$< $$@ 124 $$(CP) -p $$< $$@
125 125
126$$(DESTDIR)$(3)/openssl/pubkey.lua: $$(DESTDIR)$(3)/openssl/pkey.lua 126# pubkey.lua used to be symbolic link to pkey.lua, but that caused packaging
127 cd $$(@D) && $(LN_S) -f $$(<F) $$(@F) 127# headaches. Now it's a stub, but the cp -p in the inference rule will copy
128# to the target of the symbolic link, so we need a special install rule to
129# clean up the mess.
130$$(DESTDIR)$(3)/openssl/pubkey.lua: $$(d)/openssl.pubkey.lua
131 $$(LUAC$(1)_$(d)) -p $$<
132 $$(MKDIR) -p $$(@D)
133 $$(RM) -f $$@
134 $$(CP) -p $$< $$@
128 135
129$$(DESTDIR)$(3)/openssl/x509/%.lua: $$(d)/openssl.x509.%.lua 136$$(DESTDIR)$(3)/openssl/x509/%.lua: $$(d)/openssl.x509.%.lua
130 $$(LUAC$(1)_$(d)) -p $$< 137 $$(LUAC$(1)_$(d)) -p $$<
diff --git a/src/openssl.pubkey.lua b/src/openssl.pubkey.lua
new file mode 100644
index 0000000..91bc8b9
--- /dev/null
+++ b/src/openssl.pubkey.lua
@@ -0,0 +1,2 @@
1-- for backwards compatibility
2return require "openssl.pkey"