source: packages/utils/cmdpad/Makefile @ 28930

Last change on this file since 28930 was 28930, checked in by nico, 5 years ago

packages/cmdpad: use new service wrapper

File size: 1.5 KB
Line 
1#
2# Copyright (C) 2007-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=cmdpad
11PKG_VERSION:=0.0.3
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15PKG_SOURCE_URL:=@SF/cmdpad
16PKG_MD5SUM:=6633b2354b7f23f9cd8e2bfb6e735965
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/cmdpad
21  SECTION:=utils
22  CATEGORY:=Utilities
23  TITLE:=execute commands when a key is pressed, released or hold down
24  URL:=http://cmdpad.sourceforge.net/index.php
25endef
26
27CONFIGURE_ARGS += \
28        --enable-static \
29        --enable-shared
30
31define Package/cmdpad/description
32        cmdpad - execute commands when a key is pressed, released or hold down.
33        Should be started from /etc/rc or /etc/rc.local. To run it as deamon you
34        need to start it with '&'. All logs are printed to standard out and standard
35        error (to write the log to disk use cmdpad > /var/log/cmdpad). Cmdpad
36        searches for /etc/cmdpad.conf and load the key bindings. Then wait for
37        key event and check each command to see if it should be run.
38endef
39
40MAKE_FLAGS += \
41        $(TARGET_CONFIGURE_OPTS) \
42        $(1)
43
44define Package/cmdpad/install
45        $(INSTALL_DIR) $(1)/usr/sbin
46        $(INSTALL_DIR) $(1)/etc
47        $(INSTALL_DIR) $(1)/etc/init.d
48        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/cmdpad $(1)/usr/sbin
49        $(INSTALL_CONF) $(PKG_BUILD_DIR)/src/cmdpad.conf $(1)/etc
50        $(INSTALL_BIN) ./files/cmdpad.init $(1)/etc/init.d/cmdpad
51endef
52
53$(eval $(call BuildPackage,cmdpad))
Note: See TracBrowser for help on using the repository browser.