lede-packages-rs

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

Makefile (1791B)


      1 #
      2 # Copyright (C) 2006-2014 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:=vncrepeater
     11 PKG_VERSION:=0.14
     12 PKG_RELEASE:=1
     13 PKG_MAINTAINER:=Jirka Spicak <robutek@gmail.com> 
     14 PKG_LICENSE:=GPL-2.0
     15 
     16 
     17 PKG_SOURCE:=repeater014.zip
     18 PKG_SOURCE_URL:=http://jtko.mbnet.fi/uvncrepeater
     19 PKG_MD5SUM:=3005ebbb2f9442cbea4cbcaa71925dbf
     20 
     21 PKG_BUILD_PARALLEL:=1
     22 
     23 include $(INCLUDE_DIR)/uclibc++.mk
     24 include $(INCLUDE_DIR)/package.mk
     25 
     26 define Package/vncrepeater
     27   SECTION:=net
     28   CATEGORY:=Network
     29   DEPENDS:=$(CXX_DEPENDS)
     30   TITLE:=UltraVNC repeater for Linux
     31   URL:=http://www.uvnc.com/addons/repeater.html
     32 endef
     33 
     34 define Package/vncrepeater/conffiles
     35 /etc/vncrepeater.conf
     36 endef
     37 
     38 define Package/vncrepeater/description
     39  Viewer can be behind Nat router or directly connected to the internet 
     40  instead of forwarding serveral ports, you only need to forward 1 port. 
     41  If the PC that runs the Repeater has access to the local DNS server, 
     42  you can use your local DNS names instead of 10.10.10.12.
     43  This could be handy when you have a dynamic DHCP server allocating 
     44  ip adresses for your PC.
     45 endef
     46 
     47 define Build/Prepare
     48 	mkdir -p $(PKG_BUILD_DIR)
     49 	$(PKG_UNPACK)
     50 	$(CP) $(PKG_BUILD_DIR)/../Ver014/* $(PKG_BUILD_DIR)/
     51 	rm -rf $(PKG_BUILD_DIR)/../Ver014/
     52 	$(Build/Patch)
     53 endef
     54 
     55 define Build/Compile
     56 	$(call Build/Compile/Default, \
     57 		CC="$(TARGET_CXX)" \
     58 		CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -fno-rtti" \
     59 		repeater \
     60 	)
     61 endef
     62 
     63 define Package/vncrepeater/install	
     64 	$(INSTALL_DIR) $(1)/usr/sbin
     65 	$(CP) $(PKG_BUILD_DIR)/repeater $(1)/usr/sbin/$(PKG_NAME)
     66 	$(INSTALL_DIR) $(1)/etc
     67 	$(CP) $(PKG_BUILD_DIR)/uvncrepeater.ini $(1)/etc/vncrepeater.conf
     68 endef
     69 
     70 $(eval $(call BuildPackage,vncrepeater))