gnupg: update to 2.2.28

This commit is contained in:
Đoàn Trần Công Danh 2021-07-10 01:01:00 +07:00 committed by Đoàn Trần Công Danh
parent 937fd7f4f3
commit a590aeea93
6 changed files with 40 additions and 20 deletions

View file

@ -0,0 +1,16 @@
No brainer patch converted from
vsed -i 's/HAVE_DECL_SYS_SIGLIST/0/' common/signal.c
Index: gnupg-2.2.28/common/signal.c
===================================================================
--- gnupg-2.2.28.orig/common/signal.c
+++ gnupg-2.2.28/common/signal.c
@@ -87,7 +87,7 @@ get_signal_name( int signum )
{
/* Note that we can't use strsignal(), because it is not
reentrant. */
-#if HAVE_DECL_SYS_SIGLIST && defined(NSIG)
+#if 0 && defined(NSIG)
return (signum >= 0 && signum < NSIG) ? sys_siglist[signum] : "?";
#else
return NULL;

View file

@ -1,15 +1,14 @@
# Template file for 'gnupg2'
pkgname=gnupg2
# Template file for 'gnupg'
pkgname=gnupg
version=2.2.28
revision=1
wrksrc="gnupg-${version}"
revision=2
build_style=gnu-configure
configure_args="--enable-gpg-is-gpg2 $(vopt_enable ldap)
configure_args="$(vopt_enable ldap)
--with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr
--with-libassuan-prefix=${XBPS_CROSS_BASE}/usr
--with-ksba-prefix=${XBPS_CROSS_BASE}/usr
--with-npth-prefix=${XBPS_CROSS_BASE}/usr"
hostmakedepends="pkg-config"
hostmakedepends="pkg-config gettext"
makedepends="bzip2-devel gnutls-devel libassuan-devel libcurl-devel
libksba-devel libldap-devel libusb-compat-devel npth-devel sqlite-devel
libgcrypt-devel"
@ -23,20 +22,25 @@ checksum=6ff891fc7583a9c3fb9f097ee0d1de0a12469d4b53997e7ba5064950637dfaec
build_options="ldap"
build_options_default="ldap"
post_patch() {
# On at least aarch64, configure sets this even though it doesn't exist
vsed -i 's/HAVE_DECL_SYS_SIGLIST/0/' common/signal.c
vsed -i '/examples\/systemd-user/d' doc/Makefile.in
post_install() {
vmkdir usr/share/examples
rm -r $DESTDIR/usr/share/doc/gnupg/examples/systemd-user
mv ${DESTDIR}/usr/share/doc/gnupg/examples \
${DESTDIR}/usr/share/examples/gnupg
}
post_install() {
# remove conflicts with gnupg 1.
mv ${DESTDIR}/usr/share/man/man7/gnupg.7 ${DESTDIR}/usr/share/man/man7/gnupg2.7
vmkdir usr/share/examples
mv ${DESTDIR}/usr/share/doc/gnupg/examples ${DESTDIR}/usr/share/examples/gnupg2
mv ${DESTDIR}/usr/share/doc/gnupg ${DESTDIR}/usr/share/doc/gnupg2
gnupg2_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - compat package"
pkg_install() {
vmkdir usr/bin
ln -s gpg $PKGDESTDIR/usr/bin/gpg2
ln -s gpgv $PKGDESTDIR/usr/bin/gpgv2
vmkdir usr/share/examples
ln -s gnupg $PKGDESTDIR/usr/share/examples/gnupg2
vmkdir usr/share/doc
ln -s gnupg $PKGDESTDIR/usr/share/doc/gnupg2
}
}
gnupg2-scdaemon_package() {

1
srcpkgs/gnupg2 Symbolic link
View file

@ -0,0 +1 @@
gnupg

View file

@ -1 +1 @@
gnupg2
gnupg

View file

@ -1 +0,0 @@
pkgname=gnupg