2018-12-22 21:57:35 +08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=yubico-pam
|
2021-04-12 15:07:52 +08:00
|
|
|
PKG_VERSION:=2.27
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-22 00:32:27 +08:00
|
|
|
PKG_RELEASE:=1
|
2018-12-22 21:57:35 +08:00
|
|
|
|
|
|
|
PKG_SOURCE:=pam_yubico-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://developers.yubico.com/yubico-pam/Releases
|
2021-04-12 15:07:52 +08:00
|
|
|
PKG_HASH:=63d02788852644d871746e1a7a1d16c272c583c226f62576f5ad232a6a44e18c
|
2020-07-08 05:08:00 +08:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/pam_yubico-$(PKG_VERSION)
|
|
|
|
|
2018-12-22 21:57:35 +08:00
|
|
|
PKG_MAINTAINER:=Stuart B. Wilkins <stuwilkins@mac.com>
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_LICENSE:=BSD-2-Clause
|
|
|
|
|
2020-07-08 05:08:00 +08:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2018-12-22 21:57:35 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/yubico-pam
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2020-12-12 12:06:35 +08:00
|
|
|
TITLE:=The Yubico PAM module
|
2018-12-22 21:57:35 +08:00
|
|
|
URL:=https://developers.yubico.com/yubico-pam/
|
|
|
|
DEPENDS:=+ykclient +ykpers +libyubikey +libpam +curl
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/yubico-pam/description
|
2020-07-08 05:08:00 +08:00
|
|
|
The Yubico PAM module provides an easy way to integrate the YubiKey
|
2018-12-22 21:57:35 +08:00
|
|
|
into your existing user authentication infrastructure.
|
|
|
|
endef
|
2020-07-08 05:08:00 +08:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--without-ldap
|
2018-12-22 21:57:35 +08:00
|
|
|
|
|
|
|
define Package/yubico-pam/install
|
2020-07-08 05:08:00 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/security
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/security/pam_yubico.so $(1)/usr/lib/security
|
2018-12-22 21:57:35 +08:00
|
|
|
endef
|
|
|
|
|
2020-07-08 05:08:00 +08:00
|
|
|
$(eval $(call BuildPackage,yubico-pam))
|