Ticket #11300: Makefile

File Makefile, 1.3 KB (added by Pawel.Jalocha@…, 5 years ago)

package/procserv/Makefile

Line 
1#
2# Copyright (C) 2006-2012 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
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=procServ
12PKG_RELEASE:=1
13PKG_SOURCE_URL:=http://sourceforge.net/projects/procserv/files/$(PKG_VERSION)
14PKG_VERSION:=2.6.0
15PKG_MD5SUM:=
16
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/procServ
22  SECTION:=process
23  CATEGORY:=Utilities
24  TITLE:=Run any cmd as child keeping access to the console
25  URL:=http://sourceforge.net/projects/procserv/
26endef
27
28define Package/procServ/description
29 procServ is a wrapper that starts an arbitrary command
30 (e.g. an EPICS soft IOC) as a child process in the background,
31 connecting its standard input and output to a TCP port
32 for telnet access. It supports logging, child restart
33 (manual or automatic),...
34endef
35
36CONFIGURE_ARGS += \
37        --with-linux-headers="$(LINUX_DIR)" \
38
39define Build/Prepare
40$(call Build/Prepare/Default)
41        ( cd $(PKG_BUILD_DIR) ; \
42                [ -f ./configure ] || { \
43                        ln -sf configure.in configure.ac ; \
44                        autoconf ; \
45                } \
46        )
47endef
48
49define Package/procServ/install
50        $(INSTALL_DIR) $(1)/usr/sbin
51        $(INSTALL_BIN) $(PKG_BUILD_DIR)/procServ $(1)/usr/sbin
52endef
53
54$(eval $(call BuildPackage,procServ))