lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1339B)


      1 #
      2 # Copyright (C) 2006-2016 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=autossh
     11 PKG_VERSION:=1.4e
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
     15 PKG_SOURCE_URL:=http://www.harding.motd.ca/autossh/
     16 PKG_MD5SUM:=f86684b96e99d22b2e9d35dc63b0aa29
     17 PKG_LICENSE:=0BSD
     18 
     19 include $(INCLUDE_DIR)/package.mk
     20 
     21 define Package/autossh
     22   SECTION:=net
     23   CATEGORY:=Network
     24   TITLE:=Autossh client
     25   URL:=http://www.harding.motd.ca/autossh/
     26   MAINTAINER:=Christian Beier <cb@shoutrlabs.com>
     27   SUBMENU:=SSH
     28 endef
     29 
     30 define Build/Compile
     31 	$(call Build/Compile/Default, -f Makefile \
     32 		CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
     33 		all \
     34 	)
     35 endef
     36 
     37 define Package/autossh/install
     38 	$(INSTALL_DIR) $(1)/usr/sbin
     39 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/autossh $(1)/usr/sbin/
     40 	$(INSTALL_DIR) $(1)/etc/init.d
     41 	$(INSTALL_BIN) ./files/autossh.init $(1)/etc/init.d/autossh
     42 	$(INSTALL_DIR) $(1)/etc/config
     43 	$(INSTALL_DATA) ./files/autossh.config $(1)/etc/config/autossh
     44 	$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
     45 	$(INSTALL_DATA) ./files/autossh.hotplug $(1)/etc/hotplug.d/iface/20-autossh
     46 endef
     47 
     48 define Package/autossh/conffiles
     49 /etc/config/autossh
     50 endef
     51 
     52 $(eval $(call BuildPackage,autossh))