diff options
author | Juergen Lock <nox@FreeBSD.org> | 2011-03-26 19:12:11 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2011-03-26 19:12:11 +0000 |
commit | 4ca62e90763f54ae048aeb7db6b82b22dadb6709 (patch) | |
tree | 0b35a14b4694f5955af759c9b746ded0590d45c9 /www/tntnet | |
parent | bd5789f8f46b66e226a7412d4807df3874d1b1f2 (diff) | |
download | ports-4ca62e90763f54ae048aeb7db6b82b22dadb6709.tar.gz ports-4ca62e90763f54ae048aeb7db6b82b22dadb6709.zip |
Notes
Diffstat (limited to 'www/tntnet')
-rw-r--r-- | www/tntnet/Makefile | 56 | ||||
-rw-r--r-- | www/tntnet/distinfo | 2 | ||||
-rw-r--r-- | www/tntnet/files/patch-etc | 126 | ||||
-rw-r--r-- | www/tntnet/files/patch-sdk-demos-calc-Makefile.in | 11 | ||||
-rw-r--r-- | www/tntnet/pkg-descr | 8 | ||||
-rw-r--r-- | www/tntnet/pkg-plist | 150 |
6 files changed, 353 insertions, 0 deletions
diff --git a/www/tntnet/Makefile b/www/tntnet/Makefile new file mode 100644 index 000000000000..f0e866863831 --- /dev/null +++ b/www/tntnet/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: tntnet +# Date created: Wed Apr 14 18:11:42 CEST 2010 +# Whom: Juergen Lock <nox@freebsd.org> +# +# $FreeBSD$ +# + +PORTNAME= tntnet +PORTVERSION= 1.6.3 +CATEGORIES= www devel +MASTER_SITES= http://www.tntnet.org/download/ + +MAINTAINER= nox@FreeBSD.org +COMMENT= Webapplicationserver for C++ + +LIB_DEPENDS= cxxtools:${PORTSDIR}/devel/cxxtools +BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip + +USE_ICONV= yes +PATCH_STRIP= -p1 +GNU_CONFIGURE= yes +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" +CONFIGURE_ARGS+= --localstatedir=/var + +.if defined(WITH_GNUTLS) +CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lgnutls" +CONFIGURE_ARGS+= --with-ssl=gnutls +LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls +.else +CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_ARGS+= --with-ssl=openssl +.endif + +MAKE_JOBS_SAFE= yes +MAN1= ecppc.1 ecppl.1 ecppll.1 tntnet-config.1 +MAN7= ecpp.7 tntnet.conf.7 tntnet.properties.7 +MAN8= tntnet.8 + +USERS= www +GROUPS= www + +post-configure: + ${REINPLACE_CMD} 's/^\(#define[[:space:]]*HAVE_SENDFILE[[:space:]]*\).*/\1\0/' ${WRKSRC}/framework/common/config.h + +post-install: + @if [ ! -f ${ETCDIR}/tntnet.conf ]; then \ + ${CP} -p ${ETCDIR}/tntnet.conf.sample ${ETCDIR}/tntnet.conf ; \ + fi + @if [ ! -f ${ETCDIR}/mime.conf ]; then \ + ${CP} -p ${ETCDIR}/mime.conf.sample ${ETCDIR}/mime.conf ; \ + fi + @if [ ! -f ${ETCDIR}/tntnet.properties ]; then \ + ${CP} -p ${ETCDIR}/tntnet.properties.sample ${ETCDIR}/tntnet.properties ; \ + fi + +.include <bsd.port.mk> diff --git a/www/tntnet/distinfo b/www/tntnet/distinfo new file mode 100644 index 000000000000..fb0b4c0740f6 --- /dev/null +++ b/www/tntnet/distinfo @@ -0,0 +1,2 @@ +SHA256 (tntnet-1.6.3.tar.gz) = 1c16547e4fe6c07f8fe1b9d2eeb750cb2061032f31880f93f2080b049d54a3a4 +SIZE (tntnet-1.6.3.tar.gz) = 1952122 diff --git a/www/tntnet/files/patch-etc b/www/tntnet/files/patch-etc new file mode 100644 index 000000000000..31fbb75110ac --- /dev/null +++ b/www/tntnet/files/patch-etc @@ -0,0 +1,126 @@ +--- a/etc/Makefile.am ++++ b/etc/Makefile.am +@@ -1,30 +1,35 @@ + nobase_dist_noinst_DATA = \ + tntnet/tntnet.conf.in \ +- init.d/tntnet.in ++ init.d/tntnet.in \ ++ tntnet/mime.conf + + nobase_sysconf_DATA = \ +- tntnet/tntnet.conf \ +- init.d/tntnet ++ tntnet/tntnet.conf.sample \ ++ tntnet/tntnet + + nobase_dist_sysconf_DATA = \ +- tntnet/mime.conf ++ tntnet/mime.conf.sample + + nobase_nodist_sysconf_DATA = \ +- tntnet/tntnet.properties ++ tntnet/tntnet.properties.sample ++ ++tntnet/mime.conf.sample: tntnet/mime.conf ++ cp tntnet/mime.conf $@ + +-tntnet/tntnet.conf: tntnet/tntnet.conf.in Makefile ++tntnet/tntnet.conf.sample: tntnet/tntnet.conf.in Makefile + sed -e 's,@libdir\@,@libdir@,g;' \ + -e 's,@pkglibdir\@,@pkglibdir@,g;' \ + -e 's,@sysconfdir\@,@sysconfdir@,g;' \ + -e 's,@localstatedir\@,@localstatedir@,g;' \ +- -e 's,@datadir\@,@datadir@,g;' <tntnet/tntnet.conf.in >tntnet/tntnet.conf ++ -e 's,@datadir\@,@datadir@,g;' <tntnet/tntnet.conf.in >tntnet/tntnet.conf.sample + +-init.d/tntnet: init.d/tntnet.in Makefile ++tntnet/tntnet: init.d/tntnet.in Makefile + sed -e 's,@libdir\@,@libdir@,g;' \ + -e 's,@pkglibdir\@,@pkglibdir@,g;' \ + -e 's,@sysconfdir\@,@sysconfdir@,g;' \ + -e 's,@localstatedir\@,@localstatedir@,g;' \ +- -e 's,@datadir\@,@datadir@,g;' <init.d/tntnet.in >init.d/tntnet ++ -e 's/^function //;' \ ++ -e 's,@datadir\@,@datadir@,g;' <init.d/tntnet.in >tntnet/tntnet + +-tntnet/tntnet.properties: Makefile ++tntnet/tntnet.properties.sample: Makefile + cxxtools-config --logfile @localstatedir@/log/tntnet/tntnet.log --properties tntnet >$@ +--- a/etc/Makefile.in ++++ b/etc/Makefile.in +@@ -194,17 +194,18 @@ target_os = @target_os@ + target_vendor = @target_vendor@ + nobase_dist_noinst_DATA = \ + tntnet/tntnet.conf.in \ +- init.d/tntnet.in ++ init.d/tntnet.in \ ++ tntnet/mime.conf + + nobase_sysconf_DATA = \ +- tntnet/tntnet.conf \ +- init.d/tntnet ++ tntnet/tntnet.conf.sample \ ++ tntnet/tntnet + + nobase_dist_sysconf_DATA = \ +- tntnet/mime.conf ++ tntnet/mime.conf.sample + + nobase_nodist_sysconf_DATA = \ +- tntnet/tntnet.properties ++ tntnet/tntnet.properties.sample + + all: all-am + +@@ -436,21 +437,25 @@ uninstall-am: uninstall-info-am uninstal + uninstall-nobase_sysconfDATA + + +-tntnet/tntnet.conf: tntnet/tntnet.conf.in Makefile ++tntnet/mime.conf.sample: tntnet/mime.conf ++ cp tntnet/mime.conf $@ ++ ++tntnet/tntnet.conf.sample: tntnet/tntnet.conf.in Makefile + sed -e 's,@libdir\@,@libdir@,g;' \ + -e 's,@pkglibdir\@,@pkglibdir@,g;' \ + -e 's,@sysconfdir\@,@sysconfdir@,g;' \ + -e 's,@localstatedir\@,@localstatedir@,g;' \ +- -e 's,@datadir\@,@datadir@,g;' <tntnet/tntnet.conf.in >tntnet/tntnet.conf ++ -e 's,@datadir\@,@datadir@,g;' <tntnet/tntnet.conf.in >tntnet/tntnet.conf.sample + +-init.d/tntnet: init.d/tntnet.in Makefile ++tntnet/tntnet: init.d/tntnet.in Makefile + sed -e 's,@libdir\@,@libdir@,g;' \ + -e 's,@pkglibdir\@,@pkglibdir@,g;' \ + -e 's,@sysconfdir\@,@sysconfdir@,g;' \ + -e 's,@localstatedir\@,@localstatedir@,g;' \ +- -e 's,@datadir\@,@datadir@,g;' <init.d/tntnet.in >init.d/tntnet ++ -e 's/^function //;' \ ++ -e 's,@datadir\@,@datadir@,g;' <init.d/tntnet.in >tntnet/tntnet + +-tntnet/tntnet.properties: Makefile ++tntnet/tntnet.properties.sample: Makefile + cxxtools-config --logfile @localstatedir@/log/tntnet/tntnet.log --properties tntnet >$@ + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. +--- a/etc/tntnet/tntnet.conf.in ++++ b/etc/tntnet/tntnet.conf.in +@@ -2,12 +2,15 @@ + # + + PropertyFile @sysconfdir@/tntnet/tntnet.properties +-Listen 0.0.0.0 80 ++#Listen 0.0.0.0 80 ++Listen 127.1 80 + #SslListen 0.0.0.0 443 @sysconfdir@/tntnet/tntnet.pem + + Daemon 1 +-User www-data +-Group www-data ++#User www-data ++#Group www-data ++User www ++Group www + CompPath @libdir@/tntnet + + # set some limit to prevent DoS-attacks diff --git a/www/tntnet/files/patch-sdk-demos-calc-Makefile.in b/www/tntnet/files/patch-sdk-demos-calc-Makefile.in new file mode 100644 index 000000000000..12edb70baa2c --- /dev/null +++ b/www/tntnet/files/patch-sdk-demos-calc-Makefile.in @@ -0,0 +1,11 @@ +--- a/sdk/demos/calc/Makefile.in ++++ b/sdk/demos/calc/Makefile.in +@@ -467,7 +467,7 @@ info: info-am + + info-am: + +-install-data-am: install-docDATA ++install-data-am: #install-docDATA + + install-exec-am: install-pkglibLTLIBRARIES + diff --git a/www/tntnet/pkg-descr b/www/tntnet/pkg-descr new file mode 100644 index 000000000000..3b02aeed5f0a --- /dev/null +++ b/www/tntnet/pkg-descr @@ -0,0 +1,8 @@ +Tntnet is a modular, multithreaded, high performance webapplicationserver +for C++. To create webapplications Tntnet has a template-language called +ecpp similar to php, jsp or mason, where you can embed c++-code inside a +html-page to generate active content. The ecpp-files are precompiled to +c++-classes called components and compiled and linked into a shared +library. This process is done at compiletime. + +WWW: http://www.tntnet.org/index.html diff --git a/www/tntnet/pkg-plist b/www/tntnet/pkg-plist new file mode 100644 index 000000000000..90e11f98e1be --- /dev/null +++ b/www/tntnet/pkg-plist @@ -0,0 +1,150 @@ +bin/ecppc +bin/ecppl +bin/ecppll +bin/tntnet +bin/tntnet-config +%%ETCDIR%%/tntnet +@unexec if cmp -s %D/etc/tntnet/mime.conf.sample %D/etc/tntnet/mime.conf; then rm -f %D/etc/tntnet/mime.conf; fi +%%ETCDIR%%/mime.conf.sample +@exec if [ ! -f %D/etc/tntnet/mime.conf ] ; then cp -p %D/%F %B/mime.conf; fi +@unexec if cmp -s %D/etc/tntnet/tntnet.conf.sample %D/etc/tntnet/tntnet.conf; then rm -f %D/etc/tntnet/tntnet.conf; fi +%%ETCDIR%%/tntnet.conf.sample +@exec if [ ! -f %D/etc/tntnet/tntnet.conf ] ; then cp -p %D/%F %B/tntnet.conf; fi +@unexec if cmp -s %D/etc/tntnet/tntnet.properties.sample %D/etc/tntnet/tntnet.properties; then rm -f %D/etc/tntnet/tntnet.properties; fi +%%ETCDIR%%/tntnet.properties.sample +@exec if [ ! -f %D/etc/tntnet/tntnet.properties ] ; then cp -p %D/%F %B/tntnet.properties; fi +include/tnt/compident.h +include/tnt/comploader.h +include/tnt/component.h +include/tnt/componentfactory.h +include/tnt/contentdisposition.h +include/tnt/contenttype.h +include/tnt/convert.h +include/tnt/cookie.h +include/tnt/data.h +include/tnt/deflatestream.h +include/tnt/dispatcher.h +include/tnt/ecpp.h +include/tnt/encoding.h +include/tnt/htmlescostream.h +include/tnt/http.h +include/tnt/httperror.h +include/tnt/httpheader.h +include/tnt/httpmessage.h +include/tnt/httpparser.h +include/tnt/httpreply.h +include/tnt/httprequest.h +include/tnt/inflatestream.h +include/tnt/job.h +include/tnt/langlib.h +include/tnt/maptarget.h +include/tnt/messageattribute.h +include/tnt/messageheader.h +include/tnt/messageheaderparser.h +include/tnt/mimedb.h +include/tnt/multipart.h +include/tnt/object.h +include/tnt/parser.h +include/tnt/poller.h +include/tnt/query_params.h +include/tnt/regex.h +include/tnt/savepoint.h +include/tnt/scope.h +include/tnt/scopemanager.h +include/tnt/sessionscope.h +include/tnt/sodata.h +include/tnt/stringlessignorecase.h +include/tnt/tntconfig.h +include/tnt/tntnet.h +include/tnt/unzipfile.h +include/tnt/urlescostream.h +include/tnt/urlmapper.h +include/tnt/worker.h +include/tnt/zdata.h +lib/libtntnet.a +lib/libtntnet.la +lib/libtntnet.so +lib/libtntnet.so.8 +lib/libtntnet_cgi.a +lib/libtntnet_cgi.la +lib/libtntnet_cgi.so +lib/libtntnet_cgi.so.8 +lib/libtntnet_sdk.a +lib/libtntnet_sdk.la +lib/libtntnet_sdk.so +lib/libtntnet_sdk.so.8 +lib/tntnet/alldemos.a +lib/tntnet/alldemos.la +lib/tntnet/alldemos.so +lib/tntnet/alldemos.so.0 +lib/tntnet/calc.a +lib/tntnet/calc.la +lib/tntnet/calc.so +lib/tntnet/calc.so.0 +lib/tntnet/calcajax.a +lib/tntnet/calcajax.la +lib/tntnet/calcajax.so +lib/tntnet/calcajax.so.0 +lib/tntnet/calci18n.a +lib/tntnet/calci18n.la +lib/tntnet/calci18n.so +lib/tntnet/calci18n.so.0 +lib/tntnet/calcmvc.a +lib/tntnet/calcmvc.la +lib/tntnet/calcmvc.so +lib/tntnet/calcmvc.so.0 +lib/tntnet/chat.a +lib/tntnet/chat.la +lib/tntnet/chat.so +lib/tntnet/chat.so.0 +lib/tntnet/comp.a +lib/tntnet/comp.la +lib/tntnet/comp.so +lib/tntnet/comp.so.0 +lib/tntnet/config.a +lib/tntnet/config.la +lib/tntnet/config.so +lib/tntnet/config.so.0 +lib/tntnet/controls.a +lib/tntnet/controls.la +lib/tntnet/controls.so +lib/tntnet/controls.so.0 +lib/tntnet/cookie.a +lib/tntnet/cookie.la +lib/tntnet/cookie.so +lib/tntnet/cookie.so.0 +lib/tntnet/extlib.a +lib/tntnet/extlib.la +lib/tntnet/extlib.so +lib/tntnet/extlib.so.0 +lib/tntnet/hello.a +lib/tntnet/hello.la +lib/tntnet/hello.so +lib/tntnet/hello.so.0 +lib/tntnet/savepoint.a +lib/tntnet/savepoint.la +lib/tntnet/savepoint.so +lib/tntnet/savepoint.so.0 +lib/tntnet/session.a +lib/tntnet/session.la +lib/tntnet/session.so +lib/tntnet/session.so.0 +lib/tntnet/sprintf.a +lib/tntnet/sprintf.la +lib/tntnet/sprintf.so +lib/tntnet/sprintf.so.0 +lib/tntnet/strings.a +lib/tntnet/strings.la +lib/tntnet/strings.so +lib/tntnet/strings.so.0 +lib/tntnet/tntnet.a +lib/tntnet/tntnet.la +lib/tntnet/tntnet.so +lib/tntnet/tntnet.so.8 +lib/tntnet/upload.a +lib/tntnet/upload.la +lib/tntnet/upload.so +lib/tntnet/upload.so.0 +@dirrm lib/tntnet +@dirrm include/tnt +@dirrm %%ETCDIR%% |