2014-06-16 13:03:22 +02:00
|
|
|
#
|
|
|
|
# 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
|
2023-12-20 05:01:35 +01:00
|
|
|
PKG_VERSION:=2.0.1
|
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-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2014-06-16 13:03:22 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2018-04-01 17:13:38 +02:00
|
|
|
PKG_SOURCE_URL:=https://pcsclite.apdu.fr/files/
|
2023-12-20 05:01:35 +01:00
|
|
|
PKG_HASH:=5edcaf5d4544403bdab6ee2b5d6c02c6f97ea64eebf0825b8d0fa61ba417dada
|
2014-06-16 13:03:22 +02:00
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
2014-08-10 13:12:45 +02:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-09-12 14:13:21 +02:00
|
|
|
PKG_CPE_ID:=cpe:/a:muscle:pcsc-lite
|
2014-06-16 13:03:22 +02:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/pcsc-lite/Default
|
2017-04-27 19:04:51 +02:00
|
|
|
TITLE:=Access a smart card using SCard API (PC/SC)
|
2018-04-01 17:13:38 +02:00
|
|
|
URL:=https://pcsclite.apdu.fr/
|
2014-06-16 13:03:22 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-libudev \
|
2018-01-05 00:04:27 +01:00
|
|
|
--disable-libsystemd \
|
2014-06-16 13:03:22 +02:00
|
|
|
--enable-libusb \
|
2023-12-20 05:01:35 +01:00
|
|
|
--disable-polkit \
|
2014-06-16 13:03:22 +02:00
|
|
|
--enable-static \
|
2020-12-18 23:53:46 +01:00
|
|
|
--enable-ipcdir=/var/run/pcscd \
|
2014-06-16 13:03:22 +02:00
|
|
|
--enable-usbdropdir=/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/
|
|
|
|
$(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/
|
|
|
|
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))
|