ports/65681: [NEW PORT] www/formication: Formular processing tool written in perl
Michael Ranner
mranner at inode.at
Sat Apr 17 18:50:23 UTC 2004
>Number: 65681
>Category: ports
>Synopsis: [NEW PORT] www/formication: Formular processing tool written in perl
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 17 11:50:22 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Michael Ranner
>Release: FreeBSD 4.9-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD dwarf.jawa.at 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #4: Sat Nov 29 11:09:14 CET 2003
>Description:
This pr obsoletes ports/62045 (please close it), now it contains SIZE
info and summarizes ports/62045 and my followup.
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 at villainy.com>
WWW: http://www.villainy.com/developers.html
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- formication-1.0b1.shar begins here ---
# 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:
#
# formication
# formication/pkg-descr
# formication/Makefile
# formication/pkg-plist
# formication/distinfo
# formication/pkg-message
# formication/files
# formication/files/patch-sendmail
#
echo c - formication
mkdir -p formication > /dev/null 2>&1
echo x - formication/pkg-descr
sed 's/^X//' >formication/pkg-descr << 'END-of-formication/pkg-descr'
XFormication is a form processor which can send custom-formatted email,
Xsave form data to custom-formatted files, and reply to the user with
Xa custom-formatted response. Formication is also able to require that
Xcertain fields be filled in. All configuration is done with simple
Xtemplates, all of the templates for a given form being within the same
Xfile.
X
XAuthor: Andru Luvisi <luvisi at villainy.com>
XWWW: http://www.villainy.com/developers.html
END-of-formication/pkg-descr
echo x - formication/Makefile
sed 's/^X//' >formication/Makefile << 'END-of-formication/Makefile'
X# New ports collection makefile for: formication
X# Date created: 2004-01-25
X# Whom: Michael Ranner <mranner at inode.at>
X#
X# $FreeBSD$
X#
X
XPORTNAME= formication
XPORTVERSION= 1.0b1
XCATEGORIES= www
XMASTER_SITES= http://www.villainy.com/downloads/ \
X http://www.ranner.jawa.at/stuff/
XDISTNAME= ${PORTNAME}
X
XMAINTAINER= mranner at inode.at
XCOMMENT= Formular processing tool written in perl
X
XCGI_UID?= 100
X
XUSE_APACHE= yes
XUSE_PERL5_RUN= yes
XUSE_REINPLACE= yes
XNO_BUILD= yes
X
Xpost-patch:
X @${REINPLACE_CMD} -e "s,^#!/usr/local/bin/perl,#!${PERL},g" \
X -e "s,authorized_uid = 1031;,authorized_uid = ${CGI_UID};,g" \
X ${WRKSRC}/formication.pl
X
Xdo-install:
X @${INSTALL_DATA} ${WRKSRC}/formication.pl ${PREFIX}/www/cgi-bin
X.if !defined(NOPORTDOCS)
X @${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/BLURB ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/feedback.fcn ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/feedback.html ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/formication.txt ${DOCSDIR}
X.endif
X
Xpost-install:
X @${ECHO}
X @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
X -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${PKGMESSAGE}
X @${ECHO}
X
X.include <bsd.port.pre.mk>
X.include <bsd.port.post.mk>
END-of-formication/Makefile
echo x - formication/pkg-plist
sed 's/^X//' >formication/pkg-plist << 'END-of-formication/pkg-plist'
Xwww/cgi-bin/formication.pl
X%%PORTDOCS%%%%DOCSDIR%%/BLURB
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/feedback.fcn
X%%PORTDOCS%%%%DOCSDIR%%/feedback.html
X%%PORTDOCS%%%%DOCSDIR%%/formication.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-formication/pkg-plist
echo x - formication/distinfo
sed 's/^X//' >formication/distinfo << 'END-of-formication/distinfo'
XMD5 (formication.tar.gz) = 7fc4a8a8e632c99e5167b1c8088f8483
XSIZE (formication.tar.gz) = 14789
END-of-formication/distinfo
echo x - formication/pkg-message
sed 's/^X//' >formication/pkg-message << 'END-of-formication/pkg-message'
X*****************************************************************************
X
XYou have installed the formication package.
X
XEdit %%LOCALBASE%%/etc/apache/httpd.conf and add:
X
X Action formication /cgi-bin/formication.pl
X AddHandler formication .fcn
X
XRead %%DOCSDIR%%/formication.txt to learn how to use
X
X*****************************************************************************
END-of-formication/pkg-message
echo c - formication/files
mkdir -p formication/files > /dev/null 2>&1
echo x - formication/files/patch-sendmail
sed 's/^X//' >formication/files/patch-sendmail << 'END-of-formication/files/patch-sendmail'
X*** formication.pl.orig Fri Jan 30 23:24:27 2004
X--- formication.pl Fri Jan 30 23:24:45 2004
X***************
X*** 234,240 ****
X # thereby saving us from having to parse the headers ourselves.
X if($child_id == 0) {
X # without the if, perl warns that the exit is unlikely to be reached.
X! if(1) { exec("/usr/lib/sendmail -t"); }
X exit(1);
X }
X
X--- 234,240 ----
X # thereby saving us from having to parse the headers ourselves.
X if($child_id == 0) {
X # without the if, perl warns that the exit is unlikely to be reached.
X! if(1) { exec("/usr/sbin/sendmail -t"); }
X exit(1);
X }
X
END-of-formication/files/patch-sendmail
exit
--- formication-1.0b1.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list