diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /app-crypt/ekeyd | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'app-crypt/ekeyd')
-rw-r--r-- | app-crypt/ekeyd/Manifest | 3 | ||||
-rw-r--r-- | app-crypt/ekeyd/files/ekey-ulusbd.conf.2 | 16 | ||||
-rw-r--r-- | app-crypt/ekeyd/files/ekey-ulusbd.init.2 | 40 | ||||
-rw-r--r-- | app-crypt/ekeyd/files/ekeyd-1.1.4-gentoo.patch | 133 |
4 files changed, 0 insertions, 192 deletions
diff --git a/app-crypt/ekeyd/Manifest b/app-crypt/ekeyd/Manifest index 55f06acda7af..70b59ca3dece 100644 --- a/app-crypt/ekeyd/Manifest +++ b/app-crypt/ekeyd/Manifest @@ -1,9 +1,6 @@ AUX 90-ekeyd.rules 691 BLAKE2B 8c36ca2a6228e2fd6b203513a5f23f3e9b44193c46127c46def7110b0a3a3e020e6959cb4c3dd8bdbe0c057e389c37326011083aae0104b91f247a2932a3c915 SHA512 12d949e90af31992ac671ae42172a2169592dfba9b921ed684a37e7fe330bef44abb2c0a1a5df63ddde940b00fb10fa9cfba493c69614ce0f10aba4de78ea6d3 AUX ekey-egd-linux.conf.2 266 BLAKE2B 387aa2985ddd362f2c0d9eedbfcd23b24a52b210d853671e3670819e730648b12658b8364fafc39b41cdd1601a8ba1471c7f23b1c8cd9a330a7169049e890420 SHA512 3e8db66552a5c04045226debbf6a7add01301bf98bb26c48033f4bceacde82f25e449fced2d46667009165e9d2f327134e6c963142295d7ef065eaa47b383393 AUX ekey-egd-linux.init.2 456 BLAKE2B d4e7900bc0e2a089744cc1bf49084cf83c2d8f8ade84bbdea39d6c21f7896bc22e8ef7b650a2efb198b19bea5abb983b20dbafde019d8fc1ec3d57171f491a9f SHA512 55e7be6464b685aa5b290bd310020f4a01926d07a9cb071fc117081bc751a902ebbb9db51a81a5168a34cebc2ecc02360b4917356e25a2e205f57491739ff190 -AUX ekey-ulusbd.conf.2 495 BLAKE2B 16ff2a3dec83f6623a2ed714e18db8c21885014c99d6409c39ec0745979b3ef10ae693114acdcda6697e1bfce9d9ed3cceed8abb2b4319f8ae29904c6e69a369 SHA512 9d4b5d594790d34ed4b513a00b60518c0770ccba87b159e1f9eaac382275658e53f5274ee24743e8d103bbe4a2351ce865157013e0dfeefa32e37fe4d2348677 -AUX ekey-ulusbd.init.2 900 BLAKE2B a9aa95448ff5d65d18689489bc14a2ddedc8f5ac858d28d569a58ae960196342c86893f903975bbe86fd9ea8a27950bbd36df91061fd8f8e146285bb18d27e51 SHA512 cae15995b8d8b66ef4209fe3cd8a14edcc2645b10dbb6f4da54e929a9347db675abcf9232841863c14a450789768247eda5929667021b5bada041365fbc1470d -AUX ekeyd-1.1.4-gentoo.patch 6565 BLAKE2B b7fc5fe83eeb0d8f56d2d2a4ed00970502cac53d5c5e4c485b2b25af672b74f3c263c944a4b2abb2b710655f80276ed6aceec59b22ed76d72d6b280ffd1731d6 SHA512 f65a1cef8bd4e280a8dd8ce51f23661286ed3fd688d34943793eb326d417016a53312c6b344aab3465a8930c7de8cd10d6d572bd67f92cf8f65386f2f5ca1875 AUX ekeyd-1.1.5-const_char_usage.patch 1094 BLAKE2B e19d837be0652844c95cf87af8381a09f1913471609616ded55e6e3d7e0876f8996d31909e72c0ec759b324e54cc785bbde77c4eaf4f87e81935521d71427176 SHA512 92198522e3dd90d2274d9c5171c216c3a3db9d334b2b14363781456f167a65df5370a7dcf430246d944e1e14e5278bf130e068063e600589f74026ca39e319a5 AUX ekeyd-1.1.5-enoent.patch 863 BLAKE2B ec953667eaa23dcf91b15b01689c4be6315641dadaf9021240d67039ed88f651a3fe131581b60e71da8a4d9776952bed9db144c1340c98cf119e5746b53a16c9 SHA512 ace451e7aafc61e21422a81e50d3954189f80fec50160002c579db27865b46c95dc6db557533a9aa6ef3ca744394542754ba46f96de90a026e19a14477522e50 AUX ekeyd-1.1.5-misc.patch 1245 BLAKE2B 555c6406461226ec8867f226e88bb9ca4f39d0a726c241c1638dd3339434b9f1d34620319de42c62e034da12cabebb739c92cc5df96ec9d3c79b339be839d6a2 SHA512 5a1a523fab7146e97f8396ef82d6755e1b209df728ee83dae87619a0a6d84b0b44e41b9e67f287b7f3d54a2ef80a19320650662cca0f1dfe0053eba75d113f04 diff --git a/app-crypt/ekeyd/files/ekey-ulusbd.conf.2 b/app-crypt/ekeyd/files/ekey-ulusbd.conf.2 deleted file mode 100644 index 15a641fa3ffe..000000000000 --- a/app-crypt/ekeyd/files/ekey-ulusbd.conf.2 +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2009-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# The userland USB daemon has to know the USB path of the EntopyKey to -# work properly; in alternative to providing these statically, they -# can be found by giving the serial of the key. -# -# The serial will also be used to set the default path to open the -# socket to. - -EKEY_SERIAL="" -#USB_BUS="" -#USB_DEV="" - -# this is set by default -# SOCKET_PATH="/var/run/ekey-ulusbd-${EKEY_SERIAL}" diff --git a/app-crypt/ekeyd/files/ekey-ulusbd.init.2 b/app-crypt/ekeyd/files/ekey-ulusbd.init.2 deleted file mode 100644 index ef52db2a6685..000000000000 --- a/app-crypt/ekeyd/files/ekey-ulusbd.init.2 +++ /dev/null @@ -1,40 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2009-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -INSTANCE="${SVCNAME#*.}" -if [ -z "${INSTANCE}" -o "${SVCNAME}" = "ekey-ulusbd" ]; then - INSTANCE="ekey-ulusbd" -fi - -: ${SOCKET_PATH:=/var/run/ekey-ulusbd-${EKEY_SERIAL}} - -description="EntropyKey Userland USB Daemon" - -pidfile=/var/run/$SVCNAME.pid -command=/usr/libexec/ekey-ulusbd -command_args="-P ${pidfile} -p ${SOCKET_PATH}" - -depend() { - need localmount -} - -start() { - if [ -z ${USB_BUS} ]; then - set -- $(lsusb -v -d 20df:0001 | \ - egrep '(^Bus|iSerial)' | \ - grep -B1 "${EKEY_SERIAL}" | \ - head -n 1 | \ - cut -c 5-7,15-18) - USB_BUS=$1 - USB_DEV=$2 - fi - - ebegin "Starting ${description}" - start-stop-daemon \ - --start --pidfile ${pidfile} \ - --exec ${command} -- \ - ${command_args} \ - -b $(printf %03d ${USB_BUS}) -d $(printf %03d ${USB_DEV}) -D - eend $? -} diff --git a/app-crypt/ekeyd/files/ekeyd-1.1.4-gentoo.patch b/app-crypt/ekeyd/files/ekeyd-1.1.4-gentoo.patch deleted file mode 100644 index f1491362e83f..000000000000 --- a/app-crypt/ekeyd/files/ekeyd-1.1.4-gentoo.patch +++ /dev/null @@ -1,133 +0,0 @@ -Index: ekeyd-1.1.4/host/ekeyd.c -=================================================================== ---- ekeyd-1.1.4.orig/host/ekeyd.c -+++ ekeyd-1.1.4/host/ekeyd.c -@@ -209,7 +209,7 @@ open_foldback_output(void) - return (output_stream != NULL); - } - --static const char *usage= -+static const char usage[]= - "Usage: %s [-f <configfile>] [-p <pidfile>] [-v] [-h]\n" - "Entropy Key Daemon\n\n" - "\t-f Read configuration from configfile\n" -Index: ekeyd-1.1.4/host/ekey-setkey.c -=================================================================== ---- ekeyd-1.1.4.orig/host/ekey-setkey.c -+++ ekeyd-1.1.4/host/ekey-setkey.c -@@ -79,7 +79,7 @@ calc_mac(uint8_t *snum, uint8_t *mkey, u - return mac; - } - --static const char *usage = -+static const char usage[] = - "Usage: %s [-d] [-h] [-n] [-f <keyring>] [-m <master>]\n" - " [-s <serial>] <path>\n" - "Entropy key device long term session key tool\n\n" -Index: ekeyd-1.1.4/host/ekey-ulusbd.c -=================================================================== ---- ekeyd-1.1.4.orig/host/ekey-ulusbd.c -+++ ekeyd-1.1.4/host/ekey-ulusbd.c -@@ -100,7 +100,8 @@ find_usb_device(char *busmatch, char *de - - #if LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP - if ((r = usb_detach_kernel_driver_np(devh, EKEY_IFACE)) != 0) { -- if (r != -ENODATA) { -+ /* libusb_compat-0.1.3 mistakenly translate ENODATA to ENOENT */ -+ if (r != -ENODATA && r != -ENOENT) { - fprintf(stderr, - "Unable to detach Entropy Key at %s/%s from kernel\n", - busmatch, devmatch); -Index: ekeyd-1.1.4/udev/entropykey.sh -=================================================================== ---- ekeyd-1.1.4.orig/udev/entropykey.sh -+++ ekeyd-1.1.4/udev/entropykey.sh -@@ -19,9 +19,9 @@ wait_for_usb () { - COUNTER=$(( ${COUNTER} + 1 )) - test ${COUNTER} -ge 10 && exit 1 - done -- $BINPATH/ekey-ulusbd -b${BUSNUM} -d${DEVNUM} -P/var/run/ekey-ulusbd-${ENTROPY_KEY_SERIAL}.pid -p/var/run/entropykeys/${ENTROPY_KEY_SERIAL} -D -+ /usr/libexec/ekey-ulusbd -b${BUSNUM} -d${DEVNUM} -P/dev/.ekey-ulusbd/${ENTROPY_KEY_SERIAL}.pid -p/dev/entropykey/${ENTROPY_KEY_SERIAL} -D - sleep 1 -- $BINPATH/ekeydctl ${ACTION} /var/run/entropykeys/${ENTROPY_KEY_SERIAL} -+ $BINPATH/ekeydctl ${ACTION} /dev/entropykey/${ENTROPY_KEY_SERIAL} - exit 0 - } - -@@ -34,18 +34,18 @@ else - if test "x${BUSNUM}" = "x" -o "x${DEVNUM}" = "x"; then - exit 0 - fi -- if test -r "/var/run/ekey-ulusbd-${ENTROPY_KEY_SERIAL}.pid"; then -- kill $(cat "/var/run/ekey-ulusbd-${ENTROPY_KEY_SERIAL}.pid") || true -+ if test -r "/dev/.ekey-ulusbd/${ENTROPY_KEY_SERIAL}.pid"; then -+ kill $(< "/dev/.ekey-ulusbd/${ENTROPY_KEY_SERIAL}.pid") || true - fi -- mkdir -p /var/run/entropykeys -+ mkdir -p /dev/entropykey /dev/.ekeyd-ulusb - wait_for_usb & - exit 0 - fi - # Update ekeyd with device operation -- $BINPATH/ekeydctl ${ACTION} /var/run/entropykeys/${ENTROPY_KEY_SERIAL} -+ $BINPATH/ekeydctl ${ACTION} /dev/entropykey/${ENTROPY_KEY_SERIAL} - if test "x$ACTION" = "xremove"; then -- rm "/var/run/ekey-ulusbd-${ENTROPYKEY_KEY_SERIAL}.pid" -- rm "/var/run/entropykeys/${ENTROPYKEY_KEY_SERIAL}" -+ rm "/dev/.ekey-ulusbd/${ENTROPYKEY_KEY_SERIAL}.pid" -+ rm "/dev/entropykey/${ENTROPYKEY_KEY_SERIAL}" - fi - fi - -Index: ekeyd-1.1.4/udev/fedora15/60-entropykey.rules -=================================================================== ---- ekeyd-1.1.4.orig/udev/fedora15/60-entropykey.rules -+++ ekeyd-1.1.4/udev/fedora15/60-entropykey.rules -@@ -9,10 +9,10 @@ - # For licence terms refer to the COPYING file distributed with the source. - - # Detect an Entropy Key being inserted and add info values to environment --ACTION=="add|change|remove", SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", BUS=="usb", ATTRS{idVendor}=="20df", ATTRS{idProduct}=="0001", IMPORT{program}="usb_id --export %p" -+ACTION=="add|change|remove", SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}=="20df", ATTRS{idProduct}=="0001", IMPORT{program}="usb_id --export %p" - - # Detect an Entropy Key being inserted and extract serial number --ACTION=="add|change|remove", SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}=="20df", ATTRS{idProduct}=="0001", IMPORT{program}="/bin/echo ENTROPY_KEY_SERIAL=$env{ID_SERIAL_SHORT}" -+ACTION=="add|change|remove", SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}=="20df", ATTRS{idProduct}=="0001", IMPORT{program}="/bin/sh -c '/bin/echo ENTROPY_KEY_SERIAL=$env{ID_SERIAL_SHORT} | /bin/sed -e s:/:_:g'" - - # Add the /dev/entropykey/<serialnumber> symbolic link - ENV{ENTROPY_KEY_SERIAL}!="", SYMLINK+="entropykey/$env{ENTROPY_KEY_SERIAL}" -Index: ekeyd-1.1.4/udev/fedora15/60-entropykey-uds.rules -=================================================================== ---- ekeyd-1.1.4.orig/udev/fedora15/60-entropykey-uds.rules -+++ ekeyd-1.1.4/udev/fedora15/60-entropykey-uds.rules -@@ -9,7 +9,7 @@ - # For licence terms refer to the COPYING file. - - # Detect an Entropy Key being inserted and extract serial number --ACTION=="add|change|remove", SUBSYSTEM=="usb", BUS=="usb", ATTRS{idVendor}=="20df", ATTRS{idProduct}=="0001", IMPORT{program}="/bin/echo ENTROPY_KEY_SERIAL=$attr{serial}" -+ACTION=="add|change|remove", SUBSYSTEM=="usb", ATTRS{idVendor}=="20df", ATTRS{idProduct}=="0001", IMPORT{program}="/bin/sh -c '/bin/echo ENTROPY_KEY_SERIAL=$env{ID_SERIAL_SHORT} | /bin/sed -e s:/:_:g'" - - # And tell the ekeyd about the device action. - ENV{ENTROPY_KEY_SERIAL}!="", RUN+="/lib/udev/entropykey.sh" -Index: ekeyd-1.1.4/host/Makefile -=================================================================== ---- ekeyd-1.1.4.orig/host/Makefile -+++ ekeyd-1.1.4/host/Makefile -@@ -107,7 +107,7 @@ OPT ?= -O2 - CFLAGS += $(INCLUDES) - CFLAGS += -g -Wall $(OPT) - CFLAGS += -fno-strict-aliasing --CFLAGS += -std=c99 -Wall -pedantic -Wshadow -Werror -D_GNU_SOURCE -+CFLAGS += -std=c99 -Wall -pedantic -Wshadow -D_GNU_SOURCE - CFLAGS += '-DCONFIGFILE="$(SYSCONFPREFIX)/ekeyd.conf"' - CFLAGS += '-DPIDFILE="$(RUNTIMEPREFIX)/ekeyd.pid"' - CFLAGS += '-DKEYRINGFILE="$(SYSCONFPREFIX)/keyring"' -@@ -148,7 +148,7 @@ daemonise_ulusbd.o: daemonise.c - $(COMPILE.c) $(OUTPUT_OPTION) $(PTHFLAGS) $^ - - egd-linux: egd-linux.o daemonise.o -- $(CC) $(CFLAGS) -o $@ $^ -+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ - - ekeyd: ekeyd.o daemonise.o lstate.o connection.o stream.o frame.o packet.o keydb.o util.o fds.o krnlop.o foldback.o stats.o nonce.o ../device/frames/pem.o ../device/skeinwrap.o ../device/skein/skein.o ../device/skein/skein_block.o - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |