pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gnupg25: add upgrade candidate for gnupg2
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Thu Jan 29 08:49:54 2026 +0100
Changeset: 527f10e0af54912f6642bf42a8ed9ea621a48958
Modified Files:
Makefile
Added Files:
gnupg25/DESCR
gnupg25/Makefile
gnupg25/PLIST
gnupg25/distinfo
gnupg25/options.mk
gnupg25/patches/patch-common_sysutils.c
Log Message:
gnupg25: add upgrade candidate for gnupg2
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=527f10e0af54912f6642bf42a8ed9ea621a48958
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 2 +
gnupg25/DESCR | 7 ++
gnupg25/Makefile | 61 +++++++++++++++
gnupg25/PLIST | 134 ++++++++++++++++++++++++++++++++
gnupg25/distinfo | 6 ++
gnupg25/options.mk | 47 +++++++++++
gnupg25/patches/patch-common_sysutils.c | 17 ++++
7 files changed, 274 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 7a8b88b278..b473a506d2 100644
--- a/Makefile
+++ b/Makefile
@@ -1355,6 +1355,7 @@ SUBDIR+= gnucash-devel
SUBDIR+= gnujump
SUBDIR+= gnump3d
SUBDIR+= gnunet-go
+SUBDIR+= gnupg25
SUBDIR+= gnupoc-makesis
SUBDIR+= gnuradio-monolithic
SUBDIR+= gnutls-guile
@@ -2735,6 +2736,7 @@ SUBDIR+= opal
SUBDIR+= opax
SUBDIR+= opd
SUBDIR+= open-simh
+SUBDIR+= open-src-cvc
SUBDIR+= open21xx
SUBDIR+= openafs-git
SUBDIR+= openapi-mock
diff --git a/gnupg25/DESCR b/gnupg25/DESCR
new file mode 100644
index 0000000000..c25e59ba57
--- /dev/null
+++ b/gnupg25/DESCR
@@ -0,0 +1,7 @@
+GnuPG is GNU's tool for secure communication and data storage. It
+can be used to encrypt data and to create digital signatures. It
+includes an advanced key management facility and is compliant with
+the proposed OpenPGP Internet standard as described in RFC4880.
+
+This package contains the full suite of GnuPG tools for cryptographic
+communications and data storage.
diff --git a/gnupg25/Makefile b/gnupg25/Makefile
new file mode 100644
index 0000000000..4cc441d413
--- /dev/null
+++ b/gnupg25/Makefile
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.170 2026/01/28 14:58:33 wiz Exp $
+
+DISTNAME= gnupg-2.5.17
+PKGNAME= ${DISTNAME:S/gnupg-/gnupg2-/}
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_GNUPG:=gnupg/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= ada%netbsdfr.org@localhost
+HOMEPAGE= https://www.gnupg.org/
+COMMENT= GnuPG with OpenPGP and S/MIME capabilities
+LICENSE= gnu-gpl-v3
+
+DEPENDS+= pinentry-[0-9]*:../../security/pinentry
+
+CONFLICTS+= dirmngr-[0-9]*
+SUPERSEDES+= dirmngr-[0-9]*
+CONFLICTS+= gnupg<1.4.23nb28
+
+BUILD_DEFS+= VARBASE
+USE_PKGLOCALEDIR= yes
+USE_TOOLS+= pkg-config makeinfo
+USE_LIBTOOL= yes
+INFO_FILES= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --disable-ntbtls
+CONFIGURE_ARGS+= --disable-tpm2d
+CONFIGURE_ARGS+= --enable-g13
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+# SunOS does have getaddrinfo() and the code knows how to use it
+CONFIGURE_ARGS.SunOS+= ac_cv_func_getaddrinfo=yes
+
+TEST_TARGET= check
+
+CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 # socklen_t
+
+LDFLAGS.Darwin+= -lintl
+#LDFLAGS.SunOS+= -lsocket -lrt
+#LDFLAGS.Linux+= -lrt
+
+# self test problems:
+# https://dev.gnupg.org/T8065
+
+.include "options.mk"
+
+BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.27.0
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.npth+= npth>=1.2
+.include "../../devel/npth/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libgcrypt+= libgcrypt>=1.11.0
+.include "../../security/libgcrypt/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.56
+.include "../../security/libgpg-error/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libassuan+= libassuan>=3.0.0
+.include "../../security/libassuan2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libksba+= libksba>=1.6.3
+.include "../../security/libksba/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/gnupg25/PLIST b/gnupg25/PLIST
new file mode 100644
index 0000000000..188335c813
--- /dev/null
+++ b/gnupg25/PLIST
@@ -0,0 +1,134 @@
+@comment $NetBSD: PLIST,v 1.19 2026/01/28 09:41:31 wiz Exp $
+${PLIST.gnutls}bin/dirmngr
+${PLIST.gnutls}bin/dirmngr-client
+bin/g13
+bin/gpg
+bin/gpg-agent
+bin/gpg-authcode-sign.sh
+bin/gpg-card
+bin/gpg-connect-agent
+bin/gpg-mail-tube
+bin/gpg-wks-client
+bin/gpg-wks-server
+bin/gpgconf
+bin/gpgparsemail
+bin/gpgscm
+bin/gpgsm
+bin/gpgsplit
+bin/gpgtar
+bin/gpgv
+bin/kbxutil
+bin/watchgnupg
+info/gnupg.info
+${PLIST.ldap}libexec/dirmngr_ldap
+libexec/gpg-auth
+libexec/gpg-check-pattern
+libexec/gpg-pair-tool
+libexec/gpg-preset-passphrase
+libexec/gpg-protect-tool
+libexec/gpg-wks-client
+libexec/keyboxd
+libexec/scdaemon
+man/man1/dirmngr-client.1
+man/man1/gpg-agent.1
+man/man1/gpg-card.1
+man/man1/gpg-check-pattern.1
+man/man1/gpg-connect-agent.1
+man/man1/gpg-mail-tube.1
+man/man1/gpg-preset-passphrase.1
+man/man1/gpg-wks-client.1
+man/man1/gpg-wks-server.1
+man/man1/gpg.1
+man/man1/gpgconf.1
+man/man1/gpgparsemail.1
+man/man1/gpgsm.1
+man/man1/gpgtar.1
+man/man1/gpgv.1
+man/man1/scdaemon.1
+man/man1/watchgnupg.1
+man/man7/gnupg.7
+man/man8/addgnupghome.8
+man/man8/applygnupgdefaults.8
+man/man8/dirmngr.8
+sbin/addgnupghome
+sbin/applygnupgdefaults
+sbin/g13-syshelp
+share/doc/gnupg/DCO
+share/doc/gnupg/DETAILS
+share/doc/gnupg/FAQ
+share/doc/gnupg/HACKING
+share/doc/gnupg/KEYSERVER
+share/doc/gnupg/OpenPGP
+share/doc/gnupg/README
+share/doc/gnupg/TRANSLATE
+share/doc/gnupg/examples/README
+share/doc/gnupg/examples/common.conf
+share/doc/gnupg/examples/gpgconf.conf
+share/doc/gnupg/examples/gpgconf.rnames
+share/doc/gnupg/examples/pwpattern.list
+share/doc/gnupg/examples/qualified.txt
+share/doc/gnupg/examples/scd-event
+share/doc/gnupg/examples/trustlist.txt
+share/gnupg/distsigkey.gpg
+share/gnupg/help.be.txt
+share/gnupg/help.ca.txt
+share/gnupg/help.cs.txt
+share/gnupg/help.da.txt
+share/gnupg/help.de.txt
+share/gnupg/help.el.txt
+share/gnupg/help.eo.txt
+share/gnupg/help.es.txt
+share/gnupg/help.et.txt
+share/gnupg/help.fi.txt
+share/gnupg/help.fr.txt
+share/gnupg/help.gl.txt
+share/gnupg/help.hu.txt
+share/gnupg/help.id.txt
+share/gnupg/help.it.txt
+share/gnupg/help.ja.txt
+share/gnupg/help.nb.txt
+share/gnupg/help.pl.txt
+share/gnupg/help.pt.txt
+share/gnupg/help.pt_BR.txt
+share/gnupg/help.ro.txt
+share/gnupg/help.ru.txt
+share/gnupg/help.sk.txt
+share/gnupg/help.sv.txt
+share/gnupg/help.tr.txt
+share/gnupg/help.txt
+share/gnupg/help.zh_CN.txt
+share/gnupg/help.zh_TW.txt
+share/gnupg/mail-tube.de.txt
+share/gnupg/mail-tube.txt
+share/gnupg/wks-utils.de.txt
+share/gnupg/wks-utils.txt
+share/locale/ca/LC_MESSAGES/gnupg2.mo
+share/locale/cs/LC_MESSAGES/gnupg2.mo
+share/locale/da/LC_MESSAGES/gnupg2.mo
+share/locale/de/LC_MESSAGES/gnupg2.mo
+share/locale/el/LC_MESSAGES/gnupg2.mo
+share/locale/en@boldquot/LC_MESSAGES/gnupg2.mo
+share/locale/en@quot/LC_MESSAGES/gnupg2.mo
+share/locale/eo/LC_MESSAGES/gnupg2.mo
+share/locale/es/LC_MESSAGES/gnupg2.mo
+share/locale/et/LC_MESSAGES/gnupg2.mo
+share/locale/fi/LC_MESSAGES/gnupg2.mo
+share/locale/fr/LC_MESSAGES/gnupg2.mo
+share/locale/gl/LC_MESSAGES/gnupg2.mo
+share/locale/hu/LC_MESSAGES/gnupg2.mo
+share/locale/id/LC_MESSAGES/gnupg2.mo
+share/locale/it/LC_MESSAGES/gnupg2.mo
+share/locale/ja/LC_MESSAGES/gnupg2.mo
+share/locale/ka/LC_MESSAGES/gnupg2.mo
+share/locale/nb/LC_MESSAGES/gnupg2.mo
+share/locale/nl/LC_MESSAGES/gnupg2.mo
+share/locale/pl/LC_MESSAGES/gnupg2.mo
+share/locale/pt/LC_MESSAGES/gnupg2.mo
+share/locale/ro/LC_MESSAGES/gnupg2.mo
+share/locale/ru/LC_MESSAGES/gnupg2.mo
+share/locale/sk/LC_MESSAGES/gnupg2.mo
+share/locale/sv/LC_MESSAGES/gnupg2.mo
+share/locale/tr/LC_MESSAGES/gnupg2.mo
+share/locale/uk/LC_MESSAGES/gnupg2.mo
+share/locale/zh_CN/LC_MESSAGES/gnupg2.mo
+share/locale/zh_TW/LC_MESSAGES/gnupg2.mo
diff --git a/gnupg25/distinfo b/gnupg25/distinfo
new file mode 100644
index 0000000000..dd293071b9
--- /dev/null
+++ b/gnupg25/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.92 2026/01/28 09:41:31 wiz Exp $
+
+BLAKE2s (gnupg-2.5.17.tar.bz2) = a8a7783396ea8b37f5a02dd3c3afaabb1238e7f764750166b4a04579fb85437d
+SHA512 (gnupg-2.5.17.tar.bz2) = 8c1fe6afb04034ed1579080cf8d384f5b331ac1bc277f77c8e9103d29971c944fcb4c072586d2c045630ef34483b355a1b35f1785dded6f8d8da1e4760bef308
+Size (gnupg-2.5.17.tar.bz2) = 8308629 bytes
+SHA1 (patch-common_sysutils.c) = 569c12e21172c1521284922244b2f4f361c945d6
diff --git a/gnupg25/options.mk b/gnupg25/options.mk
new file mode 100644
index 0000000000..1a2184aada
--- /dev/null
+++ b/gnupg25/options.mk
@@ -0,0 +1,47 @@
+# $NetBSD: options.mk,v 1.15 2023/04/03 23:16:00 schmonz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gnupg2
+PKG_SUPPORTED_OPTIONS= bzip2 gnutls ldap libusb-1 zlib
+PKG_SUGGESTED_OPTIONS= bzip2 gnutls libusb-1 zlib
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mbzip2)
+CONFIGURE_ARGS+= --with-bzip2=${BUILDLINK_PREFIX.bzip2}
+.include "../../archivers/bzip2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-bzip2
+.endif
+
+PLIST_VARS+= gnutls
+.if !empty(PKG_OPTIONS:Mgnutls)
+.include "../../security/gnutls/buildlink3.mk"
+PLIST.gnutls= yes
+.else
+CONFIGURE_ARGS+= --disable-gnutls
+.endif
+
+PLIST_VARS+= ldap
+.if !empty(PKG_OPTIONS:Mldap)
+CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
+PLIST.ldap= yes
+.include "../../databases/openldap-client/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-ldap
+.endif
+
+.if !empty(PKG_OPTIONS:Mlibusb-1)
+# gnupg unfortunately doesn't use pkg-config
+CONFIGURE_ARGS+= CPPFLAGS="${CPPFLAGS} -I${BUILDLINK_PREFIX.libusb1}/include/libusb-1.0"
+CONFIGURE_ARGS+= LDFLAGS="${LDFLAGS} ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libusb1}/lib -L${BUILDLINK_PREFIX.libusb1}/lib"
+.include "../../devel/libusb1/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-ccid-driver
+.endif
+
+.if !empty(PKG_OPTIONS:Mzlib)
+CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
+.include "../../devel/zlib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-zip
+.endif
diff --git a/gnupg25/patches/patch-common_sysutils.c b/gnupg25/patches/patch-common_sysutils.c
new file mode 100644
index 0000000000..03b3aef474
--- /dev/null
+++ b/gnupg25/patches/patch-common_sysutils.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-common_sysutils.c,v 1.1 2020/08/18 09:39:23 schmonz Exp $
+
+Provide a definition of IN_EXCL_UNLINK for Linux < 2.6.36.
+From https://github.com/gpg/gnupg/pull/2
+
+--- common/sysutils.c.orig 2018-10-22 17:26:18.000000000 +0000
++++ common/sysutils.c
+@@ -68,6 +68,9 @@
+ #endif
+ #ifdef HAVE_INOTIFY_INIT
+ # include <sys/inotify.h>
++# ifndef IN_EXCL_UNLINK
++# define IN_EXCL_UNLINK 0x04000000
++# endif
+ #endif /*HAVE_INOTIFY_INIT*/
+ #ifdef HAVE_NPTH
+ # include <npth.h>
Home |
Main Index |
Thread Index |
Old Index