diff options
author | william <william@25tandclement.com> | 2014-03-27 22:57:09 -0700 |
---|---|---|
committer | william <william@25tandclement.com> | 2014-03-27 22:57:09 -0700 |
commit | ea88fea73260424a1724a6ef5ecb0aa5dce68ba7 (patch) | |
tree | 62abe950e44cf911130426a4b7931e4e6a07f70b /src | |
parent | 8e755dcc092f0f46e7ff847d9672bfa7dde834c5 (diff) | |
download | luaossl-ea88fea73260424a1724a6ef5ecb0aa5dce68ba7.tar.gz luaossl-ea88fea73260424a1724a6ef5ecb0aa5dce68ba7.tar.bz2 luaossl-ea88fea73260424a1724a6ef5ecb0aa5dce68ba7.zip |
rename pubkey.lua to pkey.lua and create symlink on install for backward compatability
Diffstat (limited to 'src')
-rw-r--r-- | src/GNUmakefile | 4 | ||||
-rw-r--r-- | src/openssl.pkey.lua | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile index 295eb89..76f045b 100644 --- a/src/GNUmakefile +++ b/src/GNUmakefile @@ -81,6 +81,7 @@ LUAC$(1)_$(d) = $$(or $$(call LUAPATH_$(d), $(1), luac), true) MODS$(1)_$(d) = \ $$(DESTDIR)$(2)/_openssl.so \ $$(DESTDIR)$(3)/openssl/bignum.lua \ + $$(DESTDIR)$(3)/openssl/pkey.lua \ $$(DESTDIR)$(3)/openssl/pubkey.lua \ $$(DESTDIR)$(3)/openssl/x509.lua \ $$(DESTDIR)$(3)/openssl/x509/name.lua \ @@ -105,6 +106,9 @@ $$(DESTDIR)$(3)/openssl/%.lua: $$(d)/openssl.%.lua $$(MKDIR) -p $$(@D) $$(CP) -p $$< $$@ +$$(DESTDIR)$(3)/openssl/pubkey.lua: $$(DESTDIR)$(3)/openssl/pkey.lua + cd $$(@D) && $(LN_S) -f $$(<F) $$(@F) + $$(DESTDIR)$(3)/openssl/x509/%.lua: $$(d)/openssl.x509.%.lua $$(LUAC$(1)_$(d)) -p $$< $$(MKDIR) -p $$(@D) diff --git a/src/openssl.pkey.lua b/src/openssl.pkey.lua new file mode 100644 index 0000000..2cbd6d2 --- /dev/null +++ b/src/openssl.pkey.lua @@ -0,0 +1,4 @@ +local pkey = require"_openssl.pkey" + +return pkey + |