[package] create symlinks for mime and socket lua modules (#4828)
authorFlorian Fainelli <florian@openwrt.org>
Wed, 25 Mar 2009 11:05:15 +0000 (11:05 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 25 Mar 2009 11:05:15 +0000 (11:05 +0000)
SVN-Revision: 15037

lang/luasocket/Makefile

index ce83fb68d640db2b193a567e38d76b67e5cd6664..6fa01a2654554a6d3bd501e363a95c6cec50e454 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luasocket
 PKG_VERSION:=2.0.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/2664
@@ -48,6 +48,10 @@ define Package/luasocket/install
        $(INSTALL_DIR) $(1)/usr/lib/lua
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/mime.{so.1.0.2,lua} $(1)/usr/lib/lua
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/socket.{so.2.0.2,lua} $(1)/usr/lib/lua
+       $(INSTALL_DIR) $(1)/usr/lib/lua/mime
+       ln -sf ../mime.so.1.0.2 $(1)/usr/lib/lua/mime/core.so
+       $(INSTALL_DIR) $(1)/usr/lib/lua/socket
+       ln -sf ../socket.so.2.0.2 $(1)/usr/lib/lua/socket/core.so
 endef
 
 $(eval $(call BuildPackage,luasocket))