efada914bfe897567a27935ffb2ba816a9e4575d
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/vrrpd
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Virtual Router Redundancy Protocol daemon
28 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 URL:=http://www.sourceforge.net/projects/vrrpd
35 endef
36
37 define Package/vrrpd/conffiles
38 /etc/default/vrrpd
39 endef
40
41 define Build/Compile
42 $(call Build/Compile/Default, \
43 DBG_OPT="" \
44 MAIN_OPT="$(TARGET_CFLAGS)" \
45 vrrpd \
46 )
47 endef
48
49 define Package/vrrpd/install
50 install -d -m0755 $(1)/usr/sbin
51 install -m0755 $(PKG_BUILD_DIR)/vrrpd $(1)/usr/sbin/
52 install -d -m0755 $(1)/etc/default
53 install -m0644 ./files/vrrpd.default $(1)/etc/default/vrrpd
54 install -d -m0755 $(1)/etc/init.d
55 install -m0755 ./files/vrrpd.init $(1)/etc/init.d/vrrpd
56 endef
57
58 $(eval $(call BuildPackage,vrrpd))