diff options
author | dmcmahill <dmcmahill> | 2005-11-01 03:52:11 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2005-11-01 03:52:11 +0000 |
commit | 60469320a0a090674965031e5fd26169ca9b9a3b (patch) | |
tree | 41731a20149fe5bfdaa4e846f65f8a5115ca019e | |
parent | 858716ea6549c6441afc0a597fdb0bfae87a1fde (diff) | |
download | pkgsrc-60469320a0a090674965031e5fd26169ca9b9a3b.tar.gz |
import cgi-wcalc-0.9
This is the common gateway interface (CGI) frontend for the Wcalc
transmission line analysis/synthesis calculator.
-rw-r--r-- | cad/cgi-wcalc/DESCR | 2 | ||||
-rw-r--r-- | cad/cgi-wcalc/MESSAGE | 40 | ||||
-rw-r--r-- | cad/cgi-wcalc/Makefile | 23 | ||||
-rw-r--r-- | cad/cgi-wcalc/PLIST | 8 |
4 files changed, 73 insertions, 0 deletions
diff --git a/cad/cgi-wcalc/DESCR b/cad/cgi-wcalc/DESCR new file mode 100644 index 00000000000..a751e6578e4 --- /dev/null +++ b/cad/cgi-wcalc/DESCR @@ -0,0 +1,2 @@ +This is the common gateway interface (CGI) frontend for the Wcalc +transmission line analysis/synthesis calculator. diff --git a/cad/cgi-wcalc/MESSAGE b/cad/cgi-wcalc/MESSAGE new file mode 100644 index 00000000000..e42451d1605 --- /dev/null +++ b/cad/cgi-wcalc/MESSAGE @@ -0,0 +1,40 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2005/11/01 03:52:12 dmcmahill Exp $ + +You have configured cgi-wcalc to install the cgi programs to the directory +${PREFIX}/${WCALC_CGIDIR}. +You will need to configure your web server to allow CGI programs to +execute from that directory. + +In addition, you configured cgi-wcalc to use ${WCALC_CGIPATH} as the URI +for the CGI programs. You will need to configure your web server so that +http://your.name${WCALC_CGIPATH} will access the CGI programs in +${PREFIX}/${WCALC_CGIDIR}. + +A typical apache httpd.conf setup would be: + +# Setup the alias to the wcalc HTML directory +# This is where the static web pages and the images +# reside +Alias ${WCALC_HTMLPATH} "${PREFIX}/${WCALC_HTMLDIR}" + +# setup options for the wcalc HTML directory +<Directory "${PREFIX}/${WCALC_HTMLDIR}"> + Options Indexes MultiViews + AllowOverride None + Order allow,deny + Allow from all +</Directory> + +# Setup the alias to the wcalc CGI directory +ScriptAlias ${WCALC_CGIPATH} "${PREFIX}/${WCALC_CGIDIR}/" + +# setup options for the wcalc CGI directory +<Directory "${PREFIX}/${WCALC_CGIDIR}"> + AllowOverride None + Options None + Order allow,deny + Allow from all +</Directory> + +=========================================================================== diff --git a/cad/cgi-wcalc/Makefile b/cad/cgi-wcalc/Makefile new file mode 100644 index 00000000000..87d24574009 --- /dev/null +++ b/cad/cgi-wcalc/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/01 03:52:11 dmcmahill Exp $ +# + +.include "../../cad/wcalc/Makefile.common" +PKGNAME= cgi-${DISTNAME} + +COMMENT= CGI Based Transmission Line Analysis/Synthesis Calculator + +DEPENDS+= wcalc-docs-${VER}*:../../cad/wcalc-docs + +# Only enable the CGI frontend +CONFIGURE_ARGS+= --enable-cgi +CONFIGURE_ARGS+= --disable-gtk1 +CONFIGURE_ARGS+= --disable-gtk2 +CONFIGURE_ARGS+= --disable-htdocs +CONFIGURE_ARGS+= --disable-libwcalc +CONFIGURE_ARGS+= --disable-stdio +CONFIGURE_ARGS+= --without-matlab +CONFIGURE_ARGS+= --without-octave +CONFIGURE_ARGS+= --without-scilab + +.include "../../cad/libwcalc/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/cad/cgi-wcalc/PLIST b/cad/cgi-wcalc/PLIST new file mode 100644 index 00000000000..8c0f050e3cf --- /dev/null +++ b/cad/cgi-wcalc/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/01 03:52:12 dmcmahill Exp $ +${WCALC_CGIDIR}/air_coil.cgi +${WCALC_CGIDIR}/coax.cgi +${WCALC_CGIDIR}/coupled_microstrip.cgi +${WCALC_CGIDIR}/ic_microstrip.cgi +${WCALC_CGIDIR}/microstrip.cgi +${WCALC_CGIDIR}/stripline.cgi +@unexec ${RMDIR} %D/${WCALC_CGIDIR} 2>/dev/null || ${TRUE} |