1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-29 17:15:20 +02:00
openwrt-xburst/openwrt/package/vrrpd/Makefile
nico 255f4a5db8 fix package name in template call, remove unneeded patch,
don't use PKG_INSTALL_DIR since upstream does not provide a make install target, 
add configurable init script, 
add Id tag and target optimization cflags..


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2674 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-12-14 23:01:47 +00:00

36 lines
761 B
Makefile

# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=vrrpd
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_MD5SUM:=6d5066ea1a6ced817376ca0f54765447
PKG_SOURCE_URL:=@SF/vrrpd
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,VRRPD,vrrpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.configured:
touch $@
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) \
DBG_OPT="" \
MAIN_OPT="$(TARGET_CFLAGS)" \
vrrpd
touch $@
$(IPKG_VRRPD):
install -d -m0755 $(IDIR_VRRPD)/usr/sbin
install -m0755 $(PKG_BUILD_DIR)/vrrpd $(IDIR_VRRPD)/usr/sbin/
$(RSTRIP) $(IDIR_VRRPD)
$(IPKG_BUILD) $(IDIR_VRRPD) $(PACKAGE_DIR)