summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/geneweb/Makefile27
-rw-r--r--www/geneweb/distinfo2
-rw-r--r--www/geneweb/files/install.sh99
-rw-r--r--www/geneweb/files/patch-Makefile9
-rw-r--r--www/geneweb/files/pkg-message.in6
-rw-r--r--www/geneweb/pkg-descr10
-rw-r--r--www/geneweb/pkg-plist212
8 files changed, 366 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index e7a18e0f80c3..417d0baeaaa9 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -145,6 +145,7 @@
SUBDIR += gatling
SUBDIR += gecko-sharp
SUBDIR += geeklog
+ SUBDIR += geneweb
SUBDIR += geolizer
SUBDIR += gforge
SUBDIR += glibwww
diff --git a/www/geneweb/Makefile b/www/geneweb/Makefile
new file mode 100644
index 000000000000..494cfcd5d34f
--- /dev/null
+++ b/www/geneweb/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: geneweb
+# Date created: 10 septembre 2005
+# Whom: Hubert Tournier <hubert@frbsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= geneweb
+PORTVERSION= 4.10
+CATEGORIES= www
+MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/geneweb/Src/
+
+MAINTAINER= hubert@frbsd.org
+COMMENT= An advanced genealogy software
+
+BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
+
+MAN1= ged2gwb.1 gwb2ged.1 gwc.1 gwu.1
+
+SUB_FILES+= pkg-message
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/etc/a.gwf ${PREFIX}/share/geneweb
+ ${INSTALL_SCRIPT} files/install.sh ${PREFIX}/share/geneweb
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/www/geneweb/distinfo b/www/geneweb/distinfo
new file mode 100644
index 000000000000..eb26986b4aeb
--- /dev/null
+++ b/www/geneweb/distinfo
@@ -0,0 +1,2 @@
+MD5 (geneweb-4.10.tar.gz) = 87371983b3493ced501303e096b70b3a
+SIZE (geneweb-4.10.tar.gz) = 998314
diff --git a/www/geneweb/files/install.sh b/www/geneweb/files/install.sh
new file mode 100644
index 000000000000..de30c9b283ed
--- /dev/null
+++ b/www/geneweb/files/install.sh
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+#
+# Install GeneWeb in a user's home directory
+#
+# Hubert Tournier <hubert@frbsd.org>
+#
+
+echo -n "User's account: "
+read USER
+
+USER_HOME=`grep "^${USER}:" /etc/passwd | cut -d":" -f6`
+if [ "${USER_HOME}" = "" ]
+then echo "Sorry. This user is unknown in the system."
+ exit 1
+fi
+USER_GROUP=`grep "^${USER}:" /etc/passwd | cut -d":" -f4`
+
+echo -n "User's public GeneWeb directory [${USER_HOME}/public_html/geneweb]: "
+read PUB_DIR
+if [ "${PUB_DIR}" = "" ]
+then PUB_DIR=${USER_HOME}/public_html/geneweb
+fi
+
+echo -n "User's private GeneWeb directory [${USER_HOME}/geneweb.db]: "
+read PRIV_DIR
+if [ "${PRIV_DIR}" = "" ]
+then PRIV_DIR=${USER_HOME}/geneweb.db
+fi
+
+echo -n "User's GEDCOM file [return for none]: "
+read GEDCOM
+if [ "${GEDCOM}" != "" -a ! -f "${GEDCOM}" ]
+then echo "Sorry. This file is unknown in the system."
+ exit 1
+fi
+
+echo -n "User's GeneWeb database name [${USER}]: "
+read DB_NAME
+if [ "${DB_NAME}" = "" ]
+then DB_NAME=${USER}
+fi
+
+echo -n "Enable database history [no]: "
+read DB_HISTORY
+case $DB_HISTORY in
+ y*) DB_HISTORY=yes ;;
+ *) DB_HISTORY=no ;;
+esac
+
+echo -n "Disable database forum [no]: "
+read DB_FORUM
+case $DB_FORUM in
+ y*) DB_FORUM=yes ;;
+ *) DB_FORUM=no ;;
+esac
+
+mkdir ${PUB_DIR}
+cat > ${PUB_DIR}/gw.cgi << EOF
+#!/bin/sh
+/usr/local/bin/gwd -cgi -bd ${PRIV_DIR} 2>/dev/null
+EOF
+chmod -R 755 ${PUB_DIR}
+chown -R ${USER}:${USER_GROUP} ${PUB_DIR}
+
+mkdir -p ${PRIV_DIR}/images/${DB_NAME}
+chmod 755 ${PRIV_DIR}
+chmod -R 777 ${PRIV_DIR}/images
+if [ "${GEDCOM}" = "" ]
+then /usr/local/bin/gwc -o ${PRIV_DIR}/${DB_NAME}
+else /usr/local/bin/ged2gwb ${GEDCOM} -o ${PRIV_DIR}/${DB_NAME}
+fi
+if [ "${DB_HISTORY}" = "yes" ]
+then touch ${PRIV_DIR}/${DB_NAME}.gwb/history
+ chmod 666 ${PRIV_DIR}/${DB_NAME}.gwb/history
+fi
+touch ${PRIV_DIR}/${DB_NAME}.gwb/forum
+chmod 666 ${PRIV_DIR}/${DB_NAME}.gwb/forum
+install -o ${USER} -g ${USER_GROUP} -m 644 -c /usr/local/share/geneweb/a.gwf ${PRIV_DIR}/${DB_NAME}.gwf
+chmod -R a+w ${PRIV_DIR}/${DB_NAME}.gwb ${PRIV_DIR}/${DB_NAME}.lck
+chown -R ${USER}:${USER_GROUP} ${PRIV_DIR}
+if [ "${DB_FORUM}" = "yes" ]
+then chflags schg ${PRIV_DIR}/${DB_NAME}.gwb/forum
+fi
+
+cat << EOF
+===================================================================================================
+Now review the settings in ${PRIV_DIR}/${DB_NAME}.gwf
+
+If your web server is Apache, make sure to include the following lines in your config file:
+ <Directory ${PUB_DIR}>
+ Options ExecCGI
+ XBitHack on
+ AddHandler cgi-script .cgi
+ </Directory>
+then reload Apache and point your browser to http://your.machine/~${USER}`echo ${PUB_DIR}|sed s/.*public_html//"`/gw.cgi?b=${DB_NAME}
+===================================================================================================
+EOF
+
diff --git a/www/geneweb/files/patch-Makefile b/www/geneweb/files/patch-Makefile
new file mode 100644
index 000000000000..496fd8c3b150
--- /dev/null
+++ b/www/geneweb/files/patch-Makefile
@@ -0,0 +1,9 @@
+--- Makefile.orig Thu Sep 8 22:56:51 2005
++++ Makefile Thu Sep 8 22:57:29 2005
+@@ -1,6 +1,5 @@
+ # $Id: Makefile,v 4.18 2004/07/01 14:00:24 ddr Exp $
+
+-PREFIX=/usr
+ LANGDIR=$(PREFIX)/share/geneweb
+ DOCDIR=$(PREFIX)/share/geneweb/doc
+ MANDIR=$(PREFIX)/man/man1
diff --git a/www/geneweb/files/pkg-message.in b/www/geneweb/files/pkg-message.in
new file mode 100644
index 000000000000..4727f9d0638d
--- /dev/null
+++ b/www/geneweb/files/pkg-message.in
@@ -0,0 +1,6 @@
+==========================================================================
+
+In order to install GeneWeb in a user's public_html directory, please run:
+ %%DATADIR%%/install.sh
+
+==========================================================================
diff --git a/www/geneweb/pkg-descr b/www/geneweb/pkg-descr
new file mode 100644
index 000000000000..0eaba8ba86d7
--- /dev/null
+++ b/www/geneweb/pkg-descr
@@ -0,0 +1,10 @@
+GeneWeb is a genealogy software program with a Web interface
+developed by Daniel de Rauglaudre. It can be used off-line
+or in a Web environment. It uses very efficient techniques
+of relationship and consanguinity computing, developed in
+collaboration with Didier Remy, research Director at INRIA.
+
+WWW: http://www.geneweb.org/
+
+- Hubert Tournier
+hubert@frbsd.org
diff --git a/www/geneweb/pkg-plist b/www/geneweb/pkg-plist
new file mode 100644
index 000000000000..3745cfde7a1a
--- /dev/null
+++ b/www/geneweb/pkg-plist
@@ -0,0 +1,212 @@
+@comment $FreeBSD$
+bin/consang
+bin/ged2gwb
+bin/gwb2ged
+bin/gwc
+bin/gwd
+bin/gwu
+%%DATADIR%%/a.gwf
+%%DATADIR%%/doc/CREDITS.htm
+%%DATADIR%%/doc/LICENSE.htm
+%%DATADIR%%/doc/de/access.htm
+%%DATADIR%%/doc/de/cdrom.htm
+%%DATADIR%%/doc/de/consang.htm
+%%DATADIR%%/doc/de/diruse.htm
+%%DATADIR%%/doc/de/divide.htm
+%%DATADIR%%/doc/de/faq.htm
+%%DATADIR%%/doc/de/gwsetup.htm
+%%DATADIR%%/doc/de/initial.htm
+%%DATADIR%%/doc/de/links.htm
+%%DATADIR%%/doc/de/maint.htm
+%%DATADIR%%/doc/de/merge.htm
+%%DATADIR%%/doc/de/pcustom.htm
+%%DATADIR%%/doc/de/problem.htm
+%%DATADIR%%/doc/de/recover.htm
+%%DATADIR%%/doc/de/report.htm
+%%DATADIR%%/doc/de/server.htm
+%%DATADIR%%/doc/de/start.htm
+%%DATADIR%%/doc/de/update.htm
+%%DATADIR%%/doc/en/access.htm
+%%DATADIR%%/doc/en/cdrom.htm
+%%DATADIR%%/doc/en/consang.htm
+%%DATADIR%%/doc/en/diruse.htm
+%%DATADIR%%/doc/en/divide.htm
+%%DATADIR%%/doc/en/faq.htm
+%%DATADIR%%/doc/en/gwformat.htm
+%%DATADIR%%/doc/en/gwsetup.htm
+%%DATADIR%%/doc/en/initial.htm
+%%DATADIR%%/doc/en/links.htm
+%%DATADIR%%/doc/en/maint.htm
+%%DATADIR%%/doc/en/merge.htm
+%%DATADIR%%/doc/en/pcustom.htm
+%%DATADIR%%/doc/en/problem.htm
+%%DATADIR%%/doc/en/recover.htm
+%%DATADIR%%/doc/en/report.htm
+%%DATADIR%%/doc/en/server.htm
+%%DATADIR%%/doc/en/start.htm
+%%DATADIR%%/doc/en/update.htm
+%%DATADIR%%/doc/fr/access.htm
+%%DATADIR%%/doc/fr/cdrom.htm
+%%DATADIR%%/doc/fr/consang.htm
+%%DATADIR%%/doc/fr/diruse.htm
+%%DATADIR%%/doc/fr/divide.htm
+%%DATADIR%%/doc/fr/faq.htm
+%%DATADIR%%/doc/fr/gwformat.htm
+%%DATADIR%%/doc/fr/gwsetup.htm
+%%DATADIR%%/doc/fr/initial.htm
+%%DATADIR%%/doc/fr/links.htm
+%%DATADIR%%/doc/fr/maint.htm
+%%DATADIR%%/doc/fr/merge.htm
+%%DATADIR%%/doc/fr/pcustom.htm
+%%DATADIR%%/doc/fr/problem.htm
+%%DATADIR%%/doc/fr/recover.htm
+%%DATADIR%%/doc/fr/report.htm
+%%DATADIR%%/doc/fr/server.htm
+%%DATADIR%%/doc/fr/start.htm
+%%DATADIR%%/doc/fr/update.htm
+%%DATADIR%%/doc/images/gwback.jpg
+%%DATADIR%%/doc/images/gwlogo.png
+%%DATADIR%%/doc/images/l-de.jpg
+%%DATADIR%%/doc/images/l-en.jpg
+%%DATADIR%%/doc/images/l-fr.jpg
+%%DATADIR%%/doc/images/l-it.jpg
+%%DATADIR%%/doc/images/l-nl.jpg
+%%DATADIR%%/doc/images/l-sv.jpg
+%%DATADIR%%/doc/index.htm
+%%DATADIR%%/doc/it/access.htm
+%%DATADIR%%/doc/it/cdrom.htm
+%%DATADIR%%/doc/it/consang.htm
+%%DATADIR%%/doc/it/diruse.htm
+%%DATADIR%%/doc/it/divide.htm
+%%DATADIR%%/doc/it/faq.htm
+%%DATADIR%%/doc/it/gwformat.htm
+%%DATADIR%%/doc/it/gwsetup.htm
+%%DATADIR%%/doc/it/initial.htm
+%%DATADIR%%/doc/it/links.htm
+%%DATADIR%%/doc/it/maint.htm
+%%DATADIR%%/doc/it/merge.htm
+%%DATADIR%%/doc/it/pcustom.htm
+%%DATADIR%%/doc/it/problem.htm
+%%DATADIR%%/doc/it/recover.htm
+%%DATADIR%%/doc/it/report.htm
+%%DATADIR%%/doc/it/server.htm
+%%DATADIR%%/doc/it/start.htm
+%%DATADIR%%/doc/it/update.htm
+%%DATADIR%%/doc/nl/consang.htm
+%%DATADIR%%/doc/nl/diruse.htm
+%%DATADIR%%/doc/nl/faq.htm
+%%DATADIR%%/doc/nl/links.htm
+%%DATADIR%%/doc/nl/maint.htm
+%%DATADIR%%/doc/nl/merge.htm
+%%DATADIR%%/doc/nl/pcustom.htm
+%%DATADIR%%/doc/nl/problem.htm
+%%DATADIR%%/doc/nl/recover.htm
+%%DATADIR%%/doc/nl/report.htm
+%%DATADIR%%/doc/nl/server.htm
+%%DATADIR%%/doc/nl/start.htm
+%%DATADIR%%/doc/nl/update.htm
+%%DATADIR%%/doc/sv/access.htm
+%%DATADIR%%/doc/sv/cdrom.htm
+%%DATADIR%%/doc/sv/consang.htm
+%%DATADIR%%/doc/sv/diruse.htm
+%%DATADIR%%/doc/sv/divide.htm
+%%DATADIR%%/doc/sv/faq.htm
+%%DATADIR%%/doc/sv/gwformat.htm
+%%DATADIR%%/doc/sv/gwsetup.htm
+%%DATADIR%%/doc/sv/initial.htm
+%%DATADIR%%/doc/sv/links.htm
+%%DATADIR%%/doc/sv/maint.htm
+%%DATADIR%%/doc/sv/merge.htm
+%%DATADIR%%/doc/sv/pcustom.htm
+%%DATADIR%%/doc/sv/problem.htm
+%%DATADIR%%/doc/sv/recover.htm
+%%DATADIR%%/doc/sv/report.htm
+%%DATADIR%%/doc/sv/server.htm
+%%DATADIR%%/doc/sv/start.htm
+%%DATADIR%%/doc/sv/update.htm
+%%DATADIR%%/etc/copyr.txt
+%%DATADIR%%/etc/index.txt
+%%DATADIR%%/etc/moved.txt
+%%DATADIR%%/etc/perso.txt
+%%DATADIR%%/etc/redirect.txt
+%%DATADIR%%/etc/renamed.txt
+%%DATADIR%%/etc/robot.txt
+%%DATADIR%%/etc/updfam.txt
+%%DATADIR%%/etc/updind.txt
+%%DATADIR%%/images/female.png
+%%DATADIR%%/images/gwback.jpg
+%%DATADIR%%/images/gwlogo.png
+%%DATADIR%%/images/l-af.jpg
+%%DATADIR%%/images/l-bg.jpg
+%%DATADIR%%/images/l-br.jpg
+%%DATADIR%%/images/l-ca.jpg
+%%DATADIR%%/images/l-cs.jpg
+%%DATADIR%%/images/l-da.jpg
+%%DATADIR%%/images/l-de.jpg
+%%DATADIR%%/images/l-en.jpg
+%%DATADIR%%/images/l-eo.jpg
+%%DATADIR%%/images/l-es.jpg
+%%DATADIR%%/images/l-et.jpg
+%%DATADIR%%/images/l-fi.jpg
+%%DATADIR%%/images/l-fr.jpg
+%%DATADIR%%/images/l-he.jpg
+%%DATADIR%%/images/l-is.jpg
+%%DATADIR%%/images/l-it.jpg
+%%DATADIR%%/images/l-lv.jpg
+%%DATADIR%%/images/l-nl.jpg
+%%DATADIR%%/images/l-no.jpg
+%%DATADIR%%/images/l-pl.jpg
+%%DATADIR%%/images/l-pt-br.jpg
+%%DATADIR%%/images/l-pt.jpg
+%%DATADIR%%/images/l-ro.jpg
+%%DATADIR%%/images/l-ru.jpg
+%%DATADIR%%/images/l-sl.jpg
+%%DATADIR%%/images/l-sv.jpg
+%%DATADIR%%/images/l-zh.jpg
+%%DATADIR%%/images/left.jpg
+%%DATADIR%%/images/male.png
+%%DATADIR%%/images/t-af.png
+%%DATADIR%%/images/t-bg.png
+%%DATADIR%%/images/t-br.png
+%%DATADIR%%/images/t-ca.png
+%%DATADIR%%/images/t-cs.png
+%%DATADIR%%/images/t-da.png
+%%DATADIR%%/images/t-de.png
+%%DATADIR%%/images/t-en.png
+%%DATADIR%%/images/t-eo.png
+%%DATADIR%%/images/t-es.png
+%%DATADIR%%/images/t-et.png
+%%DATADIR%%/images/t-fi.png
+%%DATADIR%%/images/t-fr.png
+%%DATADIR%%/images/t-he.png
+%%DATADIR%%/images/t-is.png
+%%DATADIR%%/images/t-it.png
+%%DATADIR%%/images/t-lv.png
+%%DATADIR%%/images/t-nl.png
+%%DATADIR%%/images/t-no.png
+%%DATADIR%%/images/t-pl.png
+%%DATADIR%%/images/t-pt.png
+%%DATADIR%%/images/t-ro.png
+%%DATADIR%%/images/t-ru.png
+%%DATADIR%%/images/t-sl.png
+%%DATADIR%%/images/t-sv.png
+%%DATADIR%%/images/t-zh.png
+%%DATADIR%%/images/up.jpg
+%%DATADIR%%/install.sh
+%%DATADIR%%/lang/advanced.txt
+%%DATADIR%%/lang/alias_lg.txt
+%%DATADIR%%/lang/lexicon.txt
+%%DATADIR%%/lang/start.txt
+%%DATADIR%%/lang/version.txt
+@dirrm %%DATADIR%%/doc/de
+@dirrm %%DATADIR%%/doc/en
+@dirrm %%DATADIR%%/doc/fr
+@dirrm %%DATADIR%%/doc/images
+@dirrm %%DATADIR%%/doc/it
+@dirrm %%DATADIR%%/doc/nl
+@dirrm %%DATADIR%%/doc/sv
+@dirrm %%DATADIR%%/doc
+@dirrm %%DATADIR%%/etc
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%/lang
+@dirrm %%DATADIR%%