1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# seatd 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSEATD_VERSION = 0.7.0 8*4882a593SmuzhiyunSEATD_SOURCE = $(SEATD_VERSION).tar.gz 9*4882a593SmuzhiyunSEATD_SITE = https://git.sr.ht/~kennylevinsen/seatd/archive 10*4882a593SmuzhiyunSEATD_LICENSE = MIT 11*4882a593SmuzhiyunSEATD_LICENSE_FILES = LICENSE 12*4882a593SmuzhiyunSEATD_INSTALL_STAGING = YES 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunSEATD_CONF_OPTS += \ 15*4882a593Smuzhiyun -Dman-pages=disabled \ 16*4882a593Smuzhiyun -Dexamples=disabled \ 17*4882a593Smuzhiyun -Dwerror=false 18*4882a593Smuzhiyun 19*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SYSTEMD_LOGIND),y) 20*4882a593SmuzhiyunSEATD_CONF_OPTS += -Dlibseat-logind=systemd 21*4882a593SmuzhiyunSEATD_DEPENDENCIES += systemd 22*4882a593Smuzhiyunelse 23*4882a593SmuzhiyunSEATD_CONF_OPTS += -Dlibseat-logind=disabled 24*4882a593Smuzhiyunendif 25*4882a593Smuzhiyun 26*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SEATD_BUILTIN),y) 27*4882a593SmuzhiyunSEATD_CONF_OPTS += -Dlibseat-builtin=enabled 28*4882a593Smuzhiyunelse 29*4882a593SmuzhiyunSEATD_CONF_OPTS += -Dlibseat-builtin=disabled 30*4882a593Smuzhiyunendif 31*4882a593Smuzhiyun 32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SEATD_DAEMON),y) 33*4882a593SmuzhiyunSEATD_CONF_OPTS += -Dlibseat-seatd=enabled -Dserver=enabled 34*4882a593Smuzhiyun 35*4882a593Smuzhiyundefine SEATD_USERS 36*4882a593Smuzhiyun - - video -1 - - - - - 37*4882a593Smuzhiyunendef 38*4882a593Smuzhiyun 39*4882a593Smuzhiyundefine SEATD_INSTALL_INIT_SYSV 40*4882a593Smuzhiyun $(INSTALL) -m 0755 -D $(SEATD_PKGDIR)/S40seatd \ 41*4882a593Smuzhiyun $(TARGET_DIR)/etc/init.d/S40seatd 42*4882a593Smuzhiyunendef 43*4882a593Smuzhiyun 44*4882a593Smuzhiyundefine SEATD_INSTALL_INIT_SYSTEMD 45*4882a593Smuzhiyun $(INSTALL) -m 0644 -D $(@D)/contrib/systemd/seatd.service \ 46*4882a593Smuzhiyun $(TARGET_DIR)/usr/lib/systemd/system/seatd.service 47*4882a593Smuzhiyunendef 48*4882a593Smuzhiyun 49*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SEATD_DAEMON_VT_BOUND),) 50*4882a593Smuzhiyundefine SEATD_INSTALL_TARGET_VT_ENV 51*4882a593Smuzhiyun echo "export SEATD_VTBOUND=0" > \ 52*4882a593Smuzhiyun $(TARGET_DIR)/etc/profile.d/seatd.sh 53*4882a593Smuzhiyunendef 54*4882a593SmuzhiyunSEATD_POST_INSTALL_TARGET_HOOKS += SEATD_INSTALL_TARGET_VT_ENV 55*4882a593Smuzhiyunendif 56*4882a593Smuzhiyun 57*4882a593Smuzhiyunelse 58*4882a593SmuzhiyunSEATD_CONF_OPTS += -Dlibseat-seatd=disabled -Dserver=disabled 59*4882a593Smuzhiyunendif 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun$(eval $(meson-package)) 62