1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Foswiki is a flexible, powerful, secure, yet simple web-based

collaboration platform. Use Foswiki to run a project development
space, a document management system, a knowledge base or any other
groupware tool on either an intranet or on the Internet.

WWW:    http://www.foswiki.org/
This commit is contained in:
Greg Larkin 2009-08-10 21:47:32 +00:00
parent 6827f58938
commit 4d75794a8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=239288
10 changed files with 2636 additions and 0 deletions

View File

@ -226,6 +226,7 @@
SUBDIR += fluxcms
SUBDIR += fnord
SUBDIR += formication
SUBDIR += foswiki
SUBDIR += fpc-httpd13
SUBDIR += fpc-httpd20
SUBDIR += fpc-httpd22

112
www/foswiki/Makefile Normal file
View File

@ -0,0 +1,112 @@
# New ports collection makefile for: foswiki
# Date created: 2009-04-13
# Whom: Greg Larkin <glarkin@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= foswiki
PORTVERSION= 1.0.6
CATEGORIES= www
MASTER_SITES= SF
DISTNAME= Foswiki-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= glarkin@FreeBSD.org
COMMENT= A free and open source enterprise wiki
BUILD_DEPENDS= p5-CGI.pm>3.37:${PORTSDIR}/www/p5-CGI.pm \
p5-PathTools>=0:${PORTSDIR}/devel/p5-PathTools \
p5-Data-Dumper>=0:${PORTSDIR}/devel/p5-Data-Dumper \
p5-Error>=0:${PORTSDIR}/lang/p5-Error \
p5-File-Path>=0:${PORTSDIR}/devel/p5-File-Path \
p5-File-Temp>=0:${PORTSDIR}/devel/p5-File-Temp \
p5-IO>=1.22:${PORTSDIR}/devel/p5-IO \
p5-MIME-Base64>=0:${PORTSDIR}/converters/p5-MIME-Base64
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_PERL5= 5.8.4+
USE_APACHE= 2.0+
NO_BUILD= yes
OPTIONS= OPTINT "Install Perl modules for intl character support" Off \
OPTOTH "Install other optional Perl modules" On \
APACHE "Install sample Apache 2.x config file" Off
.include <bsd.port.pre.mk>
.if defined(WITH_OPTINT)
BUILD_DEPENDS+= p5-Encode>=0:${PORTSDIR}/converters/p5-Encode \
p5-Encode-compat>=0:${PORTSDIR}/converters/p5-Encode-compat \
p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon \
p5-Unicode-MapUTF8>=0:${PORTSDIR}/converters/p5-Unicode-MapUTF8
RUN_DEPENDS+= p5-Encode>=0:${PORTSDIR}/converters/p5-Encode \
p5-Encode-compat>=0:${PORTSDIR}/converters/p5-Encode-compat \
p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon \
p5-Unicode-MapUTF8>=0:${PORTSDIR}/converters/p5-Unicode-MapUTF8
.endif
.if defined(WITH_OPTOTH)
BUILD_DEPENDS+= p5-Apache-Htpasswd>=0:${PORTSDIR}/security/p5-Apache-Htpasswd \
p5-Archive-Tar>=0:${PORTSDIR}/archivers/p5-Archive-Tar \
p5-CGI-Session>=4.30:${PORTSDIR}/www/p5-CGI-Session \
p5-Digest-MD5>=0:${PORTSDIR}/security/p5-Digest-MD5 \
p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
p5-Lingua-EN-Sentence>=0:${PORTSDIR}/textproc/p5-Lingua-EN-Sentence \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
p5-Net>=1.19:${PORTSDIR}/net/p5-Net
RUN_DEPENDS+= ${BUILD_DEPENDS}
.endif
.if defined(WITH_APACHE)
PLIST_SUB+= NOAPACHE="" CONFDIR=${CONFDIR_REL}
CONFDIR= ${PREFIX}/${CONFDIR_REL}
CONFDIR_REL= ${APACHEETCDIR}/Includes
PKGMESSAGE= pkg-message-apache
SUB_FILES+= pkg-message-apache
.else
PLIST_SUB+= NOAPACHE="@comment "
PKGMESSAGE= pkg-message-noapache
SUB_FILES+= pkg-message-noapache
.endif
SUB_FILES+= LocalSite.cfg
post-patch:
@cd ${WRKSRC} && \
${REINPLACE_CMD} -i "" \
-e "s|^#[[:space:]]*\(.*\)/home/httpd/foswiki|\1${WWWDIR}|g" \
-e "s|^#[[:space:]]*\(.*\)\(\= \'/foswiki/\)|\1\2|g" \
-e "s|/bin/grep|/usr/bin/grep|g" \
lib/Foswiki.spec
@cd ${WRKSRC} && \
${REINPLACE_CMD} -i "" \
-e "s|/var/www/foswiki|${WWWDIR}|g" \
-e "s|192.168.1.10||g" \
foswiki_httpd_conf.txt
@cd ${WRKSRC}/bin && \
${INSTALL_DATA} LocalLib.cfg.txt LocalLib.cfg && \
${REINPLACE_CMD} -i "" -e "s|/absolute/path/to/your/lib|${WWWDIR}/lib|g" \
LocalLib.cfg
@${FIND} ${WRKSRC} -name \*.orig -delete
post-install:
.if defined(WITH_APACHE)
@if [ -d "${CONFDIR}" ]; then \
${INSTALL_DATA} ${WRKSRC}/foswiki_httpd_conf.txt \
${CONFDIR}/foswiki.conf.sample; \
else \
${ECHO_MSG} "" ; \
${ECHO_MSG} "Please check your Apache 2.x installation -" ; \
${ECHO_MSG} "${CONFDIR} doesn't exist," ; \
${ECHO_MSG} "so I cannot install foswiki.conf.sample there!" ; \
${ECHO_MSG} "" ; \
${FALSE} ; \
fi
.endif
@${CAT} ${PKGMESSAGE}
.include "${.CURDIR}/bsd.foswiki.mk"
.include <bsd.port.post.mk>

