cmdpad: moved to github
authorSteven Barth <cyrus@openwrt.org>
Sat, 19 Jul 2014 10:51:58 +0000 (10:51 +0000)
committerSteven Barth <cyrus@openwrt.org>
Sat, 19 Jul 2014 10:51:58 +0000 (10:51 +0000)
SVN-Revision: 41743

utils/cmdpad/Makefile [deleted file]
utils/cmdpad/files/cmdpad.init [deleted file]
utils/cmdpad/patches/100-Makefile.patch [deleted file]
utils/cmdpad/patches/120-kernel26-compat.patch [deleted file]
utils/cmdpad/patches/130-no_zombie.patch [deleted file]
utils/cmdpad/patches/140-compile_fix.patch [deleted file]

diff --git a/utils/cmdpad/Makefile b/utils/cmdpad/Makefile
deleted file mode 100644 (file)
index 5c8a160..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#
-# Copyright (C) 2007-2011 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:=cmdpad
-PKG_VERSION:=0.0.3
-PKG_RELEASE:=3
-
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=@SF/cmdpad
-PKG_MD5SUM:=6633b2354b7f23f9cd8e2bfb6e735965
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/cmdpad
-  SECTION:=utils
-  CATEGORY:=Utilities
-  TITLE:=execute commands when a key is pressed, released or hold down
-  URL:=http://cmdpad.sourceforge.net/index.php
-endef
-
-CONFIGURE_ARGS += \
-       --enable-static \
-       --enable-shared
-
-define Package/cmdpad/description
-       cmdpad - execute commands when a key is pressed, released or hold down.
-       Should be started from /etc/rc or /etc/rc.local. To run it as deamon you
-       need to start it with '&'. All logs are printed to standard out and standard
-       error (to write the log to disk use cmdpad > /var/log/cmdpad). Cmdpad
-       searches for /etc/cmdpad.conf and load the key bindings. Then wait for
-       key event and check each command to see if it should be run.
-endef
-
-MAKE_FLAGS += \
-       $(TARGET_CONFIGURE_OPTS) \
-       $(1)
-
-define Package/cmdpad/install
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(INSTALL_DIR) $(1)/etc
-       $(INSTALL_DIR) $(1)/etc/init.d
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/cmdpad $(1)/usr/sbin/
-       $(INSTALL_CONF) $(PKG_BUILD_DIR)/src/cmdpad.conf $(1)/etc/
-       $(INSTALL_BIN) ./files/cmdpad.init $(1)/etc/init.d/cmdpad
-endef
-
-define Package/cmdpad/conffiles
-/etc/cmdpad.conf
-endef
-
-$(eval $(call BuildPackage,cmdpad))
diff --git a/utils/cmdpad/files/cmdpad.init b/utils/cmdpad/files/cmdpad.init
deleted file mode 100644 (file)
index f612033..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2007-2011 OpenWrt.org
-
-START=93
-
-SSD_DAEMONIZE=1
-
-start() {
-       service_start /usr/sbin/cmdpad --quiet
-}
-
-stop() {
-       service_stop /usr/sbin/cmdpad
-}
diff --git a/utils/cmdpad/patches/100-Makefile.patch b/utils/cmdpad/patches/100-Makefile.patch
deleted file mode 100644 (file)
index 61a6c8f..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
---- cmdpad-0.0.3/src/Makefile.orig     2008-01-05 23:29:44.000000000 +0100
-+++ cmdpad-0.0.3/src/Makefile  2008-01-05 23:30:23.000000000 +0100
-@@ -5,25 +5,25 @@
- TOP=..
- include $(TOP)/Makefile.common
--INCLUDE= -I/usr/include
--LIBS= -L/usr/lib -lc 
--CFLAGS= -g3
--LDFLAGS= -Xlinker -Map -Xlinker $(PROG).map #,--stack,16Mb
-+#INCLUDE= -I/usr/include
-+#LIBS= -L/usr/lib -lc 
-+#CFLAGS= -g3
-+#LDFLAGS= -Xlinker -Map -Xlinker $(PROG).map #,--stack,16Mb
- OBJ= main.o command.o parse.o
- SCRIPTS= *.sh
- build: $(PROG) 
-       
- $(PROG): $(OBJ) 
--      gcc -o $(PROG) $(OBJ) $(LIBS) $(LDFLAGS)
-+      $(GCC) -o $(PROG) $(OBJ) $(LIBS) $(LDFLAGS)
-       @echo "==============================================="
-       @echo "edit $(PROG).conf file to set default preferences"
- %.o : %.c 
--      gcc $(CFLAGS) -D__COPYLEFT__='$(COPYLEFT)' -c $<
-+      $(GCC) $(CFLAGS) -D__COPYLEFT__='$(COPYLEFT)' -c $<
- %.o : %.c %.h
--      gcc $(CFLAGS) -D__COPYLEFT__='$(COPYLEFT)' -c $<
-+      $(GCC) $(CFLAGS) -D__COPYLEFT__='$(COPYLEFT)' -c $<
- distclean clean:
-       rm $(PROG) *~ *.o -vf
diff --git a/utils/cmdpad/patches/120-kernel26-compat.patch b/utils/cmdpad/patches/120-kernel26-compat.patch
deleted file mode 100644 (file)
index eb7beeb..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
---- cmdpad-0.0.3/src/parse.orig        2008-01-05 23:55:32.000000000 +0100
-+++ cmdpad-0.0.3/src/parse.c   2008-01-05 23:56:07.000000000 +0100
-@@ -289,6 +289,12 @@
-         pchEventDevice = strdup( pchValue) ;
-         return 1 ;
-       }
-+      if( (pchValue != NULL) && 
-+          (strncmp( pchValue, "/dev/event", 6) == 0) )
-+      {
-+        pchEventDevice = strdup( pchValue) ;
-+        return 1 ;
-+      }
-       printf( "Option 'device' expects a /dev/input/eventX argument\n");
-       return -1 ;
-     }
diff --git a/utils/cmdpad/patches/130-no_zombie.patch b/utils/cmdpad/patches/130-no_zombie.patch
deleted file mode 100644 (file)
index aa4fc6a..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
---- cmdpad-0.0.3/src/command.c.orig    2003-03-29 17:54:12.000000000 +0100
-+++ cmdpad-0.0.3/src/command.c 2008-01-12 05:41:22.000000000 +0100
-@@ -68,6 +68,7 @@
- void exec( char * command)
- {
-+    int status;
-       if( fork() == 0) {
-               char ** tmp ;
-               int i ;
-@@ -88,6 +89,7 @@
-               perror( "ERROR: execv") ;
-               exit( 1) ;
-       } // end if( fork())
-+        wait(&status);
- }
- int getNumberofEntry()
diff --git a/utils/cmdpad/patches/140-compile_fix.patch b/utils/cmdpad/patches/140-compile_fix.patch
deleted file mode 100644 (file)
index c7a9bb3..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/parse.c
-+++ b/src/parse.c
-@@ -125,7 +125,7 @@ int readCommandLine( int argc, char *arg
-       
-                       d2printf( "command line command %s found\n", pchCommandTranslations[ iCmd+1]) ;
-             
--                      vsnprintf( achCommand, sizeof( achCommand), 
-+                      snprintf( achCommand, sizeof( achCommand), 
-                                  pchCommandTranslations[ iCmd+1], 
-                                  &argv[ i+1]) ;
-