aboutsummaryrefslogtreecommitdiff
path: root/security/newpki-server/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-14 13:58:43 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-14 13:58:43 +0000
commitf6febd09e04a14c68ed660d1c614d0d50fa4369e (patch)
tree7e318f230f700211ce19783d230ba78e816ce2e5 /security/newpki-server/Makefile
parent64b73b6642ec5ccdfffcb138be54faf8a581be11 (diff)
downloadports-f6febd09e04a14c68ed660d1c614d0d50fa4369e.tar.gz
ports-f6febd09e04a14c68ed660d1c614d0d50fa4369e.zip
Notes
Diffstat (limited to 'security/newpki-server/Makefile')
-rw-r--r--security/newpki-server/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/security/newpki-server/Makefile b/security/newpki-server/Makefile
new file mode 100644
index 000000000000..0162507a5ba7
--- /dev/null
+++ b/security/newpki-server/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: newpki-lib
+# Date created: 2005-07-05
+# Whom: Vsevolod Stakhov <vsevolod@highsecure.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= newpki-server
+DISTVERSION= 2.0.0-beta4
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= newpki
+
+MAINTAINER= vsevolod@highsecure.ru
+COMMENT= C++ PKI server from newpki project
+
+LIB_DEPENDS= newpki.2:${PORTSDIR}/security/newpki-lib
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-2.0.0
+
+USE_LIBTOOL_VER= 15
+USE_ICONV= yes
+USE_OPENSSL= yes
+USE_GMAKE= yes
+USE_MYSQL= yes
+USE_OPENLDAP= yes
+USE_REINPLACE= yes
+MANCOMPRESSED= yes
+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS+= --with-newpki-include=${LOCALBASE}/include/newpki \
+ --with-newpki-lib=${LOCALBASE}/lib \
+ --with-mysql-lib=${LOCALBASE}/lib/mysql \
+ --with-libiconv-prefix=${LOCALBASE} \
+ --program-transform-name=
+
+MAN1= newpki-server.1
+
+.if defined(WITHOUT_NLS)
+PLIST_SUB+= NLS="@comment "
+CONFIGURE_ARGS+= --disable-nls
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE}
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+USE_GCC= 3.4
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure \
+ ${WRKSRC}/publication/ldap/configure
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/conf/config.conf ${PREFIX}/etc/newpki.conf.sample
+ ${INSTALL_MAN} ${WRKSRC}/docs/newpki-server.1.gz ${MAN1PREFIX}/man/man1
+
+.include <bsd.port.post.mk>