################################################################################ # # sg3_utils # ################################################################################ SG3_UTILS_VERSION = 1.47 SG3_UTILS_DIR = sg3_utils-$(SG3_UTILS_VERSION) SG3_UTILS_SOURCE = sg3_utils-$(SG3_UTILS_VERSION).tar.xz SG3_UTILS_SITE = http://sg.danny.cz/sg/p SG3_UTILS_CONF_OPTS = \ --bindir=$(bindir).$(@F) SG3_UTILS_BINARIES = sg_start define SG3_UTILS_INSTALL_BINARIES $(foreach binary,$($(PKG)_BINARIES),\ rm -f $(TARGET_bindir)/$(binary); \ $(INSTALL_EXEC) -D $(TARGET_bindir).$(@F)/$(binary) $(TARGET_bindir)/$(binary); \ rm -f $(TARGET_bindir).$(@F)/$(binary)$(sep) \ ) $(TARGET_RM) $(TARGET_bindir).$(@F) endef SG3_UTILS_TARGET_FINALIZE_HOOKS += SG3_UTILS_INSTALL_BINARIES define SG3_UTILS_INSTALL_INIT_SYSV $(INSTALL_EXEC) -D $(PKG_FILES_DIR)/sdX.init $(TARGET_sysconfdir)/init.d/sdX $(UPDATE-RC.D) sdX stop 97 0 6 . endef sg3_utils: | $(TARGET_DIR) $(call autotools-package)