ports/107361: new port for mod_cplusplus (Apache module)

Mike Durian durian at shadetreesoftware.com
Sat Dec 30 19:50:45 UTC 2006


>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 at 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 <durian at shadetreesoftware.com>
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 at 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 <bsd.port.mk>
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:



More information about the freebsd-ports-bugs mailing list