0
0
mirror of https://github.com/openwrt/packages.git synced 2025-08-08 19:51:46 +00:00
Files
packages/utils/pcsc-lite/Makefile
Daniel Golle 0b824a8640 pcsc-lite: update to version 2.3.3
2.3.3: Ludovic Rousseau
2 April 2025
- Make polkit rules work again (bug introduced in 2.3.2)
2.3.2: Ludovic Rousseau
26 March 2025
- Hardening systemd pcscd.service file
- pcscd.service: add missing Requires=polkit.service
- pcsc-spy: add missing PCSCv2_PART10_PROPERTY_* definitions
- Support udev PCSCLITE_IGNORE property to filter readers
- debuglog: force use of colors when --color is used
- Some other minor improvements
2.3.1: Ludovic Rousseau
24 December 2024
- Install a default /etc/default/pcscd file
- auth.c: implement polkit support for FreeBSD
- meson:
  . also build static version of libpcsclite
  . add options to disable polkit and libsystemd
  . add "filter_names" in features when needed
- Doxygen: document dwCurrentState use for "\\?PnP?\Notification"
- Some other minor improvements
2.3.0: Ludovic Rousseau
3 August 2024
- SCardGetStatusChange(): add the number of reader events
- Add Appstream metainfo announcing HW support
- meson: specify minimum meson version to use
- fix formats under musl libc
- Send libpcsclite.so logs to stderr instead of stdout
- Some other minor improvements

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-04-27 18:29:25 +01:00

107 lines
2.8 KiB
Makefile

#
# Copyright (C) 2009-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pcsc-lite
PKG_VERSION:=2.3.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://pcsclite.apdu.fr/files/
PKG_HASH:=cdff7d7153a0b37aa74e26dfec89ec7dc5c5286aa21b91b903e38739d227e8e7
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:muscle:pcsc-lite
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/meson.mk
define Package/pcsc-lite/Default
TITLE:=Access a smart card using SCard API (PC/SC)
URL:=https://pcsclite.apdu.fr/
endef
define Package/pcsc-lite/Default/description
The purpose of PC/SC Lite is to provide a Windows(R) SCard
interface in a very small form factor for communicating to
smart cards and smart cards readers.
endef
define Package/libpcsclite
$(call Package/pcsc-lite/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE+= (library)
DEPENDS:=+libusb-1.0 +libpthread +librt
endef
define Package/libpcsclite/description
$(call Package/pcsc-lite/Default/description)
.
This package contains the PC/SC shared library.
endef
define Package/pcscd
$(call Package/pcsc-lite/Default)
SECTION:=utils
CATEGORY:=Utilities
TITLE+= (daemon)
DEPENDS:=+libpcsclite
endef
define Package/pcscd/description
$(call Package/pcsc-lite/Default/description)
.
This package contains the PC/SC daemon.
endef
TARGET_CFLAGS += $(FPIC)
TARGET_LDFLAGS += -lpthread
MESON_ARGS += \
-Dlibudev=false \
-Dlibsystemd=false \
-Dlibusb=true \
-Dpolkit=false \
-Dipcdir='/var/run/pcscd' \
-Dusbdropdir='/usr/lib/pcsc/drivers'
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/PCSC
$(CP) $(PKG_INSTALL_DIR)/usr/include/PCSC/* $(1)/usr/include/PCSC/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcsclite.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcsclite_real.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpcsclite.pc $(1)/usr/lib/pkgconfig/
endef
define Package/libpcsclite/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcsclite.so.* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcsclite_real.so.* $(1)/usr/lib/
endef
define Package/pcscd/conffiles
/etc/reader.conf.d/reader.conf
endef
define Package/pcscd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pcscd $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/pcscd.init $(1)/etc/init.d/pcscd
$(INSTALL_DIR) $(1)/etc/reader.conf.d
endef
$(eval $(call BuildPackage,libpcsclite))
$(eval $(call BuildPackage,pcscd))