b4aa4e0d5b391d18180b79da187a4939ce1b7fdb
[openwrt/svn-archive/archive.git] / openwrt / package / vrrpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=vrrpd
6 PKG_VERSION:=1.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=6d5066ea1a6ced817376ca0f54765447
9
10 PKG_SOURCE_URL:=@SF/vrrpd
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,VRRPD,vrrpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 CC=$(TARGET_CC) \
26 DBG_OPT="" \
27 MAIN_OPT="$(TARGET_CFLAGS)" \
28 vrrpd
29 touch $@
30
31 $(IPKG_VRRPD):
32 install -d -m0755 $(IDIR_VRRPD)/usr/sbin
33 install -m0755 $(PKG_BUILD_DIR)/vrrpd $(IDIR_VRRPD)/usr/sbin/
34 $(RSTRIP) $(IDIR_VRRPD)
35 $(IPKG_BUILD) $(IDIR_VRRPD) $(PACKAGE_DIR)