summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorshannonjr <shannonjr@pkgsrc.org>2005-03-02 14:59:35 +0000
committershannonjr <shannonjr@pkgsrc.org>2005-03-02 14:59:35 +0000
commit40fcb8eaf0283650743e390d6048332534804ea8 (patch)
tree5f63bf274ae9e509de55cf4aa055498825b45783 /security
parent61b7ba404a988c60bbb0caffb639a59cdbd526df (diff)
downloadpkgsrc-40fcb8eaf0283650743e390d6048332534804ea8.tar.gz
Problem: Dirmngr depends on pth. With an explicit buildlink to pth, the
package builds and works correctly. This approach was taken prior to this change. The is a problem because pth installs pthread.h in ${LOCALBASE}/include. This causes problems for things like Ada tasking that depend on native pthreads when also linking against libraries in pkgsrc (eg., gmp). This change solve the problem by building a static pth library locally and linking against it.
Diffstat (limited to 'security')
-rw-r--r--security/dirmngr/Makefile13
-rw-r--r--security/dirmngr/distinfo5
2 files changed, 14 insertions, 4 deletions
diff --git a/security/dirmngr/Makefile b/security/dirmngr/Makefile
index 3d286d1174c..f61e98273de 100644
--- a/security/dirmngr/Makefile
+++ b/security/dirmngr/Makefile
@@ -1,10 +1,13 @@
-# $NetBSD: Makefile,v 1.4 2005/01/04 13:40:38 shannonjr Exp $
+# $NetBSD: Makefile,v 1.5 2005/03/02 14:59:35 shannonjr Exp $
#
DISTNAME= dirmngr-0.9.0
-#PKGREVISION= 1
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/alpha/dirmngr/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES+= pth-2.0.3.tar.gz
+SITES_pth-2.0.3.tar.gz= ${MASTER_SITE_GNU:=pth/}
MAINTAINER= shannonjr@NetBSD.org
HOMEPAGE= http://www.gnupg.org/aegypten2
@@ -24,6 +27,7 @@ USE_PKGLOCALEDIR= yes
CONFIGURE_ARGS+= --localstatedir="${VARBASE}"
CONFIGURE_ARGS+= --sharedstatedir="${VARBASE}"
CONFIGURE_ENV+= BUILDLINK_PREFIX_openldap=${BUILDLINK_PREFIX.openldap}
+CONFIGURE_ARGS+= --with-pth-prefix=${WRKDIR}/pth
SUBST_FILES+= VARBASE=${VARBASE}
SUBST_FILES+= PREFIX=${PREFIX}
@@ -31,6 +35,10 @@ SUBST_FILES+= SYSCONFDIR=${SYSCONFDIR}
SUBST_FILES+= DIRMNGR_USER=${DIRMNGR_USER}
SUBST_FILES+= DIRMNGR_PATH=${DIRMNGR_PATH}
+# We are building a static pth library and linking against it
+pre-configure:
+ cd ${WRKDIR}/pth-2.0.3 && ./configure --prefix=${WRKDIR}/pth --enable-pthread --enable-static --disable-shared && ${MAKE} install
+
pre-build:
${CP} ${FILESDIR}/runDirmngr.c ${WRKDIR}/runDirmngr.c
@@ -53,7 +61,6 @@ post-install:
INFO_FILES= dirmngr.info
-.include "../../devel/pth/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../databases/openldap/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
diff --git a/security/dirmngr/distinfo b/security/dirmngr/distinfo
index 87842aa0f40..71a82dc9ba0 100644
--- a/security/dirmngr/distinfo
+++ b/security/dirmngr/distinfo
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.5 2005/02/24 13:10:05 agc Exp $
+$NetBSD: distinfo,v 1.6 2005/03/02 14:59:35 shannonjr Exp $
SHA1 (dirmngr-0.9.0.tar.gz) = 46dc0704abb5320465c9176d0dcc5eeafc0880fe
RMD160 (dirmngr-0.9.0.tar.gz) = 61d74dea2836ce3370e5bc9892a5b29257638c6d
Size (dirmngr-0.9.0.tar.gz) = 568366 bytes
+SHA1 (pth-2.0.3.tar.gz) = c2445bcf24ce3615cfbfbd58b79bbab36542617d
+RMD160 (pth-2.0.3.tar.gz) = 27b56055897a653fe5cea1aac53d9361ffd1acc5
+Size (pth-2.0.3.tar.gz) = 639243 bytes
SHA1 (patch-aa) = f3b4c18afa24ba7838876e46c0084502c7656f4b