From owner-svn-ports-all@FreeBSD.ORG Thu Jul 10 22:09:47 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A40CC7FF; Thu, 10 Jul 2014 22:09:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9082D2ACD; Thu, 10 Jul 2014 22:09:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6AM9llo043362; Thu, 10 Jul 2014 22:09:47 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6AM9kUN043358; Thu, 10 Jul 2014 22:09:46 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201407102209.s6AM9kUN043358@svn.freebsd.org> From: Pawel Pekala Date: Thu, 10 Jul 2014 22:09:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r361495 - in branches/2014Q3/security/openscep: . files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 22:09:47 -0000 Author: pawel Date: Thu Jul 10 22:09:46 2014 New Revision: 361495 URL: http://svnweb.freebsd.org/changeset/ports/361495 QAT: https://qat.redports.org/buildarchive/r361495/ Log: MFH: r361493 - Fix build on 10+ (new OpenSSL API) - Add staging support, allow it as regular user - Register conflict with security/nss (file ${LOCALBASE}/bin/derdump) - Convert to USES=libtool - Use @sample for config files Approved by: portmgr (erwin) Added: branches/2014Q3/security/openscep/files/patch-include_scep.h - copied unchanged from r361493, head/security/openscep/files/patch-include_scep.h branches/2014Q3/security/openscep/files/patch-scepd_scepconf.c - copied unchanged from r361493, head/security/openscep/files/patch-scepd_scepconf.c Deleted: branches/2014Q3/security/openscep/files/pkg-deinstall.in branches/2014Q3/security/openscep/files/pkg-install.in Modified: branches/2014Q3/security/openscep/Makefile branches/2014Q3/security/openscep/pkg-plist Directory Properties: branches/2014Q3/ (props changed) Modified: branches/2014Q3/security/openscep/Makefile ============================================================================== --- branches/2014Q3/security/openscep/Makefile Thu Jul 10 21:51:31 2014 (r361494) +++ branches/2014Q3/security/openscep/Makefile Thu Jul 10 22:09:46 2014 (r361495) @@ -3,24 +3,21 @@ PORTNAME= openscep PORTVERSION= 0.4.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= security MASTER_SITES= http://openscep.othello.ch/download/ MAINTAINER= ports@FreeBSD.org COMMENT= Open source scep server +CONFLICTS_INSTALL= nss-3.* -USE_AUTOTOOLS= libtool +USES= gmake libtool USE_OPENSSL= yes USE_OPENLDAP= yes USE_APACHE= 22+ GNU_CONFIGURE= yes USE_LDCONFIG= yes -USES= gmake - -NO_STAGE= yes -.include PLIST_DIRSTRY= www/cgi-bin @@ -34,41 +31,33 @@ CONFIGURE_ARGS= --with-html-install-dir= CONF_DIR= ${PREFIX}/etc/${PORTNAME} LOCAL_CONF_FILES= openscep.cnf openscep.ldif openscep.schema slapd.conf -SUB_FILES= pkg-deinstall pkg-install pkg-message +SUB_FILES= pkg-message SUB_LIST= CONF_DIR="${CONF_DIR}" CONF_FILES="${LOCAL_CONF_FILES}" -MAN1= derdump.1 \ - scep.1 \ - scepclient.1 \ - scepconf.1 \ - sceplist.1 \ - scepxid.1 -MAN5= openscep.cnf.5 -MAN8= cafingerprint.8 \ - createcrl.8 \ - crl2ldap.8 \ - dn2xid.8 \ - scepd.8 \ - scepgrant.8 \ - scepreject.8 \ - updatecrl.8 - post-patch: @${REINPLACE_CMD} -e '/^subdirs=/ s|libltdl||' ${WRKSRC}/configure @${REINPLACE_CMD} -e '/^SUBDIRS =/ s|libltdl||' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|^\(install-data-am:\) install-data-local$$|\1|' \ ${WRKSRC}/ldap/Makefile.in ${WRKSRC}/openssl/Makefile.in + @${REINPLACE_CMD} 's,sbindir),DESTDIR)$$(&,' \ + ${WRKSRC}/openssl/Makefile.in + @${REINPLACE_CMD} -E -e 's,(bin|sbin)dir},DESTDIR}$${&,' \ + -e 's,-o \$$\(USER\) -g \$$\(GROUP\),,' \ + ${WRKSRC}/scep/Makefile.in \ + ${WRKSRC}/scepd/Makefile.in + @${REINPLACE_CMD} -E 's,(CGIINSTALLDIR|PKICLIENTEXE)),DESTDIR)$$(&,' \ + ${WRKSRC}/cgi-bin/Makefile.in + @${REINPLACE_CMD} 's|HTMLINSTALLDIR)|DESTDIR)$$(&|' \ + ${WRKSRC}/Makefile.in \ + ${WRKSRC}/doc/Makefile.in \ + ${WRKSRC}/html/Makefile.in post-install: - ${MKDIR} ${CONF_DIR} - ${INSTALL_DATA} ${WRKSRC}/openssl/openscep.cnf ${CONF_DIR}/openscep.cnf.default + @${MKDIR} ${STAGEDIR}${CONF_DIR} + ${INSTALL_DATA} ${WRKSRC}/openssl/openscep.cnf \ + ${STAGEDIR}${CONF_DIR}/openscep.cnf.sample .for f in openscep.ldif openscep.schema slapd.conf - ${INSTALL_DATA} ${WRKSRC}/ldap/${f} ${CONF_DIR}/${f}.default + ${INSTALL_DATA} ${WRKSRC}/ldap/${f} ${STAGEDIR}${CONF_DIR}/${f}.sample .endfor - ${CHOWN} www:www ${PREFIX}/www/cgi-bin/openscep/* - ${CHOWN} www:www ${PREFIX}/www/cgi-bin/pkiclient.exe - ${CHOWN} www:www ${PREFIX}/etc/openscep/* - @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - @${CAT} ${PKGMESSAGE} -.include +.include Copied: branches/2014Q3/security/openscep/files/patch-include_scep.h (from r361493, head/security/openscep/files/patch-include_scep.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2014Q3/security/openscep/files/patch-include_scep.h Thu Jul 10 22:09:46 2014 (r361495, copy of r361493, head/security/openscep/files/patch-include_scep.h) @@ -0,0 +1,14 @@ +--- include/scep.h.orig 2002-02-20 00:40:05.000000000 +0100 ++++ include/scep.h 2014-07-10 22:24:29.366255595 +0200 +@@ -80,7 +80,11 @@ + int recipientNonceLength; + + /* OpenSSL configuration file contents */ ++#ifdef LHASH_OF ++ LHASH_OF(CONF_VALUE) *conf; ++#else + LHASH *conf; ++#endif + + /* signer/client information different from requestor for v2 */ + X509 *selfsignedcert; Copied: branches/2014Q3/security/openscep/files/patch-scepd_scepconf.c (from r361493, head/security/openscep/files/patch-scepd_scepconf.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2014Q3/security/openscep/files/patch-scepd_scepconf.c Thu Jul 10 22:09:46 2014 (r361495, copy of r361493, head/security/openscep/files/patch-scepd_scepconf.c) @@ -0,0 +1,14 @@ +--- scepd/scepconf.c.orig 2001-03-03 23:23:22.000000000 +0100 ++++ scepd/scepconf.c 2014-07-10 22:26:24.326212726 +0200 +@@ -20,7 +20,11 @@ + int debug = 0; + + int main(int argc, char *argv[]) { ++#ifdef LHASH_OF ++ LHASH_OF(CONF_VALUE) *conf; ++#else + LHASH *conf; ++#endif + long eline; + char *section = NULL, *variable = NULL, *value; + int c, n; Modified: branches/2014Q3/security/openscep/pkg-plist ============================================================================== --- branches/2014Q3/security/openscep/pkg-plist Thu Jul 10 21:51:31 2014 (r361494) +++ branches/2014Q3/security/openscep/pkg-plist Thu Jul 10 22:09:46 2014 (r361495) @@ -5,14 +5,33 @@ bin/scepconf bin/scepkey bin/sceplist bin/scepxid -etc/openscep/openscep.cnf.default -etc/openscep/openscep.ldif.default -etc/openscep/openscep.schema.default -etc/openscep/slapd.conf.default +@owner www +@group www +@sample etc/openscep/openscep.cnf.sample +@sample etc/openscep/openscep.ldif.sample +@sample etc/openscep/openscep.schema.sample +@sample etc/openscep/slapd.conf.sample +@owner +@group lib/libscep.a -lib/libscep.la lib/libscep.so lib/libscep.so.4 +lib/libscep.so.4.0.22 +man/man1/derdump.1.gz +man/man1/scep.1.gz +man/man1/scepclient.1.gz +man/man1/scepconf.1.gz +man/man1/sceplist.1.gz +man/man1/scepxid.1.gz +man/man5/openscep.cnf.5.gz +man/man8/cafingerprint.8.gz +man/man8/createcrl.8.gz +man/man8/crl2ldap.8.gz +man/man8/dn2xid.8.gz +man/man8/scepd.8.gz +man/man8/scepgrant.8.gz +man/man8/scepreject.8.gz +man/man8/updatecrl.8.gz sbin/cafingerprint sbin/createcrl sbin/crl2ldap @@ -22,6 +41,8 @@ sbin/scepd sbin/scepgrant sbin/scepreject sbin/updatecrl +@owner www +@group www www/cgi-bin/openscep/add.pl www/cgi-bin/openscep/crl.pl www/cgi-bin/openscep/granted.pl @@ -30,6 +51,8 @@ www/cgi-bin/openscep/pending.pl www/cgi-bin/openscep/rejected.pl www/cgi-bin/openscep/revoked.pl www/cgi-bin/pkiclient.exe +@owner +@group www/openscep/COPYING www/openscep/ChangeLog www/openscep/INSTALL