1 DESCRIPTION = "GnuPG 2"
2 HOMEPAGE = "http://www.gnupg.org/aegypten2/"
3 SECTION = "Security/Certificate Management"
14 RPROVIDES_gpg2 += "gpg2"
15 # the PROVIDES rules is ignore "gnupg = 2.0.19"
17 RPROVIDES_gpg2 += "gnupg"
18 # the PROVIDES rules is ignore "gpg = 1.4.9"
20 RPROVIDES_gpg2 += "gpg"
21 # the PROVIDES rules is ignore "newpg "
23 RPROVIDES_gpg2 += "newpg"
24 # the PROVIDES rules is ignore "gpg2_signd_support "
25 PROVIDES += "gpg2_signd_support"
26 RPROVIDES_gpg2 += "gpg2_signd_support"
32 DEPENDS += "zlib-devel"
33 DEPENDS += "libpth-devel"
34 DEPENDS += "readline-devel"
36 DEPENDS += "libgpg-error-devel"
37 DEPENDS += "libksba-devel"
38 #Replace "DEPENDS" on gettext by "inherit gettext"
40 DEPENDS += "automake-native"
41 DEPENDS += "pkgconfig(libusb-1.0)"
43 DEPENDS += "libgcrypt-devel"
45 DEPENDS += "fdupes-native"
46 DEPENDS += "libassuan-devel"
49 chmod -Rf a+rX,u+w,g-w,o-w ${S}
50 #setup -q -n gnupg-2.0.19
51 cp ${S}/packaging/gpg2.manifest .
63 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
64 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
65 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
66 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
69 # build PIEs (position independent executables) for address space randomisation:
71 export CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables ${PIE}"
74 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
75 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
76 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
77 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
78 --target=x86_64-tizen-linux \
85 --datadir=/usr/share \
86 --includedir=/usr/include \
88 --libexecdir=/usr/libexec \
89 --localstatedir=/var \
90 --sharedstatedir=/usr/com \
91 --mandir=/usr/share/man \
92 --infodir=/usr/share/info \
93 --libexecdir=/usr/lib \
94 --docdir=/usr/share/doc/packages/gpg2 \
95 --with-agent-pgm=/usr/bin/gpg-agent \
96 --with-scdaemon-pgm=/usr/bin/scdaemon \
105 ${D}/usr/bin/gpgsplit -v -p pubsplit- --uncompress <tests/openpgp/pubring.gpg
106 ${D}/usr/bin/gpgsplit -v -p secsplit- --secret-to-public --uncompress <tests/openpgp/secring.gpg
113 echo export RPM_BUILD_ROOT=${D}
126 rm -f ${D}/usr/share/info/dir
127 find ${D} -regex ".*\.la$" | xargs rm -f --
128 find ${D} -regex ".*\.a$" | xargs rm -f --
129 mkdir -p ${D}/etc/gnupg/
131 install -m 644 doc/examples/gpgconf.conf ${D}/etc/gnupg
133 rm -rf ${D}/usr/share/doc/packages/gpg2/examples/gpgconf.conf
135 ln -sf gpg2 ${D}/usr/bin/gpg
136 ln -sf gpgv2 ${D}/usr/bin/gpgv
137 ln -sf gpg2.1 ${D}/usr/share/man/man1/gpg.1
138 ln -sf gpgv2.1 ${D}/usr/share/man/man1/gpgv.1
140 rm -rf ${D}//usr/share/locale/en@{bold,}quot
142 /usr/share/spec2yocto/macro/lib/find-lang.sh ${D} gnupg2
148 fdupes -q -n -r ${D} |
150 if test -z "$_target" ; then
153 if test -z "$_file" ; then
157 if test "$_symlinks" = 1; then
158 ln -sf "${_target#${D}}" "$_file";
160 ln -f "$_target" "$_file";
174 gpg2_files += "gpg2.manifest"
175 gpg2_files += "/usr/share/info/gnupg*"
176 gpg2_files += "/usr/share/doc/packages/gpg2"
177 gpg2_files += "/usr/share/man/man*/*"
178 gpg2_files += "/usr/bin/*"
179 gpg2_files += "/usr/lib/[^d]*"
180 gpg2_files += "/usr/sbin/addgnupghome"
181 gpg2_files += "/usr/sbin/applygnupgdefaults"
182 gpg2_files += "/usr/share/gnupg"
183 gpg2_files += "/etc/gnupg"
184 gpg2_files += "/etc/gnupg/gpgconf.conf"
186 FILES_${PN} = "${gpg2_files}"
190 require gpg2-extraconf.inc