bluez-tools: Add package bluezetools
[feed/packages.git] / utils / reptyr / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=reptyr
4 PKG_VERSION:=0.8.0
5 PKG_RELEASE:=4
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=https://github.com/nelhage/reptyr/archive/
9 PKG_HASH:=4b470ed2a0d25fed591739fa9613ce7ad3d0377891eb56cbe914e3c85db46ca8
10 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
11
12 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
13 PKG_LICENSE:=MIT
14 PKG_LICENSE_FILES:=COPYING
15
16 PKG_BUILD_PARALLEL:=1
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/reptyr
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=Tool for reparenting running programs
25 URL:=https://github.com/nelhage/reptyr
26 DEPENDS:=@!(arc||mips||mipsel||mips64||mips64el)
27 endef
28
29 define Package/reptyr/description
30 reptyr is a utility for taking an existing running program and attaching it
31 to a new terminal. Started a long-running process over ssh, but have to
32 leave and don't want to interrupt it? Just start a screen, use reptyr to
33 grab it, and then kill the ssh session and head on home.
34 endef
35
36 MAKE_FLAGS+= \
37 PREFIX=/usr
38
39 define Package/reptyr/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/reptyr $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,reptyr))