pwrtray: Update.
authorMichael Büsch <mb@bu3sch.de>
Thu, 9 Sep 2010 23:49:46 +0000 (23:49 +0000)
committerMichael Büsch <mb@bu3sch.de>
Thu, 9 Sep 2010 23:49:46 +0000 (23:49 +0000)
SVN-Revision: 22995

Xorg/app/pwrtray/Makefile
Xorg/app/pwrtray/files/etc/init.d/pwrtray-backend [new file with mode: 0755]

index a4297b7..f160ba0 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pwrtray
-PKG_REV:=89c0d75ecb9efdb7ef2288635d617348c1fe5480
+PKG_REV:=e1cf5f9d31152a383612b2298f694894584127ab
 PKG_VERSION:=$(PKG_REV)
 PKG_RELEASE:=1
 
@@ -36,7 +36,9 @@ define Package/pwrtray/description
 endef
 
 EXTRA_CFLAGS:= \
-       -I$(PKG_BUILD_DIR)/moc
+       -I$(PKG_BUILD_DIR)/tray/moc \
+       -I$(STAGING_DIR)/usr/include/QtCore \
+       -I$(STAGING_DIR)/usr/include/QtGui
 
 EXTRA_LDFLAGS:= \
        -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
@@ -50,7 +52,9 @@ MAKE_VARS+= \
 #      V=1
 
 define Package/pwrtray/install
-       $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share
+       $(INSTALL_DIR) $(1)/etc/init.d $(1)/usr/bin $(1)/usr/share
+       $(INSTALL_BIN) ./files/etc/init.d/* $(1)/etc/init.d/
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray-backend $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pwrtray $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/share/pwrtray $(1)/usr/share/
 endef
diff --git a/Xorg/app/pwrtray/files/etc/init.d/pwrtray-backend b/Xorg/app/pwrtray/files/etc/init.d/pwrtray-backend
new file mode 100755 (executable)
index 0000000..4ca60c0
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2010 OpenWrt.org
+
+START=99
+
+start() {
+       [ -x /usr/bin/pwrtray-backend ] && /usr/bin/pwrtray-backend
+}
+
+stop() {
+       killall -q pwrtray-backend
+}