mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
0450bbbdc8
maintainer-timeouts.
86 lines
2.6 KiB
Makefile
86 lines
2.6 KiB
Makefile
# New ports collection makefile for: Drupal
|
|
# Date Created: 10 Nov 2003
|
|
# Whom: Sebastian Yepes F. <esn@x123.info>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= drupal
|
|
PORTVERSION= 4.6.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://drupal.org/files/projects/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= CMS that supports pgsql and mysql
|
|
|
|
USE_PHP= session
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${LOCALBASE}/lib/libpq.so)
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
|
|
.endif
|
|
|
|
pre-fetch:
|
|
.if !defined(DRUPDIR)
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "Define DRUPDIR to override default of 'www/data/drupal'."
|
|
@${ECHO_MSG} ""
|
|
.endif
|
|
|
|
DRUPDIR?= www/data/drupal
|
|
WWWOWN?= www
|
|
WWWGRP?= www
|
|
|
|
NO_BUILD= yes
|
|
DOCS= CHANGELOG.txt INSTALL.txt LICENSE.txt MAINTAINERS.txt
|
|
PLIST_SUB+= DRUPDIR=${DRUPDIR}
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/${DRUPDIR}
|
|
${CP} ${WRKSRC}/.htaccess ${PREFIX}/${DRUPDIR}
|
|
${CP} ${WRKSRC}/cron.php ${PREFIX}/${DRUPDIR}
|
|
${CP} -R ${WRKSRC}/database ${PREFIX}/${DRUPDIR}
|
|
${CP} ${WRKSRC}/favicon.ico ${PREFIX}/${DRUPDIR}
|
|
${CP} -R ${WRKSRC}/includes ${PREFIX}/${DRUPDIR}
|
|
${CP} ${WRKSRC}/index.php ${PREFIX}/${DRUPDIR}
|
|
${CP} -R ${WRKSRC}/misc ${PREFIX}/${DRUPDIR}
|
|
${CP} -R ${WRKSRC}/modules ${PREFIX}/${DRUPDIR}
|
|
${CP} -R ${WRKSRC}/scripts ${PREFIX}/${DRUPDIR}
|
|
${CP} -R ${WRKSRC}/sites ${PREFIX}/${DRUPDIR}
|
|
${CP} -R ${WRKSRC}/themes ${PREFIX}/${DRUPDIR}
|
|
${CP} ${WRKSRC}/update.php ${PREFIX}/${DRUPDIR}
|
|
${CP} ${WRKSRC}/xmlrpc.php ${PREFIX}/${DRUPDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/${DRUPDIR}/doc
|
|
.for FILE in ${DOCS}
|
|
${CP} ${WRKSRC}/${FILE} ${PREFIX}/${DRUPDIR}/doc
|
|
.endfor
|
|
.endif
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DRUPDIR}
|
|
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} " You now need to create the DB"
|
|
@${ECHO_MSG} " where Drupal is going to live"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} " PostgreSQL::"
|
|
@${ECHO_MSG} " createdb -U pgsql -W drupal"
|
|
@${ECHO_MSG} " createuser -U pgsql -e drupal"
|
|
@${ECHO_MSG} " createlang -U pgsql -W plpgsql drupal"
|
|
@${ECHO_MSG} " psql -U drupal drupal < ${PREFIX}/${DRUPDIR}/database/database.pgsql"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} " MySQL::"
|
|
@${ECHO_MSG} " mysqladmin -u dba_user -p create drupal"
|
|
@${ECHO_MSG} " mysql -u dba_user -p"
|
|
@${ECHO_MSG} " GRANT ALL PRIVILEGES ON drupal.* TO nobody@localhost IDENTIFIED BY 'password';"
|
|
@${ECHO_MSG} " mysql -u nobody -p drupal < ${PREFIX}/${DRUPDIR}/database/database.mysql"
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} " Then edit the ${PREFIX}/${DRUPDIR}/sites/default/settings.php to your needs."
|
|
@${ECHO_MSG} " Once you have done that"
|
|
@${ECHO_MSG} " GoTo: http://<your_website>/drupal"
|
|
@${ECHO_MSG} ""
|
|
|
|
.include <bsd.port.post.mk>
|