X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/677487a09fa372dc1576745234afdb754a5e82d1..30ee8b09baf1f268b73e201f5c35f54e1ba6dfb9:/package/vrrpd/Makefile diff --git a/package/vrrpd/Makefile b/package/vrrpd/Makefile old mode 100755 new mode 100644 index 82ee36b7b..8805450c6 --- a/package/vrrpd/Makefile +++ b/package/vrrpd/Makefile @@ -1,33 +1,39 @@ +# $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_URL:=@SF/vrrpd PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_CAT:=zcat -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +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))) +$(eval $(call PKG_template,VRRPD,vrrpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(PKG_BUILD_DIR)/.configured: touch $@ $(PKG_BUILD_DIR)/.built: - mkdir -p $(PKG_INSTALL_DIR)/usr/sbin - $(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR) - install -m0755 $(PKG_BUILD_DIR)/vrrpd $(PKG_INSTALL_DIR)/usr/sbin/ + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC=$(TARGET_CC) \ + DBG_OPT="" \ + MAIN_OPT="$(TARGET_CFLAGS)" \ + vrrpd touch $@ $(IPKG_VRRPD): - mkdir -p $(IDIR_VRRPD) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_VRRPD)/ + install -d -m0755 $(IDIR_VRRPD)/etc/default + install -m0644 ./files/vrrpd.default $(IDIR_VRRPD)/etc/default/vrrpd + install -d -m0755 $(IDIR_VRRPD)/etc/init.d + install -m0755 ./files/vrrpd.init $(IDIR_VRRPD)/etc/init.d/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)