mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
(cherry picked from commit082452bfb5)082452bfmosquitto-auth-shadow: support libpam based authentication Co-authored-by: Vivek Kumar Dutta <vivek.dutta@iopsys.eu>
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
#
|
|
# Copyright (c) 2022 Genexis B.V.
|
|
#
|
|
# This program and the accompanying materials are made available under the
|
|
# terms of the Eclipse Public License 2.0 which is available at
|
|
# https://www.eclipse.org/legal/epl-2.0/
|
|
#
|
|
# SPDX-License-Identifier: EPL-2.0
|
|
#
|
|
# Contributors:
|
|
# Erik Karlsson - initial implementation
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mosquitto-auth-shadow
|
|
PKG_VERSION:=1.1.0
|
|
|
|
PKG_MAINTAINER:=Erik Karlsson <erik.karlsson@genexis.eu>
|
|
PKG_LICENSE:=EPL-2.0
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_CONFIG_DEPENDS:=CONFIG_MOSQUITTO_AUTH_PAM_SUPPORT
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/mosquitto-auth-shadow
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=mosquitto - /etc/shadow authentication plugin
|
|
DEPENDS:=+mosquitto-ssl +MOSQUITTO_AUTH_PAM_SUPPORT:libpam
|
|
USERID:=mosquitto=200:mosquitto=200 mosquitto=200:shadow=11
|
|
endef
|
|
|
|
define Package/mosquitto-auth-shadow/description
|
|
Plugin for the mosquitto MQTT message broker that authenticates
|
|
users using /etc/shadow
|
|
endef
|
|
|
|
define Package/mosquitto-auth-shadow/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
ifeq ($(CONFIG_MOSQUITTO_AUTH_PAM_SUPPORT),y)
|
|
TARGET_CFLAGS+=-DENABLE_PAM_SUPPORT
|
|
endif
|
|
|
|
define Package/mosquitto-auth-shadow/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mosquitto_auth_shadow.so $(1)/usr/lib/
|
|
$(CP) ./files/* $(1)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,mosquitto-auth-shadow))
|