pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gnupg2: add current pkgsrc version
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Sun Sep 27 22:49:20 2026 +0200
Changeset: 864b80c58f946cb929a7ef906700068cfb9602b3
Modified Files:
Makefile
Added Files:
gnupg2/DESCR
gnupg2/Makefile
gnupg2/PLIST
gnupg2/TODO
gnupg2/distinfo
gnupg2/options.mk
gnupg2/patches/patch-common_sysutils.c
Log Message:
gnupg2: add current pkgsrc version
Waiting for upstream bugfix.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=864b80c58f946cb929a7ef906700068cfb9602b3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
gnupg2/DESCR | 7 ++
gnupg2/Makefile | 56 ++++++++++++++
gnupg2/PLIST | 134 +++++++++++++++++++++++++++++++++
gnupg2/TODO | 2 +
gnupg2/distinfo | 6 ++
gnupg2/options.mk | 47 ++++++++++++
gnupg2/patches/patch-common_sysutils.c | 17 +++++
8 files changed, 270 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index b103143a28..603a9aa6ed 100644
--- a/Makefile
+++ b/Makefile
@@ -1377,6 +1377,7 @@ SUBDIR+= gnucash-devel
SUBDIR+= gnujump
SUBDIR+= gnump3d
SUBDIR+= gnunet-go
+SUBDIR+= gnupg2
SUBDIR+= gnupoc-makesis
SUBDIR+= gnuradio-monolithic
SUBDIR+= gnutls-guile
diff --git a/gnupg2/DESCR b/gnupg2/DESCR
new file mode 100644
index 0000000000..c25e59ba57
--- /dev/null
+++ b/gnupg2/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/gnupg2/Makefile b/gnupg2/Makefile
new file mode 100644
index 0000000000..b0cdb8a289
--- /dev/null
+++ b/gnupg2/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile,v 1.181 2026/09/26 09:47:54 wiz Exp $
+
+DISTNAME= gnupg-2.5.24
+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:../../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
+
+.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"
+# As of 2.5.21, configure script requests libgpg-error>=1.56
+# but we need a fix for NetBSD
+BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.58nb2
+.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/gnupg2/PLIST b/gnupg2/PLIST
new file mode 100644
index 0000000000..6a19ab6e99
--- /dev/null
+++ b/gnupg2/PLIST
@@ -0,0 +1,134 @@
+@comment $NetBSD: PLIST,v 1.21 2026/02/04 10:00:26 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/gnupg2/TODO b/gnupg2/TODO
new file mode 100644
index 0000000000..916c6e90bd
--- /dev/null
+++ b/gnupg2/TODO
@@ -0,0 +1,2 @@
+Breaks notmuch, wait for resolution of
+https://lists.gnupg.org/pipermail/gnupg-devel/2026-September/036466.html
diff --git a/gnupg2/distinfo b/gnupg2/distinfo
new file mode 100644
index 0000000000..1fc2aec668
--- /dev/null
+++ b/gnupg2/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.101 2026/09/26 09:47:54 wiz Exp $
+
+BLAKE2s (gnupg-2.5.24.tar.bz2) = d1a1c34665c3c4891e12119405a08468c6e51f6087816cdf85535afec22d3804
+SHA512 (gnupg-2.5.24.tar.bz2) = c60b0c105ef710defec5b23d6c1382ae8adabc3207917fb484960b1c37ae7b542da2ece5eafaa5d53fa13485647b52c2d371fe099e5600aba4c84e7d83ceb1df
+Size (gnupg-2.5.24.tar.bz2) = 8431157 bytes
+SHA1 (patch-common_sysutils.c) = 569c12e21172c1521284922244b2f4f361c945d6
diff --git a/gnupg2/options.mk b/gnupg2/options.mk
new file mode 100644
index 0000000000..1a2184aada
--- /dev/null
+++ b/gnupg2/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/gnupg2/patches/patch-common_sysutils.c b/gnupg2/patches/patch-common_sysutils.c
new file mode 100644
index 0000000000..03b3aef474
--- /dev/null
+++ b/gnupg2/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