Revert "l2tpv3tun: moved to github"
[packages.git] / net / vrrpd / Makefile
1 #
2 # Copyright (C) 2006-2012 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:=vrrpd
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/vrrpd
16 PKG_MD5SUM:=6d5066ea1a6ced817376ca0f54765447
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/vrrpd
21   SECTION:=net
22   CATEGORY:=Network
23   SUBMENU:=Routing and Redirection
24   TITLE:=Virtual Router Redundancy Protocol daemon
25   URL:=http://www.sourceforge.net/projects/vrrpd
26 endef
27
28 define Package/vrrpd/description
29         VRRPd is an implementation of Virtual Router Redundancy
30         Protocol as specified in rfc2338. VRRPd is interoperable with
31         other RFC-based VRRP implementations, including Cisco and
32         Juniper, and is included as a standard feature on ImageStream
33         routers.
34 endef
35
36 define Build/Compile
37         $(call Build/Compile/Default, \
38                 DBG_OPT="" \
39                 MAIN_OPT="$(TARGET_CFLAGS)" \
40                 vrrpd \
41         )
42 endef
43
44 define Package/vrrpd/install
45         $(INSTALL_DIR) $(1)/usr/sbin
46         $(INSTALL_BIN) $(PKG_BUILD_DIR)/vrrpd $(1)/usr/sbin/
47         $(INSTALL_DIR) $(1)/etc/config
48         $(INSTALL_DATA) ./files/vrrpd.config $(1)/etc/config/vrrpd
49         $(INSTALL_DIR) $(1)/etc/init.d
50         $(INSTALL_BIN) ./files/vrrpd.init $(1)/etc/init.d/vrrpd
51 endef
52
53 define Package/vrrpd/conffiles
54 /etc/config/vrrpd
55 endef
56
57 $(eval $(call BuildPackage,vrrpd))