aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-07-25 09:24:57 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-07-25 09:24:57 +0000
commitd06983b147a40086a48f81d925e5a4171c31f90c (patch)
tree25857301b3325d7cf1035876ff73d9ca634ccdf0
parent13b20ca3fc74f454d4f657c0f1d2fa84d8e36cd5 (diff)
downloadports-d06983b147a40086a48f81d925e5a4171c31f90c.tar.gz
ports-d06983b147a40086a48f81d925e5a4171c31f90c.zip
Notes
-rw-r--r--www/Makefile1
-rw-r--r--www/formication/Makefile50
-rw-r--r--www/formication/distinfo2
-rw-r--r--www/formication/files/patch-sendmail19
-rw-r--r--www/formication/pkg-descr9
-rw-r--r--www/formication/pkg-message12
6 files changed, 93 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 7e55491d38b0..d0eccbb4fc73 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -109,6 +109,7 @@
SUBDIR += flashplugin-mozilla-devel
SUBDIR += flashpluginwrapper
SUBDIR += flood
+ SUBDIR += formication
SUBDIR += frontpage
SUBDIR += frontpage-ar
SUBDIR += frontpage-de
diff --git a/www/formication/Makefile b/www/formication/Makefile
new file mode 100644
index 000000000000..12b1ce8c5ec2
--- /dev/null
+++ b/www/formication/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: formication
+# Date created: 2004-01-25
+# Whom: Michael Ranner <mranner@inode.at>
+#
+# $FreeBSD$
+#
+
+PORTNAME= formication
+PORTVERSION= 1.0.b1
+CATEGORIES= www
+MASTER_SITES= http://www.villainy.com/downloads/ \
+ http://www.ranner.jawa.at/stuff/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= mranner@inode.at
+COMMENT= Formular processing tool written in perl
+
+CGI_UID?= www
+
+PKGMESSAGE= ${WRKDIR}/pkg-message
+USE_APACHE= yes
+USE_PERL5_RUN= yes
+USE_REINPLACE= yes
+NO_BUILD= yes
+
+PORTDOCS= BLURB COPYING feedback.fcn feedback.html formication.txt
+PLIST_FILES= www/cgi-bin/formication.pl
+
+post-patch:
+ @${REINPLACE_CMD} -e "s,^#!/usr/local/bin/perl,#!${PERL},g" \
+ -e "s,authorized_uid = 1031;,authorized_uid = ${CGI_UID};,g" \
+ ${WRKSRC}/formication.pl
+
+do-install:
+ @${INSTALL_DATA} ${WRKSRC}/formication.pl ${PREFIX}/www/cgi-bin
+.if !defined(NOPORTDOCS)
+ @${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
+. for i in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+. endfor
+.endif
+
+pre-install:
+ @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ -e 's|%%DOCSDIR%%|${DOCSDIR}|g' <${.CURDIR}/pkg-message >${PKGMESSAGE}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/www/formication/distinfo b/www/formication/distinfo
new file mode 100644
index 000000000000..00ea6451478d
--- /dev/null
+++ b/www/formication/distinfo
@@ -0,0 +1,2 @@
+MD5 (formication.tar.gz) = 7fc4a8a8e632c99e5167b1c8088f8483
+SIZE (formication.tar.gz) = 14789
diff --git a/www/formication/files/patch-sendmail b/www/formication/files/patch-sendmail
new file mode 100644
index 000000000000..99cf4fd1e8e7
--- /dev/null
+++ b/www/formication/files/patch-sendmail
@@ -0,0 +1,19 @@
+*** formication.pl.orig Fri Jan 30 23:24:27 2004
+--- formication.pl Fri Jan 30 23:24:45 2004
+***************
+*** 234,240 ****
+ # thereby saving us from having to parse the headers ourselves.
+ if($child_id == 0) {
+ # without the if, perl warns that the exit is unlikely to be reached.
+! if(1) { exec("/usr/lib/sendmail -t"); }
+ exit(1);
+ }
+
+--- 234,240 ----
+ # thereby saving us from having to parse the headers ourselves.
+ if($child_id == 0) {
+ # without the if, perl warns that the exit is unlikely to be reached.
+! if(1) { exec("/usr/sbin/sendmail -t"); }
+ exit(1);
+ }
+
diff --git a/www/formication/pkg-descr b/www/formication/pkg-descr
new file mode 100644
index 000000000000..dc4a6c71c645
--- /dev/null
+++ b/www/formication/pkg-descr
@@ -0,0 +1,9 @@
+Formication is a form processor which can send custom-formatted email,
+save form data to custom-formatted files, and reply to the user with
+a custom-formatted response. Formication is also able to require that
+certain fields be filled in. All configuration is done with simple
+templates, all of the templates for a given form being within the same
+file.
+
+Author: Andru Luvisi <luvisi@villainy.com>
+WWW: http://www.villainy.com/developers.html
diff --git a/www/formication/pkg-message b/www/formication/pkg-message
new file mode 100644
index 000000000000..94ac65c25896
--- /dev/null
+++ b/www/formication/pkg-message
@@ -0,0 +1,12 @@
+*****************************************************************************
+
+You have installed the formication package.
+
+Edit %%LOCALBASE%%/etc/apache/httpd.conf and add:
+
+ Action formication /cgi-bin/formication.pl
+ AddHandler formication .fcn
+
+Read %%DOCSDIR%%/formication.txt to learn how to use
+
+*****************************************************************************