hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
################################################################################
#
# seatd
#
################################################################################
 
SEATD_VERSION = 0.6.3
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 \
   -Dexamples=disabled \
   -Dwerror=false
 
ifeq ($(BR2_PACKAGE_SYSTEMD_LOGIND),y)
SEATD_CONF_OPTS += -Dlibseat-logind=enabled
SEATD_DEPENDENCIES += systemd
else
SEATD_CONF_OPTS += -Dlibseat-logind=disabled
endif
 
ifeq ($(BR2_PACKAGE_SEATD_BUILTIN),y)
SEATD_CONF_OPTS += -Dlibseat-builtin=enabled
else
SEATD_CONF_OPTS += -Dlibseat-builtin=disabled
endif
 
ifeq ($(BR2_PACKAGE_SEATD_DAEMON),y)
SEATD_CONF_OPTS += -Dlibseat-seatd=enabled -Dserver=enabled
 
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
 
else
SEATD_CONF_OPTS += -Dlibseat-seatd=disabled -Dserver=disabled
endif
 
$(eval $(meson-package))