Index: head/www/geneweb/Makefile =================================================================== --- head/www/geneweb/Makefile (revision 143595) +++ head/www/geneweb/Makefile (revision 143596) @@ -1,27 +1,28 @@ # New ports collection makefile for: geneweb # Date created: 10 septembre 2005 # Whom: Hubert Tournier # # $FreeBSD$ # PORTNAME= geneweb PORTVERSION= 4.10 +PORTREVISION= 1 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 Property changes on: head/www/geneweb/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/www/geneweb/files/install.sh =================================================================== --- head/www/geneweb/files/install.sh (revision 143595) +++ head/www/geneweb/files/install.sh (revision 143596) @@ -1,99 +1,100 @@ #!/bin/sh # # Install GeneWeb in a user's home directory # # Hubert Tournier # 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 +cd ${PRIV_DIR}/${DB_NAME}.gwb +/usr/local/bin/gwd -cgi -bd ${PRIV_DIR} -wd ${PRIV_DIR}/${DB_NAME}.gwb 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: Options ExecCGI XBitHack on AddHandler cgi-script .cgi 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 Property changes on: head/www/geneweb/files/install.sh ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property