mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-15 04:21:26 +00:00
* the inherit was controlled by VIRTUAL-RUNTIME_init_manager and the installation of .service files by DISTRO_FEATURES and systemd was in DISTRO_FEATURES but not in VIRTUAL-RUNTIME_init_manager it was causing QA issues about unpackaged .service files ERROR: rarpd-ss981107-r0 do_package: QA Issue: rarpd: Files/directories were installed but not shipped in any package: /lib /lib/systemd /lib/systemd/system /lib/systemd/system/rarpd.service ERROR: sblim-sfcb-1.4.9-r0 do_package: QA Issue: sblim-sfcb: Files/directories were installed but not shipped in any package: /lib /lib/systemd /lib/systemd/system /lib/systemd/system/sblim-sfcb.service ERROR: sblim-sfcb-1.4.9-r0 do_package: QA Issue: sblim-sfcb: Files/directories were installed but not shipped in any package: /lib /lib/systemd /lib/systemd/system /lib/systemd/system/sblim-sfcb.service * systemd.bbclass will take care of removing /lib/systemd when systemd isn't in DISTRO_FEATURES, so we can remove both conditions Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
95 lines
2.9 KiB
BlitzBasic
95 lines
2.9 KiB
BlitzBasic
Summanry = "Middleware framework for smart card terminals"
|
|
HOMEPAGE = "https://github.com/OpenSC/openct/wiki"
|
|
DESCRIPTION = " \
|
|
OpenCT implements drivers for several smart card readers. \
|
|
It comes as driver in ifdhandler format for PC/SC-Lite, \
|
|
as CT-API driver, or as a small and lean middleware, \
|
|
so applications can use it with minimal overhead. \
|
|
OpenCT also has a primitive mechanism to export smart card \
|
|
readers to remote machines via TCP/IP."
|
|
|
|
DEPENDS += "libtool pcsc-lite libusb-compat"
|
|
|
|
SRC_URI = " \
|
|
${DEBIAN_MIRROR}/main/o/${BPN}/${BPN}_${PV}.orig.tar.gz \
|
|
file://etc-openct.udev.in-disablePROGRAM.patch \
|
|
file://etc-openct_usb.in-modify-UDEVINFO.patch \
|
|
file://openct.init \
|
|
file://openct.sysconfig \
|
|
file://openct.service \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "a1da3358ab798f1cb9232f1dbababc21"
|
|
SRC_URI[sha256sum] = "6cd3e2933d29eb1f875c838ee58b8071fd61f0ec8ed5922a86c01c805d181a68"
|
|
|
|
LICENSE = "LGPLv2+"
|
|
LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
|
|
|
inherit systemd
|
|
SYSTEMD_SERVICE_${PN} += "openct.service "
|
|
SYSTEMD_AUTO_ENABLE = "enable"
|
|
|
|
EXTRA_OECONF=" \
|
|
--disable-static \
|
|
--enable-usb \
|
|
--enable-pcsc \
|
|
--enable-doc \
|
|
--enable-api-doc \
|
|
--with-udev=${nonarch_base_libdir}/udev \
|
|
--with-bundle=${libdir}/pcsc/drivers \
|
|
"
|
|
|
|
inherit autotools pkgconfig
|
|
|
|
FILES_${PN} += " \
|
|
${libdir}/ctapi \
|
|
${nonarch_base_libdir}/udev \
|
|
${libdir}/openct-ifd.so \
|
|
${libdir}/pcsc \
|
|
/run/openct/status \
|
|
"
|
|
|
|
FILES_${PN}-dbg += " \
|
|
${libdir}/ctapi/.debug \
|
|
${libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Linux/.debug \
|
|
"
|
|
|
|
INSANE_SKIP_${PN} += "dev-deps"
|
|
|
|
do_install_append() {
|
|
rm -r ${D}/${localstatedir}/run
|
|
}
|
|
|
|
do_install () {
|
|
rm -rf ${D}
|
|
install -d ${D}/etc
|
|
install -dm 755 ${D}${nonarch_base_libdir}/udev
|
|
# fix up hardcoded paths
|
|
sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \
|
|
${WORKDIR}/openct.service ${WORKDIR}/openct.init
|
|
|
|
oe_runmake install DESTDIR=${D}
|
|
install -dm 755 ${D}${libdir}/ctapi/
|
|
mv ${D}${libdir}/libopenctapi.so ${D}${libdir}/ctapi/
|
|
install -Dpm 644 etc/openct.udev ${D}/etc/udev/rules.d/60-openct.rules
|
|
install -pm 644 etc/openct.conf ${D}/etc/openct.conf
|
|
|
|
install -Dpm 755 ${WORKDIR}/openct.init ${D}/etc/init.d/openct
|
|
install -Dpm 644 ${WORKDIR}/openct.sysconfig ${D}/etc/sysconfig/openct
|
|
|
|
install -d ${D}/${systemd_unitdir}/system
|
|
install -m 644 ${WORKDIR}/openct.service ${D}/${systemd_unitdir}/system
|
|
|
|
so=$(find ${D} -name \*.so | sed "s|^${D}||")
|
|
sed -i -e 's|\\(LIBPATH\\s*\\).*|\\1$so|' etc/reader.conf
|
|
install -Dpm 644 etc/reader.conf ${D}/etc/reader.conf.d/openct.conf
|
|
|
|
install -dm 755 ${D}${localstatedir}/run/openct
|
|
touch ${D}${localstatedir}/run/openct/status
|
|
chmod 644 ${D}${localstatedir}/run/openct/status
|
|
}
|
|
|
|
pkg_postinst_${PN} () {
|
|
ln -sf ctapi/libopenctapi.so ${libdir}/libopenctapi.so
|
|
}
|