Files
buildroot/package/ugetty/ugetty.mk
Fiona Klute 2a17921b60 package/ugetty: use correct SPDX license identifier
BSD-0-Clause is not a recognized SPDX license identifier. 0BSD is used
in the LICENSE file, and LICENSE.0BSD matches the 0BSD license text
[1].

[1] https://spdx.org/licenses/0BSD.html

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-07-23 18:42:45 +02:00

34 lines
978 B
Makefile

################################################################################
#
# ugetty
#
################################################################################
UGETTY_VERSION = f1b7858778800b7256e9874f266c1d16ced22a6e
UGETTY_SITE = $(call github,ryancdotorg,ugetty,$(UGETTY_VERSION))
UGETTY_LICENSE = 0BSD or MIT or CC0-1.0
UGETTY_LICENSE_FILES = LICENSE LICENSE.0BSD LICENSE.CC0 LICENSE.MIT-0
define UGETTY_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) bin/ugetty
endef
# Install ugetty->getty symlink to ensure ugetty is used
define UGETTY_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/bin/ugetty \
$(TARGET_DIR)/sbin/ugetty
ln -snf ugetty $(TARGET_DIR)/sbin/getty
endef
define HOST_UGETTY_BUILD_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) bin/proxycommand
endef
define HOST_UGETTY_INSTALL_CMDS
$(INSTALL) -m 0755 -D $(@D)/bin/proxycommand \
$(HOST_DIR)/bin/proxycommand
endef
$(eval $(generic-package))
$(eval $(host-generic-package))