]> err.no Git - yubikey-personalization.old/commitdiff
Add pkg-config script and document versioning.
authorSimon Josefsson <simon@josefsson.org>
Thu, 27 Aug 2009 14:30:32 +0000 (14:30 +0000)
committerSimon Josefsson <simon@josefsson.org>
Thu, 27 Aug 2009 14:30:32 +0000 (14:30 +0000)
Makefile.am
NEWS
configure.ac
ykpers-1.pc.in [new file with mode: 0644]

index 806f56005e1ebc8728a78594f9ae9e5dc8c85bfe..7a13049b9ce10410c8fd08d8b2c7ff3c510f4c6b 100644 (file)
@@ -44,10 +44,14 @@ libykpers_1_la_SOURCES = ykpers.c ykpbkdf2.h ykpbkdf2.c
 libykpers_1_la_SOURCES += rfc4634/hmac.c rfc4634/usha.c rfc4634/sha.h  \
        rfc4634/sha1.c rfc4634/sha224-256.c rfc4634/sha384-512.c        \
        rfc4634/sha-private.h
+libykpers_1_la_SOURCES += ykpers-1.pc.in
 libykpers_1_la_LIBADD = $(LTLIBYUBIKEY) ./ykcore/libykcore.la
 libykpers_1_la_LDFLAGS = -no-undefined \
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = ykpers-1.pc
+
 # The command line tools.
 
 bin_PROGRAMS = ykpersonalize
diff --git a/NEWS b/NEWS
index e8cba2086e515a24f357321d3c2369f795e340b2..7f7b8e71930ef45249ee4d59d6840b1edc031e27 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,11 +7,24 @@ It's still possible to give modhex numbers by preceding them with
 `m:'.
 
 ** Make it possible to program the second configuration.
-Added the two flags -1 and -2 to ykpersonalize.
+Added the two flags -1 and -2 to ykpersonalize.  This is to support
+the YubiKey II.
 
 ** Have ykpersonalize show the new configuration and prompt.
 This makes it possible for the user to prevent incorrect configurations.
 
+** Rename installed library to "libykpers-1" and place
+** installed header files in sub-directory ykpers-1/.
+From now on we promise to retain API and ABI under this name forever.
+The shared library will be installed as /usr/lib/libykpers-1.so and
+the header files into /usr/include/ykpers-1/.  If there is ever an
+incompatible API or ABI change in the future, it will be released as a
+a new library libykpers-2 with header files in ykpers-2/.
+
+** Add pkg-config script "ykpers-1".
+To learn which flags to build the applications that uses the library,
+use "pkg-config --cflags --libs ykpers-1".
+
 * Version 0.95 (released 2009-08-17)
 
 ** Enable handling of programming access code.
index 9b8fcdc574c36a51f3aad87da3b7380c5e95239c..e308ad53df227311515a4fbc2f92d082f8ab3446 100644 (file)
@@ -102,6 +102,7 @@ fi
 
 AC_CONFIG_FILES([
   Makefile
+  ykpers-1.pc
   ykcore/Makefile
 ])
 AC_OUTPUT
diff --git a/ykpers-1.pc.in b/ykpers-1.pc.in
new file mode 100644 (file)
index 0000000..4d0a700
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Libykpers
+Description: Personalization library for the YubiKey
+URL: http://www.yubico.com/
+Version: @VERSION@
+Libs: -L${libdir} -lykpers-1
+Cflags: -I${includedir}/ykpers-1