2021-05-18 15:54:20 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# seatd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-05-25 15:59:13 +02:00
|
|
|
SEATD_VERSION = 0.7.0
|
2021-05-18 15:54:20 +02:00
|
|
|
SEATD_SOURCE = $(SEATD_VERSION).tar.gz
|
|
|
|
SEATD_SITE = https://git.sr.ht/~kennylevinsen/seatd/archive
|
|
|
|
SEATD_LICENSE = MIT
|
|
|
|
SEATD_LICENSE_FILES = LICENSE
|
|
|
|
SEATD_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
SEATD_CONF_OPTS += \
|
|
|
|
-Dman-pages=disabled \
|
2021-06-12 23:15:02 +02:00
|
|
|
-Dexamples=disabled \
|
|
|
|
-Dwerror=false
|
2021-05-18 15:54:20 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD_LOGIND),y)
|
2022-05-25 15:59:13 +02:00
|
|
|
SEATD_CONF_OPTS += -Dlibseat-logind=systemd
|
2021-05-18 15:54:20 +02:00
|
|
|
SEATD_DEPENDENCIES += systemd
|
|
|
|
else
|
2021-09-17 20:31:32 +02:00
|
|
|
SEATD_CONF_OPTS += -Dlibseat-logind=disabled
|
2021-05-18 15:54:20 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SEATD_BUILTIN),y)
|
2021-09-17 20:31:32 +02:00
|
|
|
SEATD_CONF_OPTS += -Dlibseat-builtin=enabled
|
2021-05-18 15:54:20 +02:00
|
|
|
else
|
2021-09-17 20:31:32 +02:00
|
|
|
SEATD_CONF_OPTS += -Dlibseat-builtin=disabled
|
2021-05-18 15:54:20 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SEATD_DAEMON),y)
|
2021-09-17 20:31:32 +02:00
|
|
|
SEATD_CONF_OPTS += -Dlibseat-seatd=enabled -Dserver=enabled
|
2021-05-18 15:54:21 +02:00
|
|
|
|
|
|
|
define SEATD_USERS
|
|
|
|
- - video -1 - - - - -
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SEATD_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D $(SEATD_PKGDIR)/S70seatd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S70seatd
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SEATD_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -m 0644 -D $(@D)/contrib/systemd/seatd.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/seatd.service
|
|
|
|
endef
|
|
|
|
|
2021-05-18 15:54:20 +02:00
|
|
|
else
|
2021-09-17 20:31:32 +02:00
|
|
|
SEATD_CONF_OPTS += -Dlibseat-seatd=disabled -Dserver=disabled
|
2021-05-18 15:54:20 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(meson-package))
|