From: Bernhard Tittelbach Date: Tue, 16 Mar 2010 11:42:34 +0000 (+0000) Subject: openwrt packages X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=77943b67258192f9de39c49d031485771f49a764;p=svn42.git openwrt packages --- diff --git a/openwrt-packages/luaunixsocket/Makefile b/openwrt-packages/luaunixsocket/Makefile new file mode 100644 index 0000000..a746e0e --- /dev/null +++ b/openwrt-packages/luaunixsocket/Makefile @@ -0,0 +1,64 @@ +# +# Copyright (C) 2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=luaunixsocket +PKG_VERSION:=2.0.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=luasocket-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/2664 +PKG_MD5SUM:=41445b138deb7bcfe97bff957503da8e + +include $(INCLUDE_DIR)/package.mk + +define Package/luaunixsocket + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=LuaUnixSocket + URL:=http://luasocket.luaforge.net/ + DEPENDS:=+luasocket +endef + +define Package/luaunixsocket/description + LuaSocket is the most comprehensive networking support + library for the Lua language. It provides easy access to + TCP, UDP, DNS, SMTP, FTP, HTTP, MIME and much more. +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) + /bin/tar -C $(PKG_BUILD_DIR) -x --strip-components 1 -f $(DL_DIR)/$(PKG_SOURCE) +endef + +define Build/Configure +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR)/ \ + LIBDIR="$(TARGET_LDFLAGS)" \ + CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -std=gnu99" \ + LD="$(TARGET_CROSS)ld -shared" \ + all + $(MAKE) -C $(PKG_BUILD_DIR)/src/ \ + LIBDIR="$(TARGET_LDFLAGS)" \ + CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -std=gnu99" \ + LD="$(TARGET_CROSS)ld -shared" \ + unix.so +endef + + +define Package/luaunixsocket/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/unix.so $(1)/usr/lib/lua + $(INSTALL_DIR) $(1)/usr/lib/lua/socket + ln -sf ../unix.so $(1)/usr/lib/lua/socket/unix.so +endef + +$(eval $(call BuildPackage,luaunixsocket)) diff --git a/openwrt-packages/powersensordaemon/Makefile b/openwrt-packages/powersensordaemon/Makefile new file mode 100644 index 0000000..daa1135 --- /dev/null +++ b/openwrt-packages/powersensordaemon/Makefile @@ -0,0 +1,37 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=powersensordaemon +PKG_VERSION:=0.5 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/powersensordaemon + +include $(INCLUDE_DIR)/package.mk + +define Package/powersensordaemon + SECTION:=base + CATEGORY:=Network + TITLE:=RealRaum Power Sensor Daemon + URL:=http://www.realraum.at/ +endef + + +define Build/Prepare + svn export --force https://svn.spreadspace.org/realraum/powersensordaemon $(PKG_BUILD_DIR) +endef + + +define Build/Configure + cd $(PKG_BUILD_DIR) && ./configure --target=Linux +endef + +define Package/powersensordaemon/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_DIR) $(1)/etc/powersensordaemon/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/powersensordaemon $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/sampledev.txt $(1)/etc/powersensordaemon/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/powerids.txt $(1)/etc/powersensordaemon/ +endef + +$(eval $(call BuildPackage,powersensordaemon)) +