From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Dec 30 19:50:45 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0AEA16A416 for ; Sat, 30 Dec 2006 19:50:45 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7D0F613C441 for ; Sat, 30 Dec 2006 19:50:45 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBUJoQ5C013866 for ; Sat, 30 Dec 2006 19:50:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBUJoQeH013865; Sat, 30 Dec 2006 19:50:26 GMT (envelope-from gnats) Resent-Date: Sat, 30 Dec 2006 19:50:26 GMT Resent-Message-Id: <200612301950.kBUJoQeH013865@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mike Durian Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1533416A407 for ; Sat, 30 Dec 2006 19:46:54 +0000 (UTC) (envelope-from durian@boogie.com) Received: from mailhost.boogie.com (mailhost.boogie.com [70.91.170.29]) by mx1.freebsd.org (Postfix) with ESMTP id E1AEB13C45B for ; Sat, 30 Dec 2006 19:46:53 +0000 (UTC) (envelope-from durian@boogie.com) Received: from boogie.com (man.boogie.com [192.168.1.3]) by mailhost.boogie.com (8.13.8/8.13.8) with ESMTP id kBUJ9pl8038096 for ; Sat, 30 Dec 2006 12:09:51 -0700 (MST) (envelope-from durian@fever.boogie.com) Received: from man.boogie.com (localhost [127.0.0.1]) by boogie.com (8.13.8/8.13.8) with ESMTP id kBUJ9pKZ081268 for ; Sat, 30 Dec 2006 12:09:51 -0700 (MST) (envelope-from durian@man.boogie.com) Received: (from durian@localhost) by man.boogie.com (8.13.8/8.13.6/Submit) id kBUJ9pGB081267; Sat, 30 Dec 2006 12:09:51 -0700 (MST) (envelope-from durian) Message-Id: <200612301909.kBUJ9pGB081267@man.boogie.com> Date: Sat, 30 Dec 2006 12:09:51 -0700 (MST) From: Mike Durian To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/107361: new port for mod_cplusplus (Apache module) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mike Durian List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Dec 2006 19:50:45 -0000 >Number: 107361 >Category: ports >Synopsis: new port for mod_cplusplus (Apache module) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Dec 30 19:50:26 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Mike Durian >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: Shade Tree Software >Environment: System: FreeBSD man.boogie.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Fri Oct 13 10:41:27 MDT 2006 root@man.boogie.com:/usr/obj/usr/src/sys/BOOGIE i386 >Description: Here's a new port of mod_cplusplus (http://modcplusplus.sourceforge.net/) sipX will require it if it ever becomes a port. >How-To-Repeat: N/A >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # www/mod_cplusplus/Makefile # www/mod_cplusplus/pkg-descr # www/mod_cplusplus/distinfo # www/mod_cplusplus/files/patch-configure.in # www/mod_cplusplus/files/pkg-message.in # www/mod_cplusplus/pkg-plist # echo x - www/mod_cplusplus/Makefile sed 's/^X//' >www/mod_cplusplus/Makefile << 'END-of-www/mod_cplusplus/Makefile' X# Ports collection makefile for: mod_cplusplus for Apache 2.x X# Date created: Dec 29, 2006 X# Whom: Michael Durian X# X# $FreeBSD$ X# X XPORTNAME= mod_cplusplus XPORTVERSION= 1.5.2 XCATEGORIES= www XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= modcplusplus X XMAINTAINER= ports@FreeBSD.org XCOMMENT= Apache module for loading C++ objects as handlers X XUSE_APACHE= 2.0+ XUSE_AUTOTOOLS= autoconf:259 autoheader:259 libtool:15 automake:19 aclocal:19 X# ${LOCALBASE}/share/aclocal19 does not contain libtool.m4 and that causes X# problems. Explicitly include ${LOCALBASE}/share/aclocal in the search X# patch since that directory does contain libtool.m4 XACLOCAL_ARGS+= -I ${LOCALBASE}/share/aclocal XAUTOMAKE_ARGS+= -a XGNU_CONFIGURE= yes XCONFIGURE_ARGS+= --with-apxs=${APXS} X XSUB_FILES= pkg-message XSUB_LIST= "APACHEMODDIR=${APACHEMODDIR}" X X# Redefine the autotools run order to match what would happen in the X# autogen.sh script. We cannot use that script directly since it does X# not use the versioned autotools. Xrun-autotools: run-autotools-aclocal patch-autotools run-autotools-autoheader \ X run-libtoolize run-autotools-automake run-autotools-autoconf X Xrun-libtoolize: X @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} \ X ${LIBTOOLIZE} --force --copy) X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/src/.libs/libmod_cplusplus.so ${PREFIX}/${APACHEMODDIR}/mod_cplusplus.so X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include END-of-www/mod_cplusplus/Makefile echo x - www/mod_cplusplus/pkg-descr sed 's/^X//' >www/mod_cplusplus/pkg-descr << 'END-of-www/mod_cplusplus/pkg-descr' Xmod_cplusplus is a proper apache module which allows you to load cpp objects Xas handlers for Apache-2.0. It differs from other modules i've seen in that Xit manages the loading and calling of separate shared objects containing your Xhandler classes. This allows you to easily and cleanly run an entire site Xwith c++ handlers. X XWWW: http://modcplusplus.sourceforge.net/ END-of-www/mod_cplusplus/pkg-descr echo x - www/mod_cplusplus/distinfo sed 's/^X//' >www/mod_cplusplus/distinfo << 'END-of-www/mod_cplusplus/distinfo' XMD5 (mod_cplusplus-1.5.2.tar.gz) = b523636990c9212d50f0ba144fe65b09 XSHA256 (mod_cplusplus-1.5.2.tar.gz) = 0a7a4a32dd56062586db4f250954e058ce273e2f5f19bca8a32c88bc59863c0a XSIZE (mod_cplusplus-1.5.2.tar.gz) = 123912 END-of-www/mod_cplusplus/distinfo echo x - www/mod_cplusplus/files/patch-configure.in sed 's/^X//' >www/mod_cplusplus/files/patch-configure.in << 'END-of-www/mod_cplusplus/files/patch-configure.in' X*** configure.in.orig Sat Dec 30 10:47:15 2006 X--- configure.in Sat Dec 30 10:56:16 2006 X*************** X*** 9,15 **** X dnl hack to get shlib extension X AC_MSG_CHECKING(what the shared library extension is) X eval SHLIB_EXT=\"$shrext\" X! if test "$SHLIB_EXT" == "" ; then X AC_MSG_RESULT(could not determine shared library extension. Defaulting to .so) X SHLIB_EXT=".so" X fi X--- 9,15 ---- X dnl hack to get shlib extension X AC_MSG_CHECKING(what the shared library extension is) X eval SHLIB_EXT=\"$shrext\" X! if test "x$SHLIB_EXT" = "x" ; then X AC_MSG_RESULT(could not determine shared library extension. Defaulting to .so) X SHLIB_EXT=".so" X fi X*************** X*** 58,69 **** X fi X ],) X X! if test "$INCLUDES" == "" ; then X AC_MSG_ERROR(could not generate includes with apxs set to "$APXS" - you must specify a valid path to apxs using the --with-apxs flag) X fi X X AC_CHECK_LIB(stdc++, __gxx_personality_v0, LIB_STDCPP="-lstdc++") X! if test "$LIB_STDCPP" == "" ; then X CPPFLAGS="$CPPFLAGS -DNO_STDCPP" X fi X CPLUSPLUS_BUILDDIR=`pwd` X--- 58,69 ---- X fi X ],) X X! if test "x$INCLUDES" = "x" ; then X AC_MSG_ERROR(could not generate includes with apxs set to "$APXS" - you must specify a valid path to apxs using the --with-apxs flag) X fi X X AC_CHECK_LIB(stdc++, __gxx_personality_v0, LIB_STDCPP="-lstdc++") X! if test "x$LIB_STDCPP" = "x" ; then X CPPFLAGS="$CPPFLAGS -DNO_STDCPP" X fi X CPLUSPLUS_BUILDDIR=`pwd` END-of-www/mod_cplusplus/files/patch-configure.in echo x - www/mod_cplusplus/files/pkg-message.in sed 's/^X//' >www/mod_cplusplus/files/pkg-message.in << 'END-of-www/mod_cplusplus/files/pkg-message.in' X************************************************************ XTo enable this module, add the following to your server Xconfiguration file: X X LoadModule cplusplus_module %%PREFIX%%/%%APACHEMODDIR%%/mod_cplusplus.so X X************************************************************ END-of-www/mod_cplusplus/files/pkg-message.in echo x - www/mod_cplusplus/pkg-plist sed 's/^X//' >www/mod_cplusplus/pkg-plist << 'END-of-www/mod_cplusplus/pkg-plist' X%%APACHEMODDIR%%/mod_cplusplus.so END-of-www/mod_cplusplus/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: