devnodes-minimal: new recipe to create /dev/console and /dev/null
[opendreambox.git] / meta-opendreambox / recipes-devtools / opkg / opkg / 0015-opkg-key-don-t-install-unless-compiled-with-GPG-supp.patch
1 From 663e7a2798f325bcf07b084ba53f50878bb6e0a2 Mon Sep 17 00:00:00 2001
2 From: Andreas Oberritter <obi@opendreambox.org>
3 Date: Wed, 10 Jul 2013 16:32:50 +0200
4 Subject: [PATCH 15/17] opkg-key: don't install unless compiled with GPG
5  support
6
7 Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
8 ---
9  configure.ac      | 1 +
10  man/Makefile.am   | 7 +++++--
11  utils/Makefile.am | 6 +++++-
12  3 files changed, 11 insertions(+), 3 deletions(-)
13
14 diff --git a/configure.ac b/configure.ac
15 index 6c52339..bb62e34 100644
16 --- a/configure.ac
17 +++ b/configure.ac
18 @@ -169,6 +169,7 @@ if test "x$want_gpgme" = "xyes"; then
19      AC_MSG_ERROR(GPGME $min_gpgme_version or later needed)
20    fi
21  fi
22 +AM_CONDITIONAL(HAVE_GPGME, test "x$want_gpgme" = "xyes")
23  
24  AC_SUBST(GPGME_CFLAGS)
25  AC_SUBST(GPGME_LIBS)
26 diff --git a/man/Makefile.am b/man/Makefile.am
27 index 6d0a535..2fbf769 100644
28 --- a/man/Makefile.am
29 +++ b/man/Makefile.am
30 @@ -1,2 +1,5 @@
31 -man_MANS=opkg-cl.1 \
32 -  opkg-key.1
33 +man_MANS = opkg-cl.1
34 +
35 +if HAVE_GPGME
36 +man_MANS += opkg-key.1
37 +endif
38 diff --git a/utils/Makefile.am b/utils/Makefile.am
39 index acac628..23f97ca 100644
40 --- a/utils/Makefile.am
41 +++ b/utils/Makefile.am
42 @@ -1,3 +1,7 @@
43 -bin_SCRIPTS = update-alternatives opkg-key
44 +bin_SCRIPTS = update-alternatives
45 +
46 +if HAVE_GPGME
47 +bin_SCRIPTS += opkg-key
48 +endif
49  
50  EXTRA_DIST = $(bin_SCRIPTS)
51 -- 
52 1.8.1.2
53