b307eb8353ea1765ed9622644c67bae4d91c2891
[openwrt/svn-archive/archive.git] / net / mvprelay / Makefile
1 #
2 # Copyright (C) 2007 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:=mvprelay
12 PKG_VERSION:=0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@openwrt/
17 PKG_MD5SUM:=189fb792470c966834d5204705ebee83
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/mvprelay
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=relays requests from the MVP
28 URL:=http://downloads.openwrt.org/sources/
29 endef
30
31 define Package/mvprelay/description
32 Relays requests from the MediaMVP to the TFTP server
33 endef
34
35 define Build/Configure
36 endef
37
38 define Build/Compile
39 $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/$(PKG_NAME).c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
40 endef
41
42 define Package/mvprelay/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,mvprelay))