diff options
author | Niklas 'Nille' Åkerström <nille.kungen[AT]gmail.com> | 2011-05-31 22:25:00 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-06-13 01:33:38 -0400 |
commit | 7323fe1372e69d4f7325a8cef16a48a50499c7c9 (patch) | |
tree | 81186ed97177bb82ac712efc338aa2a36e0b359a | |
parent | 3af205dd98d80add69fba7c527b5fe5e2fb47abd (diff) | |
download | slackbuilds-7323fe1372e69d4f7325a8cef16a48a50499c7c9.tar.gz |
misc/fribid: Updated for version 0.3.0.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r-- | misc/fribid/README | 15 | ||||
-rw-r--r-- | misc/fribid/fribid.SlackBuild | 23 | ||||
-rw-r--r-- | misc/fribid/fribid.info | 6 | ||||
-rw-r--r-- | misc/fribid/seamonkey-nss_compile_fix.patch | 30 |
4 files changed, 35 insertions, 39 deletions
diff --git a/misc/fribid/README b/misc/fribid/README index 46f58e22da..2510b81c9f 100644 --- a/misc/fribid/README +++ b/misc/fribid/README @@ -3,3 +3,18 @@ identification) with BankID. With free means that the source code is availible for everyone to study, copy and/or improve. FriBID is cross plattform and works on plattforms thats not supported by the official client. + +If you need PKCS#11 smartcard support then you need to use the PKCS11 +variable. + +The options are: +PKCS11=yes +PKCS11=runtime +yes needs opensc installed. +runtime adds runtime support and doesn't need opensc installed it +can be installed later and fribid checks for opensc when started. +Or leave it alone for disabled. + +Optional dependencies: +opensc Adds PKCS#11 smartcard support if your reader is supported +by opensc.
\ No newline at end of file diff --git a/misc/fribid/fribid.SlackBuild b/misc/fribid/fribid.SlackBuild index ccee7ccaae..ab8a6d1e5f 100644 --- a/misc/fribid/fribid.SlackBuild +++ b/misc/fribid/fribid.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for fribid -# Copyright 2010 Niklas "Nille" Åkerström +# Copyright 2010 Niklas "Nille" Ã…kerström # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,9 +24,11 @@ PRGNAM=fribid -VERSION=${VERSION:-0.1.3} +VERSION=${VERSION:-0.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Should we build PKCS#11 smartcard support YES RUNTIME or nothing. +PKCS11=$(echo $PKCS11 | tr 'a-z' 'A-Z') # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -43,6 +45,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$PKCS11" = "YES" ]; then + PKCS="--enable-pkcs11" +elif [ "$PKCS11" = "RUNTIME" ]; then + PKCS="--optional-pkcs11" +else + PKCS="--disable-pkcs11" +fi + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" @@ -57,7 +67,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -72,14 +82,13 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# patch to compile against system nss -patch -p1 < $CWD/seamonkey-nss_compile_fix.patch CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --plugin-path=/usr/lib${LIBDIRSUFFIX}/mozilla/plugins \ - --libdir=/usr/lib${LIBDIRSUFFIX} + --libdir=/usr/lib${LIBDIRSUFFIX} \ + $PKCS make make install DESTDIR=$PKG @@ -87,6 +96,8 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +mkdir -p $PKG/usr/man +mv $PKG/usr/share/man $PKG/usr mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ diff --git a/misc/fribid/fribid.info b/misc/fribid/fribid.info index 8db5f66e6e..a4a611d6d4 100644 --- a/misc/fribid/fribid.info +++ b/misc/fribid/fribid.info @@ -1,8 +1,8 @@ PRGNAM="fribid" -VERSION="0.1.3" +VERSION="0.3.0" HOMEPAGE="http://www.fribid.se" -DOWNLOAD="http://www.fribid.se/releases/source/fribid-0.1.3.tar.bz2" -MD5SUM="19b5d0db9ba6d11972bc7c8f34ea75fa" +DOWNLOAD="http://www.fribid.se/releases/source/fribid-0.3.0.tar.bz2" +MD5SUM="18657422f71f7a35f2e2d35d5bcdabcd" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Niklas 'Nille' Ã…kerström" diff --git a/misc/fribid/seamonkey-nss_compile_fix.patch b/misc/fribid/seamonkey-nss_compile_fix.patch deleted file mode 100644 index bfcdb3ce91..0000000000 --- a/misc/fribid/seamonkey-nss_compile_fix.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -ur fribid-0.1.2.orig/client/Makefile fribid-0.1.2/client/Makefile ---- fribid-0.1.2.orig/client/Makefile 2010-03-24 00:32:27.000000000 +0100 -+++ fribid-0.1.2/client/Makefile 2010-04-07 21:24:16.000000000 +0200 -@@ -22,10 +22,10 @@ - - CFLAGS ?= -O2 -g - COMMONCFLAGS=$(CFLAGS) -Wall -Wextra -std=c99 -pedantic -Wno-unused-parameter --CCFLAGS=$(COMMONCFLAGS) -I../npapi/include `pkg-config --cflags 'gtk+-2.0 >= 2.12' glib-2.0 'nss >= 3.10' nspr` -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -+CCFLAGS=$(COMMONCFLAGS) -I../npapi/include `pkg-config --cflags 'gtk+-2.0 >= 2.12' glib-2.0 'nss >= 2.0' nspr` -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 - # You may have to add -lpthread after $(LDFLAGS) on OpenBSD - LINKFLAGS=$(CFLAGS) $(LDFLAGS) -Wl,--as-needed --LIBS=`pkg-config --libs 'gtk+-2.0 >= 2.12' glib-2.0 'nss >= 3.10' nspr` -+LIBS=`pkg-config --libs 'gtk+-2.0 >= 2.12' glib-2.0 'nss >= 2.0' nspr` - - # Files to be installed - LIB_PATH=`../configure --internal--get-define=LIB_PATH` -Endast i fribid-0.1.2/common: config.h -diff -ur fribid-0.1.2.orig/configure fribid-0.1.2/configure ---- fribid-0.1.2.orig/configure 2010-03-24 00:32:27.000000000 +0100 -+++ fribid-0.1.2/configure 2010-04-07 21:25:17.000000000 +0200 -@@ -171,7 +171,7 @@ - - oldifs=IFS - IFS=";" --pkgconfigDeps="gtk+-2.0 >= 2.12;glib-2.0;nss >= 3.10;nspr;x11" -+pkgconfigDeps="gtk+-2.0 >= 2.12;glib-2.0;nss >= 2.0;nspr;x11" - - if ! pkg-config --exists $pkgconfigDeps; then - echo "Error: Unsatisfied dependencies: " >&2 -Endast i fribid-0.1.2/: configure~ |