From 060cb25352ab4d8453060593ef21bf1f17b1e652 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 21 Mar 2021 22:25:17 +0100 Subject: [PATCH] - move more autotools-packages to package dir --- make/target-tools.mk | 47 -------------------------- package/minicom/minicom.mk | 26 ++++++++++++++ package/smartmontools/smartmontools.mk | 28 +++++++++++++++ 3 files changed, 54 insertions(+), 47 deletions(-) create mode 100644 package/minicom/minicom.mk create mode 100644 package/smartmontools/smartmontools.mk diff --git a/make/target-tools.mk b/make/target-tools.mk index edbd78b1..8da58ac4 100644 --- a/make/target-tools.mk +++ b/make/target-tools.mk @@ -542,27 +542,6 @@ ushare: $(USHARE_DEPENDENCIES) $(DL_DIR)/$(USHARE_SOURCE) | $(TARGET_DIR) # ----------------------------------------------------------------------------- -SMARTMONTOOLS_VERSION = 7.1 -SMARTMONTOOLS_DIR = smartmontools-$(SMARTMONTOOLS_VERSION) -SMARTMONTOOLS_SOURCE = smartmontools-$(SMARTMONTOOLS_VERSION).tar.gz -SMARTMONTOOLS_SITE = https://sourceforge.net/projects/smartmontools/files/smartmontools/$(SMARTMONTOOLS_VERSION) - -$(DL_DIR)/$(SMARTMONTOOLS_SOURCE): - $(download) $(SMARTMONTOOLS_SITE)/$(SMARTMONTOOLS_SOURCE) - -smartmontools: $(DL_DIR)/$(SMARTMONTOOLS_SOURCE) | $(TARGET_DIR) - $(REMOVE)/$(PKG_DIR) - $(UNTAR)/$(PKG_SOURCE) - $(CHDIR)/$(PKG_DIR); \ - $(APPLY_PATCHES); \ - $(CONFIGURE); \ - $(MAKE); \ - $(INSTALL_EXEC) -D smartctl $(TARGET_sbindir)/smartctl - $(REMOVE)/$(PKG_DIR) - $(TOUCH) - -# ----------------------------------------------------------------------------- - VSFTPD_VERSION = 3.0.3 VSFTPD_DIR = vsftpd-$(VSFTPD_VERSION) VSFTPD_SOURCE = vsftpd-$(VSFTPD_VERSION).tar.gz @@ -630,32 +609,6 @@ nano: $(NANO_DEPENDENCIES) $(DL_DIR)/$(NANO_SOURCE) | $(TARGET_DIR) # ----------------------------------------------------------------------------- -MINICOM_VERSION = 2.7.1 -MINICOM_DIR = minicom-$(MINICOM_VERSION) -MINICOM_SOURCE = minicom-$(MINICOM_VERSION).tar.gz -MINICOM_SITE = http://fossies.org/linux/misc - -$(DL_DIR)/$(MINICOM_SOURCE): - $(download) $(MINICOM_SITE)/$(MINICOM_SOURCE) - -MINICOM_DEPENDENCIES = ncurses - -MINICOM_CONF_OPTS = \ - --disable-nls - -minicom: $(MINICOM_DEPENDENCIES) $(DL_DIR)/$(MINICOM_SOURCE) | $(TARGET_DIR) - $(REMOVE)/$(PKG_DIR) - $(UNTAR)/$(PKG_SOURCE) - $(CHDIR)/$(PKG_DIR); \ - $(APPLY_PATCHES); \ - $(CONFIGURE); \ - $(MAKE); \ - $(INSTALL_EXEC) src/minicom $(TARGET_bindir) - $(REMOVE)/$(PKG_DIR) - $(TOUCH) - -# ----------------------------------------------------------------------------- - AUTOFS_VERSION = 5.1.6 AUTOFS_DIR = autofs-$(AUTOFS_VERSION) AUTOFS_SOURCE = autofs-$(AUTOFS_VERSION).tar.xz diff --git a/package/minicom/minicom.mk b/package/minicom/minicom.mk new file mode 100644 index 00000000..8515ea97 --- /dev/null +++ b/package/minicom/minicom.mk @@ -0,0 +1,26 @@ +################################################################################ +# +# minicom +# +################################################################################ + +MINICOM_VERSION = 2.7.1 +MINICOM_DIR = minicom-$(MINICOM_VERSION) +MINICOM_SOURCE = minicom-$(MINICOM_VERSION).tar.gz +MINICOM_SITE = http://fossies.org/linux/misc + +$(DL_DIR)/$(MINICOM_SOURCE): + $(download) $(MINICOM_SITE)/$(MINICOM_SOURCE) + +MINICOM_DEPENDENCIES = ncurses + +MINICOM_CONF_OPTS = \ + --disable-nls + +define MINICOM_TARGET_CLEANUP + $(TARGET_RM) $(addprefix $(TARGET_bindir)/,ascii-xfr runscript xminicom) +endef +MINICOM_TARGET_FINALIZE_HOOKS += MINICOM_TARGET_CLEANUP + +minicom: | $(TARGET_DIR) + $(call autotools-package) diff --git a/package/smartmontools/smartmontools.mk b/package/smartmontools/smartmontools.mk new file mode 100644 index 00000000..e7ef21fc --- /dev/null +++ b/package/smartmontools/smartmontools.mk @@ -0,0 +1,28 @@ +################################################################################ +# +# smartmontools +# +################################################################################ + +SMARTMONTOOLS_VERSION = 7.1 +SMARTMONTOOLS_DIR = smartmontools-$(SMARTMONTOOLS_VERSION) +SMARTMONTOOLS_SOURCE = smartmontools-$(SMARTMONTOOLS_VERSION).tar.gz +SMARTMONTOOLS_SITE = https://sourceforge.net/projects/smartmontools/files/smartmontools/$(SMARTMONTOOLS_VERSION) + +SMARTMONTOOLS_CONF_OPTS = \ + --docdir=$(REMOVE_docdir) \ + --with-drivedbdir=no \ + --with-initscriptdir=no \ + --with-smartdplugindir=no \ + --with-smartdscriptdir=$(REMOVE_sysconfdir) \ + --with-update-smart-drivedb=no \ + --without-gnupg + +define SMARTMONTOOLS_TARGET_CLEANUP + $(TARGET_RM) $(TARGET_sysconfdir)/smartd.conf + $(TARGET_RM) $(TARGET_sbindir)/smartd +endef +SMARTMONTOOLS_TARGET_FINALIZE_HOOKS += SMARTMONTOOLS_TARGET_CLEANUP + +smartmontools: | $(TARGET_DIR) + $(call autotools-package)