- updated to newer version which fixes some bugs
authorMirko Vogt <mirko@openwrt.org>
Tue, 13 Jan 2009 01:05:40 +0000 (01:05 +0000)
committerMirko Vogt <mirko@openwrt.org>
Tue, 13 Jan 2009 01:05:40 +0000 (01:05 +0000)
- added init-file

SVN-Revision: 14007

phone/paroli/Makefile
phone/paroli/files/paroli.init [new file with mode: 0644]

index 0821923f3ea0c987ecd8317c9c58955d6f858e81..ee66fd88f0e787469d9eb84fe4054e9f28f79b98 100644 (file)
@@ -8,8 +8,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=paroli
-PKG_VERSION:=20090104
-PKG_REV:=b966ed25a0b0550daa883e9288bf1855d1f1be2a
+PKG_VERSION:=20090112
+PKG_REV:=81db9c1a2abd7d56300867b04d4c541e34bb8165
 PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
@@ -36,17 +36,22 @@ define Package/paroli/description
 endef
 
 define Build/Compile
+       $(call Build/Compile/PyMod,,build)
        $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
 endef
 
 define Package/paroli/install
-       $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) $(1)/usr/bin $(1)/etc $(1)/usr/share/applications/paroli
+       $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/usr/share/applications/paroli $(1)/usr/share/paroli
        $(CP) \
                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
                $(1)$(PYTHON_PKG_DIR)
-       $(CP) \
+       $(INSTALL_BIN) \
                $(PKG_INSTALL_DIR)/usr/bin/* \
                $(1)/usr/bin/
+       $(INSTALL_BIN) ./files/paroli.init $(1)/etc/init.d/paroli
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/paroli/* \
+               $(1)/usr/share/paroli/
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/applications/* \
                $(1)/usr/share/applications/paroli/
diff --git a/phone/paroli/files/paroli.init b/phone/paroli/files/paroli.init
new file mode 100644 (file)
index 0000000..aea1635
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2008 OpenWrt.org
+START=99
+
+start() {
+    LD_PRELOAD=/usr/lib/libX11.so /usr/bin/paroli-launcher & # LD_PRELOAD to workaround some runtime linking problems - needs to be fixed
+}
+    
+stop() {
+    killall paroli-launcher
+}