mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-19 23:31:47 -09:00
This is a valid CPE ID:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:setserial_project:setserial:2.17:*
Signed-off-by: Bjørn Damstedt Rasmussen <contact@bearware.dk>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 3010c801e3)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# setserial
|
|
#
|
|
################################################################################
|
|
|
|
SETSERIAL_VERSION = 2.17
|
|
SETSERIAL_SOURCE = setserial_$(SETSERIAL_VERSION).orig.tar.gz
|
|
SETSERIAL_SITE = https://snapshot.debian.org/archive/debian/20250307T084701Z/pool/main/s/setserial
|
|
SETSERIAL_EXTRA_DOWNLOADS = setserial_$(SETSERIAL_VERSION)-57.debian.tar.xz
|
|
SETSERIAL_LICENSE = GPL-2.0
|
|
SETSERIAL_LICENSE_FILES = debian/copyright
|
|
SETSERIAL_CPE_ID_VALID = YES
|
|
|
|
# make all also builds setserial.cat which needs nroff
|
|
SETSERIAL_MAKE_OPTS = setserial
|
|
|
|
SETSERIAL_AUTORECONF = YES
|
|
|
|
# Extract the Debian tarball inside the sources
|
|
define SETSERIAL_DEBIAN_EXTRACT
|
|
$(call suitable-extractor,$(notdir $(SETSERIAL_EXTRA_DOWNLOADS))) \
|
|
$(SETSERIAL_DL_DIR)/$(notdir $(SETSERIAL_EXTRA_DOWNLOADS)) | \
|
|
$(TAR) -C $(@D) $(TAR_OPTIONS) -
|
|
endef
|
|
|
|
SETSERIAL_POST_EXTRACT_HOOKS += SETSERIAL_DEBIAN_EXTRACT
|
|
|
|
define SETSERIAL_APPLY_DEBIAN_PATCHES
|
|
# - Touching gorhack.h is needed for the Debian patch 18 to work
|
|
# - Apply patches in the order listed in debian/patches/series
|
|
if [ -d $(@D)/debian/patches ]; then \
|
|
touch $(@D)/gorhack.h; \
|
|
$(APPLY_PATCHES) $(@D) $(@D)/debian/patches series; \
|
|
fi
|
|
endef
|
|
|
|
SETSERIAL_PRE_PATCH_HOOKS += SETSERIAL_APPLY_DEBIAN_PATCHES
|
|
|
|
$(eval $(autotools-package))
|