rename mosquitto-auth-shadow to mosquitto-auth-plugin

(cherry picked from commit ba5e332b0d)
This commit is contained in:
Sukru Senli 2025-10-28 15:15:27 +01:00 committed by Erik Karlsson
parent 7baa1ac579
commit 853b5ec8bc
5 changed files with 10 additions and 10 deletions

View file

@ -1,4 +1,4 @@
if PACKAGE_mosquitto-auth-shadow if PACKAGE_mosquitto-auth-plugin
config MOSQUITTO_AUTH_PAM_SUPPORT config MOSQUITTO_AUTH_PAM_SUPPORT
bool "Enable support of Linux PAM module for Authentication" bool "Enable support of Linux PAM module for Authentication"

View file

@ -13,7 +13,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=mosquitto-auth-shadow PKG_NAME:=mosquitto-auth-plugin
PKG_VERSION:=1.1.0 PKG_VERSION:=1.1.0
PKG_MAINTAINER:=Erik Karlsson <erik.karlsson@genexis.eu> PKG_MAINTAINER:=Erik Karlsson <erik.karlsson@genexis.eu>
@ -24,7 +24,7 @@ PKG_CONFIG_DEPENDS:=CONFIG_MOSQUITTO_AUTH_PAM_SUPPORT
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/mosquitto-auth-shadow define Package/mosquitto-auth-plugin
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
TITLE:=mosquitto - /etc/shadow authentication plugin TITLE:=mosquitto - /etc/shadow authentication plugin
@ -32,12 +32,12 @@ define Package/mosquitto-auth-shadow
USERID:=mosquitto=200:mosquitto=200 mosquitto=200:shadow=11 USERID:=mosquitto=200:mosquitto=200 mosquitto=200:shadow=11
endef endef
define Package/mosquitto-auth-shadow/description define Package/mosquitto-auth-plugin/description
Plugin for the mosquitto MQTT message broker that authenticates Plugin for the mosquitto MQTT message broker that authenticates
users using /etc/shadow users using /etc/shadow
endef endef
define Package/mosquitto-auth-shadow/config define Package/mosquitto-auth-plugin/config
source "$(SOURCE)/Config.in" source "$(SOURCE)/Config.in"
endef endef
@ -45,10 +45,10 @@ ifeq ($(CONFIG_MOSQUITTO_AUTH_PAM_SUPPORT),y)
TARGET_CFLAGS+=-DENABLE_PAM_SUPPORT TARGET_CFLAGS+=-DENABLE_PAM_SUPPORT
endif endif
define Package/mosquitto-auth-shadow/install define Package/mosquitto-auth-plugin/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mosquitto_auth_shadow.so $(1)/usr/lib/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/mosquitto_auth_plugin.so $(1)/usr/lib/
$(CP) ./files/* $(1)/ $(CP) ./files/* $(1)/
endef endef
$(eval $(call BuildPackage,mosquitto-auth-shadow)) $(eval $(call BuildPackage,mosquitto-auth-plugin))

View file

@ -11,14 +11,14 @@
# Erik Karlsson - initial implementation # Erik Karlsson - initial implementation
# #
TARGETS = mosquitto_auth_shadow.so TARGETS = mosquitto_auth_plugin.so
all: $(TARGETS) all: $(TARGETS)
%.pic.o: %.c %.pic.o: %.c
$(CC) $(CFLAGS) -Wall -Werror -fPIC -c -o $@ $< $(CC) $(CFLAGS) -Wall -Werror -fPIC -c -o $@ $<
mosquitto_auth_shadow.so: mosquitto_auth_shadow.pic.o mosquitto_auth_plugin.so: mosquitto_auth_plugin.pic.o
$(CC) $(LDFLAGS) -shared -o $@ $^ $(if $(filter -DENABLE_PAM_SUPPORT,$(CFLAGS)),-lpam) $(CC) $(LDFLAGS) -shared -o $@ $^ $(if $(filter -DENABLE_PAM_SUPPORT,$(CFLAGS)),-lpam)
clean: clean: