Add formication 1.0.b1, formular processing tool written in perl.

PR:		ports/65681
Submitted by:	Michael Ranner <mranner@inode.at>
This commit is contained in:
Volker Stolz 2004-07-25 09:24:57 +00:00
parent 13b20ca3fc
commit d06983b147
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114631
6 changed files with 93 additions and 0 deletions

View file

@ -109,6 +109,7 @@
SUBDIR += flashplugin-mozilla-devel
SUBDIR += flashpluginwrapper
SUBDIR += flood
SUBDIR += formication
SUBDIR += frontpage
SUBDIR += frontpage-ar
SUBDIR += frontpage-de

50
www/formication/Makefile Normal file
View file

@ -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>

2
www/formication/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (formication.tar.gz) = 7fc4a8a8e632c99e5167b1c8088f8483
SIZE (formication.tar.gz) = 14789

View file

@ -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);
}

View file

@ -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

View file

@ -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
*****************************************************************************