2016-06-29 01:16:00 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# nodm
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-09-13 16:21:53 +02:00
|
|
|
NODM_VERSION = 0.13
|
|
|
|
NODM_SITE = $(call github,spanezz,nodm,$(NODM_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
NODM_LICENSE = GPL-2.0+
|
2016-06-29 01:16:00 +02:00
|
|
|
NODM_LICENSE_FILES = COPYING
|
|
|
|
NODM_AUTORECONF = YES
|
|
|
|
|
|
|
|
NODM_DEPENDENCIES = xlib_libX11 linux-pam
|
|
|
|
|
|
|
|
# help2man doesn't work when cross compiling
|
|
|
|
define NODM_DISABLE_HELP2MAN
|
|
|
|
$(SED) 's/help2man/true/' $(@D)/Makefile.am
|
|
|
|
endef
|
|
|
|
|
|
|
|
NODM_POST_PATCH_HOOKS += NODM_DISABLE_HELP2MAN
|
|
|
|
|
|
|
|
define NODM_INSTALL_PAM
|
|
|
|
$(INSTALL) -D -m 0644 package/nodm/nodm.pam \
|
|
|
|
$(TARGET_DIR)/etc/pam.d/nodm
|
|
|
|
endef
|
|
|
|
|
|
|
|
NODM_POST_INSTALL_TARGET_HOOKS += NODM_INSTALL_PAM
|
|
|
|
|
|
|
|
define NODM_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/nodm/S90nodm \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S90nodm
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|