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