2006-04-01 01:56:28 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2006/03/31 23:56:29 jlam Exp $
|
2004-10-23 16:41:53 +02:00
|
|
|
#
|
|
|
|
|
2006-01-06 11:21:33 +01:00
|
|
|
DISTNAME= dirmngr-0.9.3
|
2006-04-01 01:20:29 +02:00
|
|
|
PKGREVISION= 3
|
2004-10-23 16:41:53 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/alpha/dirmngr/
|
2005-03-02 15:59:35 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2005-04-23 14:28:04 +02:00
|
|
|
DISTFILES+= pth-2.0.4.tar.gz
|
|
|
|
SITES_pth-2.0.4.tar.gz= ${MASTER_SITE_GNU:=pth/}
|
2006-01-06 11:21:33 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2004-10-23 16:41:53 +02:00
|
|
|
|
|
|
|
MAINTAINER= shannonjr@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.gnupg.org/aegypten2
|
|
|
|
COMMENT= X509 certificate and CRL downloader
|
|
|
|
|
2005-01-04 14:40:38 +01:00
|
|
|
DIRMNGR_USER?= dirmngr
|
|
|
|
DIRMNGR_GROUP?= dirmngr
|
|
|
|
PKG_GROUPS= ${DIRMNGR_GROUP}
|
2005-08-23 13:48:47 +02:00
|
|
|
PKG_USERS= ${DIRMNGR_USER}:${DIRMNGR_GROUP}::pseudo\ user:${VARBASE}/dirmngr:
|
2005-01-04 14:40:38 +01:00
|
|
|
|
2004-10-23 16:41:53 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gawk
|
2004-11-05 23:12:17 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2005-05-03 00:33:37 +02:00
|
|
|
RCD_SCRIPTS= dirmngr
|
2006-04-01 01:56:28 +02:00
|
|
|
INFO_FILES= # PLIST
|
2004-10-23 16:41:53 +02:00
|
|
|
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
|
|
|
CONFIGURE_ARGS+= --sharedstatedir=${VARBASE:Q}
|
2004-11-05 23:12:17 +01:00
|
|
|
CONFIGURE_ENV+= BUILDLINK_PREFIX_openldap=${BUILDLINK_PREFIX.openldap}
|
2005-03-02 15:59:35 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pth-prefix=${WRKDIR}/pth
|
2004-10-23 16:41:53 +02:00
|
|
|
|
2005-01-04 14:40:38 +01:00
|
|
|
SUBST_FILES+= VARBASE=${VARBASE}
|
|
|
|
SUBST_FILES+= PREFIX=${PREFIX}
|
|
|
|
SUBST_FILES+= SYSCONFDIR=${SYSCONFDIR}
|
|
|
|
SUBST_FILES+= DIRMNGR_USER=${DIRMNGR_USER}
|
|
|
|
SUBST_FILES+= DIRMNGR_PATH=${DIRMNGR_PATH}
|
|
|
|
|
2006-04-01 01:20:29 +02:00
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/dirmngr
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/dirmngr/trusted-certs
|
|
|
|
|
|
|
|
DIRMNGR_PERMS= ${DIRMNGR_USER} ${DIRMNGR_GROUP} 0755
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/dirmngr ${DIRMNGR_PERMS}
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/dirmngr/cache ${DIRMNGR_PERMS}
|
|
|
|
OWN_DIRS_PERMS+= ${PREFIX}/libdata/dirmngr ${DIRMNGR_PERMS}
|
|
|
|
OWN_DIRS_PERMS+= ${PREFIX}/libdata/dirmngr/extra-certs ${DIRMNGR_PERMS}
|
|
|
|
|
2005-03-02 15:59:35 +01:00
|
|
|
# We are building a static pth library and linking against it
|
|
|
|
pre-configure:
|
2005-04-23 14:28:04 +02:00
|
|
|
cd ${WRKDIR}/pth-2.0.4 && ./configure --prefix=${WRKDIR}/pth --enable-pthread --enable-static --disable-shared && ${MAKE} install
|
2005-03-02 15:59:35 +01:00
|
|
|
|
2005-01-04 14:40:38 +01:00
|
|
|
pre-build:
|
|
|
|
${CP} ${FILESDIR}/runDirmngr.c ${WRKDIR}/runDirmngr.c
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
cd ${WRKDIR} && \
|
|
|
|
${SETENV} ${BUILDENV} ${CC} ${CFLAGS} -DDIRMNGR_USER='"${DIRMNGR_USER}"' -DDIRMNGR_PATH='"${PREFIX}/bin/dirmngr"' -o runDirmngr runDirmngr.c
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/runDirmngr ${PREFIX}/sbin
|
|
|
|
|
2004-11-05 23:12:17 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../databases/openldap/buildlink3.mk"
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../devel/libgetopt/buildlink3.mk"
|
|
|
|
.include "../../security/libassuan/buildlink3.mk"
|
2004-10-23 16:41:53 +02:00
|
|
|
.include "../../security/libgcrypt/buildlink3.mk"
|
2004-11-05 23:12:17 +01:00
|
|
|
.include "../../security/libgpg-error/buildlink3.mk"
|
2004-10-23 16:41:53 +02:00
|
|
|
.include "../../security/libksba/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|