Backport a debian change
[openwrt/svn-archive/archive.git] / net / vgp / 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:=vgp
12 PKG_VERSION:=0.2.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://vgpd.freaknet.org/files/
17 PKG_MD5SUM:=b8c25b5dfcb944f78bbc584be9c230c7
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/vgp
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=A daemon working like Cisco(c) HSRP
29 DESCRIPTION:=\
30 VGP (Virtual Gateway Protocol)is a very simple protocol able to \\\
31 work in a way similar to Cisco(c) HSRP. It implements the idea \\\
32 of Virtual Gateway to provide fault tollerance (and load \\\
33 balancing) on your net. Each client on your net has as its \\\
34 default gateway set to the virtual gateway and not the real router.
35 URL:=http://vgpd.freaknet.org/
36 endef
37
38 # uses GNU configure
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
45
46 define Package/vgp/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(CP) $(PKG_INSTALL_DIR)/usr/bin/vgpd $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,vgp))