Fix/clean several hundred package makefiles
[openwrt/svn-archive/archive.git] / net / vncrepeater / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=vncrepeater
12 PKG_VERSION:=0.12
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=5951740a8a103d7d9668558b3639c6c4
15
16 PKG_SOURCE_URL:=http://www.rit.edu/~reh5586/openwrt/packages/vncrepeater/src
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/vncrepeater
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+uclibcxx
29 TITLE:=UltraVNC repeater for Linux
30 DESCRIPTION:=Viewer can be behind Nat router or directly connected to the internet\\\
31 Instead of forwarding serveral ports, you only need to forward 1 port\\\
32 If the PC that runs the Repeater has access to the local DNS server,\\\
33 you can use your local DNS names instead of 10.10.10.12.\\\
34 This could be handy when you have a dynamic DHCP server allocating\\\
35 ip adresses for your PC.\\\
36 URL:=http://ultravnc.sourceforge.net/addons/repeater.html
37 endef
38
39 define Package/vncrepeater/
40 /etc/vncrepeater.conf
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/Default, \
45 CFLAGS="$(TARGET_CFLAGS)" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 repeater)
48 endef
49
50 define Package/vncrepeater/install
51 install -d -m0755 $(1)/usr/sbin $(1)/etc
52 $(CP) $(PKG_BUILD_DIR)/repeater $(1)/usr/sbin/$(PKG_NAME)
53 install -d -m0755 $(1)/etc
54 $(CP) $(PKG_BUILD_DIR)/uvncrepeater.ini $(1)/etc/vncrepeater.conf
55 install -d -m0755 $(1)/etc/init.d
56 $(CP) $(PKG_BUILD_DIR)/S60vncrepeater $(1)/etc/init.d/
57 endef
58
59 $(eval $(call BuildPackage,vncrepeater))