blob: 85636ab8f938d5cb014ba225bba7dc9ee832df58 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001SUMMARY = "GNU Privacy Guard - encryption and signing tools"
2HOMEPAGE = "http://www.gnupg.org/"
3DEPENDS = "zlib bzip2 readline"
4SECTION = "console/utils"
5
6LICENSE = "GPLv2"
7
8LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
9
10PR = "r9"
11
12SRC_URI = "${GNUPG_MIRROR}/gnupg/gnupg-${PV}.tar.bz2 \
13 file://long-long-thumb.patch \
14 file://configure.patch \
15 file://mips_gcc4.4.patch \
16 file://GnuPG1-CVE-2012-6085.patch \
17 file://curl_typeof_fix_backport.patch \
18 file://CVE-2013-4351.patch \
19 file://CVE-2013-4576.patch \
20 file://CVE-2013-4242.patch \
21 file://fix-ustar-check-issue.patch \
22 "
23
24SRC_URI[md5sum] = "b06a141cca5cd1a55bbdd25ab833303c"
25SRC_URI[sha256sum] = "69d18b7d193f62ca27ed4febcb4c9044aa0c95305d3258fe902e2fae5fc6468d"
26
27inherit autotools gettext texinfo
28
29# --with-egd-socket=NAME use NAME for the EGD socket
30# --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
31# --with-included-zlib use the zlib code included here
32# --with-capabilities use linux capabilities default=no
33# --with-mailprog=NAME use "NAME -t" for mail transport
34# --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
35# --without-libiconv-prefix don't search for libiconv in includedir and libdir
36# --with-included-gettext use the GNU gettext library included here
37# --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
38# --without-libintl-prefix don't search for libintl in includedir and libdir
39# --without-readline do not support fancy command line editing
40# --with-included-regex use the included GNU regex library
41# --with-zlib=DIR use libz in DIR
42# --with-bzip2=DIR look for bzip2 in DIR
43# --enable-static-rnd=egd|unix|linux|auto
44# --disable-dev-random disable the use of dev random
45# --disable-asm do not use assembler modules
46# --enable-m-guard enable memory guard facility
47# --enable-selinux-support
48# enable SELinux support
49# --disable-card-support disable OpenPGP card support
50# --disable-gnupg-iconv disable the new iconv code
51# --enable-backsigs enable the experimental backsigs code
52# --enable-minimal build the smallest gpg binary possible
53# --disable-rsa disable the RSA public key algorithm
54# --disable-idea disable the IDEA cipher
55# --disable-cast5 disable the CAST5 cipher
56# --disable-blowfish disable the BLOWFISH cipher
57# --disable-aes disable the AES, AES192, and AES256 ciphers
58# --disable-twofish disable the TWOFISH cipher
59# --disable-sha256 disable the SHA-256 digest
60# --disable-sha512 disable the SHA-384 and SHA-512 digests
61# --disable-bzip2 disable the BZIP2 compression algorithm
62# --disable-exec disable all external program execution
63# --disable-photo-viewers disable photo ID viewers
64# --disable-keyserver-helpers disable all external keyserver support
65# --disable-ldap disable LDAP keyserver interface
66# --disable-hkp disable HKP keyserver interface
67# --disable-http disable HTTP key fetching interface
68# --disable-finger disable Finger key fetching interface
69# --disable-mailto disable email keyserver interface
70# --disable-keyserver-path disable the exec-path option for keyserver helpers
71# --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
72# --disable-largefile omit support for large files
73# --disable-dns-srv disable the use of DNS SRV in HKP and HTTP
74# --disable-nls do not use Native Language Support
75# --disable-regex do not handle regular expressions in trust sigs
76
77EXTRA_OECONF = "--disable-ldap \
78 --with-zlib=${STAGING_LIBDIR}/.. \
79 --with-bzip2=${STAGING_LIBDIR}/.. \
80 --disable-selinux-support \
81 --with-readline=${STAGING_LIBDIR}/.. \
82 ac_cv_sys_symbol_underscore=no \
83 ac_cv_path_TAR=${base_bindir}/tar \
84 "
85
86# Force gcc's traditional handling of inline to avoid issues with gcc 5
87CFLAGS += "-fgnu89-inline"
88
89do_install () {
90 autotools_do_install
91 install -d ${D}${docdir}/${BPN}
92 mv ${D}${datadir}/${BPN}/* ${D}/${docdir}/${BPN}/ || :
93 mv ${D}${prefix}/doc/* ${D}/${docdir}/${BPN}/ || :
94}
95
96# split out gpgv from main package
97RDEPENDS_${PN} = "gpgv"
98PACKAGES =+ "gpgv"
99FILES_gpgv = "${bindir}/gpgv"
100
101# Exclude debug files from the main packages
102FILES_${PN} = "${bindir}/* ${datadir}/${BPN} ${libexecdir}/${BPN}/*"
103
104PACKAGECONFIG ??= ""
105PACKAGECONFIG[curl] = "--with-libcurl=${STAGING_LIBDIR},--without-libcurl,curl"
106PACKAGECONFIG[libusb] = "--with-libusb=${STAGING_LIBDIR},--without-libusb,libusb-compat"