1 DESCRIPTION = "GnuPG 2"
2 HOMEPAGE = "http://www.gnupg.org/aegypten2/"
3 SECTION = "Security/Certificate Management"
11 inherit manifest autotools-brokensep
17 # the PROVIDES rules is ignore "gnupg = 2.0.19"
19 RPROVIDES_gpg2 += "gnupg"
20 # the PROVIDES rules is ignore "gpg = 1.4.9"
22 RPROVIDES_gpg2 += "gpg"
23 # the PROVIDES rules is ignore "newpg "
25 RPROVIDES_gpg2 += "newpg"
26 # the PROVIDES rules is ignore "gpg2_signd_support "
27 PROVIDES += "gpg2_signd_support"
28 RPROVIDES_gpg2 += "gpg2_signd_support"
35 #Replace "DEPENDS" on gettext by "inherit gettext"
38 DEPENDS += "libassuan"
43 DEPENDS += "libgpg-error"
44 DEPENDS_append_class-native = " automake-native"
45 DEPENDS_append_class-target = " automake-native"
46 DEPENDS_append_class-native = " readline-native"
47 DEPENDS_append_class-target = " readline-native"
51 DEPENDS_append_class-native = " fdupes-native"
52 DEPENDS_append_class-target = " fdupes-native"
53 DEPENDS += "libgcrypt"
57 chmod -Rf a+rX,u+w,g-w,o-w ${S}
58 #setup -q -n gnupg-2.0.19
59 cp ${S}/packaging/gpg2.manifest .
64 bb.build.exec_func('do_prep', d)
75 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
77 # build PIEs (position independent executables) for address space randomisation:
79 export CFLAGS="$CFLAGS ${PIE}"
83 autotools_do_configure
85 oe_runmake ${PARALLEL_MAKE}
90 EXTRA_OECONF += " --libexecdir=${prefix}/lib --docdir=${prefix}/share/doc/packages/gpg2 --with-agent-pgm=${prefix}/bin/gpg-agent --with-scdaemon-pgm=${prefix}/bin/scdaemon --enable-gpgsm=yes --enable-gpg --with-gnu-ld --disable-doc"
93 export RPM_BUILD_ROOT=${D}
105 BINDIR=${prefix}/bin \
107 rm -f ${D}${infodir}/dir
108 find ${D} -regex ".*\.la$" | xargs rm -f --
109 find ${D} -regex ".*\.a$" | xargs rm -f --
110 mkdir -p ${D}${sysconfdir}/gnupg/
112 install -m 644 doc/examples/gpgconf.conf ${D}${sysconfdir}/gnupg
114 rm -rf ${D}${prefix}/share/doc/packages/gpg2/examples/gpgconf.conf
116 ln -sf gpg2 ${D}${prefix}/bin/gpg
117 ln -sf gpgv2 ${D}${prefix}/bin/gpgv
119 rm -rf ${D}${prefix}/share/locale/en@{bold,}quot
120 rm -rf ${D}${prefix}/share/locale/en@{bold,}quot
121 rm -fr ${D}${prefix}/share/doc
130 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
134 gpg2_files += "${prefix}/bin/*"
135 gpg2_files += "${prefix}/lib/[^d]*"
136 gpg2_files += "${prefix}/sbin/addgnupghome"
137 gpg2_files += "${prefix}/sbin/applygnupgdefaults"
138 gpg2_files += "${prefix}/share/gnupg"
139 gpg2_files += "${sysconfdir}/gnupg/gpgconf.conf"
140 MANIFESTFILES_${PN} = "gpg2.manifest"
142 FILES_${PN} = "${gpg2_files}"
146 require gpg2-extraconf.inc