X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ce2e826d63f556202914a52bf41b15e344428f39..907ae65b0906e81c6c148ffc11b35a8c75d7e5a0:/openwrt/package/monit/Makefile diff --git a/openwrt/package/monit/Makefile b/openwrt/package/monit/Makefile index df51b3d3d..bbb7c8670 100644 --- a/openwrt/package/monit/Makefile +++ b/openwrt/package/monit/Makefile @@ -12,7 +12,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(TOPDIR)/package/rules.mk @@ -44,15 +43,11 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared $(DISABLE_NLS) \ --without-ssl \ ); - touch $(PKG_BUILD_DIR)/.configured + touch $@ $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) - mkdir -p $(PKG_INSTALL_DIR) - $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - install - touch $(PKG_BUILD_DIR)/.built + touch $@ $(IPKG_MONIT): install -d -m0755 $(IDIR_MONIT)/etc @@ -60,6 +55,6 @@ $(IPKG_MONIT): install -d -m0755 $(IDIR_MONIT)/etc/init.d install -m0755 ./files/monit.init $(IDIR_MONIT)/etc/init.d/monit install -d -m0755 $(IDIR_MONIT)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/monit $(IDIR_MONIT)/usr/sbin/ - $(RSTRIP) $(IDIR_MONIT) + cp -fpR $(PKG_BUILD_DIR)/monit $(IDIR_MONIT)/usr/sbin/ + $(STRIP) $(IDIR_MONIT)/usr/sbin/monit $(IPKG_BUILD) $(IDIR_MONIT) $(PACKAGE_DIR)