131
www/foswiki/bsd.foswiki.mk Normal file
View File

@ -0,0 +1,131 @@
# ex:ts=4 sw=4
#
# New ports collection makefile for: foswiki infrastructure
# Date created: 15 June 2009
# Whom: Greg Larkin <glarkin@FreeBSD.org>
# Copied From Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
#
# For more info, please go to http://wiki.FreeBSD.org/TWiki
#
PORTVERSION?= 0.0.${SVNREV}
.if ${PORTNAME} == foswiki
.if ${.TARGETS} == make-port
PNAME=
.else
PNAME= core
.endif
FWDIR?= ${WWWDIR}
.else
USE_BZIP2= yes
PKGNAMEPREFIX?= foswiki-
PNAME= ${PORTNAME}
FILESDIR?= ${.CURDIR}/../foswiki/files
BUILD_DEPENDS+= foswiki>=0:${PORTSDIR}/www/foswiki
FWDIR?= ${WWWDIR}/${PNAME}
.endif
MASTER_SITES?= http://www.sourcehosting.net/freebsd/distfiles/ \
LOCAL/glarkin
DIST_SUBDIR?= foswiki
CATEGORIES?= www
SVNURL?= http://svn.foswiki.org/trunk/${PNAME}
NO_BUILD= yes
WWWDIR?= ${PREFIX}/www/foswiki
PLIST_SUB+= FWDIR=${FWDIR:S|^${PREFIX}/||}
SUB_LIST+= FWDIR=${FWDIR} FIND=${FIND} CHMOD=${CHMOD} CHOWN=${CHOWN} \
TOUCH=${TOUCH} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} \
CONFDIR=${CONFDIR}
SUB_FILES+= pkg-install
MAINTAINER?= glarkin@FreeBSD.org
RUN_DEPENDS+= ${FWDEP:C/([^=<>]*)([=<>]*)(.*)/foswiki-\1\20.0.\3:${PORTSDIR}\/www\/foswiki-\1/}
make-dist:
${INSTALL} -d ${WRKDIR}/
#cd ${WRKDIR}/ && svn export -r ${SVNREV} ${SVNURL} && \
# ${MV} ${PNAME} ${DISTNAME} && \
# ${FIND} . -type d -empty | ${SED} -e 's|$$|/.keep_me|' | \
# ${XARGS} ${TOUCH} && \
# ${TAR} cjvf ${DISTNAME}.tar.bz2 ${DISTNAME}
cd ${WRKDIR}/ && svn export -r ${SVNREV} ${SVNURL} && \
${MV} ${PNAME} ${DISTNAME} && \
${FIND} . -type d -empty | ${SED} -e 's|$$|/.keep_me|' | \
${XARGS} ${TOUCH}
create-plist: extract
@${FIND} -s ${WRKSRC} -not -type d |\
${SED} -e 's|^${WRKSRC}|%%FWDIR%%|' > ${PLIST}
@${FIND} -ds ${WRKSRC} -type d -not -name ${DISTNAME} | \
${SED} -e "s,^${WRKSRC},@dirrm %%FWDIR%%," >> ${PLIST}
@${ECHO_CMD} '@dirrm %%FWDIR%%' >> ${PLIST}
do-install:
@${INSTALL} -d ${FWDIR}/
@cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${FWDIR}/
.if ${PORTNAME} == foswiki
@${INSTALL_DATA} ${WRKDIR}/LocalSite.cfg ${WWWDIR}/lib
.endif
${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
make-fwdep: extract
@echo "FWDEP=`grep -v ^# ${WRKSRC}/lib/*[wW]iki/*/${PORTNAME}/DEPENDENCIES |\
grep -v ',cpan,'|cut -f1-2 -d, | ${SED} -e 's|.*::||;s|,||g' |\
tr '\n' ' ' | sed 's| $$||'`"
@echo "RUN_DEPENDS=`grep -v ^# ${WRKSRC}/lib/*[wW]iki/*/${PORTNAME}/DEPENDENCIES |\
grep ',cpan,' | cut -f1-2 -d, | ${SED} -e 's|::|-|' | while read a; do\
n=p5-$${a%%,*}; v=$${a##*,}; \
o=\`echo ${PORTSDIR}/*/$$n\`; : $${o:=${PORTSDIR}/X/$$n}; \
echo $$n$$v:'$${PORTSDIR}'$${o##${PORTSDIR}}; done`"
make-port:
${INSTALL} -d ${_DISTDIR}
for n in ${name} ${names}; do\
cd ../ &&\
nnam="$${n%%:*}" &&\
nver="$${n##$$nnam}" &&\
nver="$${nver##:}" &&\
if [ -z "$$nver" ]; then \
nver=`svn log -q -l 1 ${SVNURL}$$nnam | grep -v '^--------' | awk '{ print $$1 }' | cut -c2-`; fi &&\
pnam="foswiki-$$nnam" &&\
if [ -d $$pnam ]; then continue; fi &&\
mkdir $$pnam/ && cd $$pnam/ &&\
echo "# New ports collection makefile for: $$pnam" > Makefile &&\
date '+# Date created:%t%t%e %B %Y' >> Makefile &&\
echo '#' >> Makefile &&\
echo '# $$''FreeBSD$$' >> Makefile &&\
echo '#' >> Makefile &&\
echo >> Makefile &&\
echo "PORTNAME= $$nnam" >> Makefile &&\
echo "MAINTAINER= ${MAINTAINER}" >> Makefile &&\
echo >> Makefile &&\
echo "SVNREV= $$nver" >> Makefile &&\
echo >> Makefile &&\
echo 'COMMENT= ' >> Makefile &&\
echo >> Makefile &&\
echo 'BUILD_DEPENDS= foswiki>=0:${PORTSDIR}/www/foswiki' >> Makefile &&\
echo >> Makefile &&\
echo '.include "$${.CURDIR}/../foswiki/bsd.foswiki.mk"' >> Makefile &&\
echo '.include <bsd.port.mk>' >> Makefile &&\
wrksrc=`make -V WRKSRC` &&\
make make-dist &&\
: "mv `make -V WRKDIR`/*bz2 ${_DISTDIR}/" &&\
: "make makesum create-plist" &&\
page1="$$wrksrc/data/TWiki/$$nnam.txt" &&\
page2="$$wrksrc/data/System/$$nnam.txt" &&\
if [ -e $$page1 ]; then \
page=$$page1; elif [ -e $$page2 ]; then \
page=$$page2; else \
echo "Could not locate $$page1 or $$page2"; exit; fi &&\
grep -m1 'Set SHORTDESC' $$page |\
sed -e 's|.*N = ||;s|<nop>||g;s|! |. |g;s|!||g;s|=||g' |\
fmt -w 70 > pkg-descr &&\
echo >> pkg-descr &&\
grep -m1 Author $$page|grep '^|' |cut -f3 -d'|' |\
sed -E 's|.+[wW]iki:Main[./]||g;s|^|Author: |;s| | |g;s| $$||;\
s|([a-z]) |\1, |;s|([a-z])([A-Z])|\1 \2|g' >> pkg-descr &&\
echo "WWW: http://www.foswiki.org/Support/$$nnam" >> pkg-descr;\
done

3
www/foswiki/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (foswiki/Foswiki-1.0.6.tgz) = 25d8720c6ac4c116e0f8abcc57dff222
SHA256 (foswiki/Foswiki-1.0.6.tgz) = bea6157b2c586013baee56a4ca768929f7aec03f1f08d5c0294f5620e502927d
SIZE (foswiki/Foswiki-1.0.6.tgz) = 3903013

View File

@ -0,0 +1 @@
1;

View File

@ -0,0 +1,51 @@
#!/bin/sh
#
# $FreeBSD$
#
WWWDIR=%%WWWDIR%%
FIND=%%FIND%%
CHMOD=%%CHMOD%%
CHOWN=%%CHOWN%%
TOUCH=%%TOUCH%%
WWWOWN=%%WWWOWN%%
WWWGRP=%%WWWGRP%%
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
cd ${WWWDIR}/
${FIND} . -type d -print -exec ${CHMOD} 755 {} \;
${FIND} data -name '*.txt' -type f -exec ${CHMOD} 644 {} \;
${FIND} data pub -name '*,v' -type f -exec ${CHMOD} 444 {} \;
${FIND} lib -type f -exec ${CHMOD} 444 {} \;
${FIND} locale -type f -exec ${CHMOD} 444 {} \;
${FIND} pub -type f -exec ${CHMOD} 644 {} \;
${FIND} bin -type f -exec ${CHMOD} 555 {} \;
${FIND} bin/logos -type f -exec ${CHMOD} 444 {} \;
${FIND} templates -type f -exec ${CHMOD} 444 {} \;
${FIND} tools -type f -exec ${CHMOD} 555 {} \;
${TOUCH} data/.htpasswd
${CHMOD} 644 data/.htpasswd
${CHMOD} 644 data/mime.types
${CHMOD} 644 bin/LocalLib.cfg.txt bin/.htaccess.txt
${CHMOD} 444 bin/setlib.cfg
${CHMOD} 644 lib/LocalSite.cfg
${CHMOD} 444 tools/extender.pl
${CHMOD} 444 working/tmp/README working/README \
working/registration_approvals/README \
working/work_areas/README
${CHMOD} 660 working/.htaccess
${CHMOD} 444 AUTHORS COPYING COPYRIGHT index.html \
INSTALL.html LICENSE pub-htaccess.txt readme.txt \
robots.txt root-htaccess.txt subdir-htaccess.txt \
foswiki_httpd_conf.txt ReleaseNotes01x00.html
${CHOWN} -R ${WWWOWN}:${WWWGRP} .
;;
*)
echo "Unexpected Argument $2!!!"
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,39 @@
*********************************************************************
You have just installed Foswiki with a sample Apache configuration
file.
To complete the installation, please:
- Copy %%CONFDIR%%/foswiki.conf.sample to
%%CONFDIR%%/foswiki.conf
- Review the contents of %%CONFDIR%%/foswiki.conf
to ensure they match your local security policies, and modify the
file if necessary.
- If you want to configure Foswiki from a remote machine, search for the
following in %%CONFDIR%%/foswiki.conf:
<FilesMatch "^configure.*">
SetHandler cgi-script
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Require user JohnDoe
Satisfy Any
</FilesMatch>
Add your IP address to the end of the "Allow from 127.0.0.1" line, and
you will be able to access the configure script without logging in. Make
sure to remove your IP after you have set up your own user account.
- Restart Apache.
- Browse to the /foswiki URL on your web server and enter the configuration
page.
- Configure the Foswiki installation according to your needs.
- Visit http://foswiki.org/System/InstallationGuide#Configure_Foswiki for
additional post-installation configuration information.

View File

@ -0,0 +1,35 @@
*********************************************************************
You have just installed Foswiki without a sample Apache configuration
file.
To complete the installation, please:
- Create the file %%CONFDIR%%/foswiki.conf
(%%WWWDIR%%/foswiki_httpd_conf.txt may be used as a guide)
- If you want to configure Foswiki from a remote machine, search for the
following in %%CONFDIR%%/foswiki.conf:
<FilesMatch "^configure.*">
SetHandler cgi-script
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Require user JohnDoe
Satisfy Any
</FilesMatch>
Add your IP address to the end of the "Allow from 127.0.0.1" line, and
you will be able to access the configure script without logging in. Make
sure to remove your IP after you have set up your own user account.
- Restart Apache.
- Browse to the /foswiki URL on your web server and enter the configuration
page.
- Configure the Foswiki installation according to your needs.
- Visit http://foswiki.org/System/InstallationGuide#Configure_Foswiki for
additional post-installation configuration information.

6
www/foswiki/pkg-descr Normal file
View File

@ -0,0 +1,6 @@
Foswiki is a flexible, powerful, secure, yet simple web-based
collaboration platform. Use Foswiki to run a project development
space, a document management system, a knowledge base or any other
groupware tool on either an intranet or on the Internet.
WWW: http://www.foswiki.org/

2257
www/foswiki/pkg-plist Normal file

File diff suppressed because it is too large Load Diff