summaryrefslogtreecommitdiff
path: root/misc/ykpers/ykpers.SlackBuild
diff options
context:
space:
mode:
authorT3slider <t3slider@gmail.com>2016-12-03 22:14:45 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-12-04 19:28:52 +0000
commitf17bbbb622d9d3a17a9633f09499a71bf903c24f (patch)
tree151c79d20c2069b4476a0ae1cd3e1becb4356922 /misc/ykpers/ykpers.SlackBuild
parentd030ce83d123e06f72a2cddc25654a24e9767ae2 (diff)
downloadslackbuilds-f17bbbb622d9d3a17a9633f09499a71bf903c24f.tar.gz
misc/ykpers: Updated for version 1.17.3.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc/ykpers/ykpers.SlackBuild')
-rw-r--r--misc/ykpers/ykpers.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/misc/ykpers/ykpers.SlackBuild b/misc/ykpers/ykpers.SlackBuild
index 7b8e8c1574..a1f507db36 100644
--- a/misc/ykpers/ykpers.SlackBuild
+++ b/misc/ykpers/ykpers.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ykpers
-# Copyright 2013 T3slider <t3slider@gmail.com>
+# Copyright 2016 T3slider <t3slider@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ykpers
-VERSION=${VERSION:-1.17.2}
+VERSION=${VERSION:-1.17.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -86,9 +86,15 @@ CXXFLAGS="$SLKCFLAGS" \
make check
make install-strip DESTDIR=$PKG
-# Can't use the included udev rules because they are incompatible with 182.
mkdir -p $PKG/etc/udev/rules.d
+
+# Uncomment the next line and comment the following line to use the upstream
+# udev rules instead (untested) which would give all local console users access
+# instead of just those in the yubikey group
+
+#install -m 644 70-yubikey.rules $PKG/etc/udev/rules.d
install -m 644 $CWD/90-yubikey.rules $PKG/etc/udev/rules.d
+
sed -i "s/yubikey/${GROUPNAME}/" $PKG/etc/udev/rules.d/90-yubikey.rules
find $PKG/usr/man -type f -exec gzip -9 {} \;