diff options
Diffstat (limited to 'www/drupal')
-rw-r--r-- | www/drupal/DESCR | 21 | ||||
-rw-r--r-- | www/drupal/MESSAGE | 16 | ||||
-rw-r--r-- | www/drupal/Makefile | 60 | ||||
-rw-r--r-- | www/drupal/PLIST | 154 | ||||
-rw-r--r-- | www/drupal/distinfo | 5 | ||||
-rw-r--r-- | www/drupal/files/drupal.conf | 14 | ||||
-rw-r--r-- | www/drupal/options.mk | 24 |
7 files changed, 294 insertions, 0 deletions
diff --git a/www/drupal/DESCR b/www/drupal/DESCR new file mode 100644 index 00000000000..ee5503c9d99 --- /dev/null +++ b/www/drupal/DESCR @@ -0,0 +1,21 @@ +Drupal is software that allows an individual or a community of users to easily +publish, manage and organize a great variety of content on a website. Tens of +thousands of people and organizations have used Drupal to set up scores of +different kinds of web sites, including + +* community web portals and discussion sites +* corporate web sites/intranet portals +* personal web sites +* aficionado sites +* e-commerce applications +* resource directories + +Drupal includes features to enable: + +* content management systems +* blogs +* collaborative authoring environments +* forums +* newsletters +* picture galleries +* file uploads and download diff --git a/www/drupal/MESSAGE b/www/drupal/MESSAGE new file mode 100644 index 00000000000..f1cb6bcd9d8 --- /dev/null +++ b/www/drupal/MESSAGE @@ -0,0 +1,16 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2006/01/05 00:02:43 adrianp Exp $ + +To complete the setup you will need to read the INSTALL.txt in order +to setup MySQL/PostreSQL properly. + +You will need to make Drupal accessible through your HTTP server. +If you are running Apache then you may add the following lines to httpd.conf: + + Include ${PKG_SYSCONFDIR}/drupal.conf + +to make Drupal accessible through: + + http://localhost/drupal/ + +=========================================================================== diff --git a/www/drupal/Makefile b/www/drupal/Makefile new file mode 100644 index 00000000000..5af2eb34a42 --- /dev/null +++ b/www/drupal/Makefile @@ -0,0 +1,60 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/01/05 00:02:43 adrianp Exp $ + +DISTNAME= drupal-4.6.5 +CATEGORIES= www +MASTER_SITES= http://drupal.org/files/projects/ + +MAINTAINER= adrianp@NetBSD.org +HOMEPAGE= http://drupal.org/ +COMMENT= Open source content management system + +DEPENDS+= ap-php>=4.3.3:../../www/ap-php +DEPENDS+= php-gd>=4.3.3:../../graphics/php-gd + +NO_BUILD= YES +USE_PKGINSTALL= YES +DRUPAL= ${PREFIX}/share/drupal +PAX_DIRS= database includes misc modules scripts themes + +CONF_FILES= ${PREFIX}/share/examples/drupal/drupal.conf \ + ${PKG_SYSCONFDIR}/drupal.conf + +CONF_FILES_PERMS+= ${PREFIX}/share/examples/drupal/settings.php \ + ${DRUPAL}/sites/default/settings.php \ + ${APACHE_USER} ${APACHE_GROUP} 0640 + +SUBST_CLASSES+= conf +SUBST_STAGE.conf= pre-install +SUBST_FILES.conf= drupal.conf +SUBST_SED.conf= -e "s|@DRUPAL@|${DRUPAL}|g" +SUBST_MESSAGE.conf= "Fixing configuration files." + +.include "options.mk" + +post-extract: + @${CP} ${FILESDIR}/drupal.conf ${WRKSRC} + +do-install: + ${INSTALL_DATA_DIR} ${DRUPAL} + ${INSTALL_DATA_DIR} ${DRUPAL}/files + ${INSTALL_DATA_DIR} ${DRUPAL}/sites + ${INSTALL_DATA_DIR} ${DRUPAL}/sites/default + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/drupal + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/drupal + + ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/drupal + ${INSTALL_DATA} ${WRKSRC}/drupal.conf \ + ${PREFIX}/share/examples/drupal + ${INSTALL_DATA} ${WRKSRC}/sites/default/settings.php \ + ${PREFIX}/share/examples/drupal + ${INSTALL_DATA} ${WRKSRC}/*.ico ${DRUPAL} + ${INSTALL_DATA} ${WRKSRC}/*.php ${DRUPAL} + +. for i in ${PAX_DIRS} + cd ${WRKSRC}/${i} && ${PAX} -rw . ${DRUPAL}/${i} +. endfor + + @${CHOWN} ${APACHE_USER}:${APACHE_GROUP} ${DRUPAL}/files + @${CHMOD} 0770 ${DRUPAL}/files + +.include "../../mk/bsd.pkg.mk" diff --git a/www/drupal/PLIST b/www/drupal/PLIST new file mode 100644 index 00000000000..751745af063 --- /dev/null +++ b/www/drupal/PLIST @@ -0,0 +1,154 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/05 00:02:43 adrianp Exp $ +share/doc/drupal/CHANGELOG.txt +share/doc/drupal/INSTALL.txt +share/doc/drupal/LICENSE.txt +share/doc/drupal/MAINTAINERS.txt +share/drupal/cron.php +share/drupal/database/database.mysql +share/drupal/database/database.pgsql +share/drupal/database/updates.inc +share/drupal/favicon.ico +share/drupal/includes/bootstrap.inc +share/drupal/includes/common.inc +share/drupal/includes/database.inc +share/drupal/includes/database.mysql.inc +share/drupal/includes/database.pgsql.inc +share/drupal/includes/file.inc +share/drupal/includes/image.inc +share/drupal/includes/locale.inc +share/drupal/includes/menu.inc +share/drupal/includes/module.inc +share/drupal/includes/pager.inc +share/drupal/includes/session.inc +share/drupal/includes/tablesort.inc +share/drupal/includes/theme.inc +share/drupal/includes/xmlrpc.inc +share/drupal/includes/xmlrpcs.inc +share/drupal/index.php +share/drupal/misc/arrow-asc.png +share/drupal/misc/arrow-desc.png +share/drupal/misc/blog.png +share/drupal/misc/drupal.css +share/drupal/misc/druplicon-small.png +share/drupal/misc/druplicon.png +share/drupal/misc/forum-closed.png +share/drupal/misc/forum-default.png +share/drupal/misc/forum-hot-new.png +share/drupal/misc/forum-hot.png +share/drupal/misc/forum-new.png +share/drupal/misc/forum-sticky.png +share/drupal/misc/menu-collapsed.png +share/drupal/misc/menu-expanded.png +share/drupal/misc/menu-leaf.png +share/drupal/misc/powered-by-drupal-dark.png +share/drupal/misc/powered-by-drupal-light.png +share/drupal/misc/powered-by-drupal.png +share/drupal/misc/print.css +share/drupal/misc/watchdog-error.png +share/drupal/misc/watchdog-warning.png +share/drupal/misc/xml.png +share/drupal/modules/aggregator.module +share/drupal/modules/archive.module +share/drupal/modules/block.module +share/drupal/modules/blog.module +share/drupal/modules/blogapi.module +share/drupal/modules/book.module +share/drupal/modules/comment.module +share/drupal/modules/contact.module +share/drupal/modules/drupal.module +share/drupal/modules/filter.module +share/drupal/modules/forum.module +share/drupal/modules/help.module +share/drupal/modules/legacy.module +share/drupal/modules/locale.module +share/drupal/modules/menu.module +share/drupal/modules/node.module +share/drupal/modules/page.module +share/drupal/modules/path.module +share/drupal/modules/ping.module +share/drupal/modules/poll.module +share/drupal/modules/profile.module +share/drupal/modules/queue.module +share/drupal/modules/search.module +share/drupal/modules/statistics.module +share/drupal/modules/story.module +share/drupal/modules/system.module +share/drupal/modules/taxonomy.module +share/drupal/modules/throttle.module +share/drupal/modules/tracker.module +share/drupal/modules/upload.module +share/drupal/modules/user.module +share/drupal/modules/watchdog.module +share/drupal/scripts/code-clean.sh +share/drupal/scripts/code-style.pl +share/drupal/scripts/cron-curl.sh +share/drupal/scripts/cron-lynx.sh +share/drupal/scripts/prefix.sh +share/drupal/themes/bluemarine/logo.png +share/drupal/themes/bluemarine/screenshot.png +share/drupal/themes/bluemarine/style.css +share/drupal/themes/bluemarine/xtemplate.xtmpl +share/drupal/themes/chameleon/background.png +share/drupal/themes/chameleon/chameleon.theme +share/drupal/themes/chameleon/common.css +share/drupal/themes/chameleon/logo.png +share/drupal/themes/chameleon/marvin/bullet.png +share/drupal/themes/chameleon/marvin/druplicon-watermark.png +share/drupal/themes/chameleon/marvin/logo.png +share/drupal/themes/chameleon/marvin/screenshot.png +share/drupal/themes/chameleon/marvin/style.css +share/drupal/themes/chameleon/screenshot.png +share/drupal/themes/chameleon/style.css +share/drupal/themes/engines/xtemplate/xtemplate.engine +share/drupal/themes/engines/xtemplate/xtemplate.inc +share/drupal/themes/pushbutton/arrow-next-hover.png +share/drupal/themes/pushbutton/arrow-next-visited.png +share/drupal/themes/pushbutton/arrow-next.png +share/drupal/themes/pushbutton/arrow-prev-hover.png +share/drupal/themes/pushbutton/arrow-prev-visited.png +share/drupal/themes/pushbutton/arrow-prev.png +share/drupal/themes/pushbutton/arrow-up-hover.png +share/drupal/themes/pushbutton/arrow-up-visited.png +share/drupal/themes/pushbutton/arrow-up.png +share/drupal/themes/pushbutton/background.png +share/drupal/themes/pushbutton/forum-container.jpg +share/drupal/themes/pushbutton/forum-link.png +share/drupal/themes/pushbutton/header-a.jpg +share/drupal/themes/pushbutton/header-b.jpg +share/drupal/themes/pushbutton/header-c.png +share/drupal/themes/pushbutton/icon-block.png +share/drupal/themes/pushbutton/icon-comment.png +share/drupal/themes/pushbutton/logo-active.jpg +share/drupal/themes/pushbutton/logo-background.jpg +share/drupal/themes/pushbutton/logo-hover.jpg +share/drupal/themes/pushbutton/logo.png +share/drupal/themes/pushbutton/screenshot.png +share/drupal/themes/pushbutton/style.css +share/drupal/themes/pushbutton/tabs-off.png +share/drupal/themes/pushbutton/tabs-on.png +share/drupal/themes/pushbutton/tabs-option-hover.png +share/drupal/themes/pushbutton/tabs-option-off.png +share/drupal/themes/pushbutton/tabs-option-on.png +share/drupal/themes/pushbutton/xtemplate.xtmpl +share/drupal/update.php +share/drupal/xmlrpc.php +share/examples/drupal/drupal.conf +share/examples/drupal/settings.php +@dirrm share/doc/drupal +@dirrm share/drupal/themes/pushbutton +@dirrm share/drupal/themes/engines/xtemplate +@dirrm share/drupal/themes/engines +@dirrm share/drupal/themes/chameleon/marvin +@dirrm share/drupal/themes/chameleon +@dirrm share/drupal/themes/bluemarine +@dirrm share/drupal/themes +@unexec ${RMDIR} %D/share/drupal/sites/default 2>/dev/null || ${TRUE} +@unexec ${RMDIR} %D/share/drupal/sites 2>/dev/null || ${TRUE} +@dirrm share/drupal/scripts +@dirrm share/drupal/modules +@dirrm share/drupal/misc +@dirrm share/drupal/includes +@unexec ${RMDIR} %D/share/drupal/files 2>/dev/null || ${TRUE} +@dirrm share/drupal/database +@unexec ${RMDIR} %D/share/drupal 2>/dev/null || ${TRUE} +@dirrm share/examples/drupal diff --git a/www/drupal/distinfo b/www/drupal/distinfo new file mode 100644 index 00000000000..015dcaafa6b --- /dev/null +++ b/www/drupal/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/01/05 00:02:43 adrianp Exp $ + +SHA1 (drupal-4.6.5.tar.gz) = baeec7c09bcc2a6f9278706bf7a28e6522043942 +RMD160 (drupal-4.6.5.tar.gz) = b18a524e3f0e47823fa229f24002b072a565b929 +Size (drupal-4.6.5.tar.gz) = 455997 bytes diff --git a/www/drupal/files/drupal.conf b/www/drupal/files/drupal.conf new file mode 100644 index 00000000000..fcbbe64d13a --- /dev/null +++ b/www/drupal/files/drupal.conf @@ -0,0 +1,14 @@ +# $NetBSD: drupal.conf,v 1.1.1.1 2006/01/05 00:02:43 adrianp Exp $ +# +# Drupal configuration file fragment for Apache + +<IfModule mod_alias.c> + Alias /drupal/ "@DRUPAL@/" +</IfModule> + +<Directory "@DRUPAL@"> + DirectoryIndex index.php + AllowOverride Limit + Order allow,deny + Allow from all +</Directory> diff --git a/www/drupal/options.mk b/www/drupal/options.mk new file mode 100644 index 00000000000..e1f68d31aa3 --- /dev/null +++ b/www/drupal/options.mk @@ -0,0 +1,24 @@ +# $NetBSD: options.mk,v 1.1.1.1 2006/01/05 00:02:43 adrianp Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.drupal + +PKG_OPTIONS_REQUIRED_GROUPS= db +PKG_OPTIONS_GROUP.db= mysql pgsql + +PKG_SUGGESTED_OPTIONS= mysql + +.include "../../mk/bsd.options.mk" + +### +### Use PostgreSQL for storing Drupal data +### +.if !empty(PKG_OPTIONS:Mpgsql) +. include "../../mk/pgsql.buildlink3.mk" +DEPENDS+= php-pgsql-[0-9]*:../../databases/php-pgsql +.elif !empty(PKG_OPTIONS:Mmysql) +### +### Use MySQL for storing Drupal data +### +. include "../../mk/mysql.buildlink3.mk" +DEPENDS+= php-mysql>=4.3.3:../../databases/php-mysql +.endif |