Importing www/drupal7 package version 7.10.
This is current stable release of Drupal. 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
This commit is contained in:
parent
ae56c99485
commit
a7f0e6e412
7 changed files with 1323 additions and 0 deletions
21
www/drupal7/DESCR
Normal file
21
www/drupal7/DESCR
Normal file
|
@ -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
|
16
www/drupal7/MESSAGE
Normal file
16
www/drupal7/MESSAGE
Normal file
|
@ -0,0 +1,16 @@
|
|||
===========================================================================
|
||||
$NetBSD: MESSAGE,v 1.1.1.1 2011/12/16 12:57:06 taca Exp $
|
||||
|
||||
To complete the setup you will need to read the INSTALL.txt in order
|
||||
to setup MySQL/PostgreSQL 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/
|
||||
|
||||
===========================================================================
|
90
www/drupal7/Makefile
Normal file
90
www/drupal7/Makefile
Normal file
|
@ -0,0 +1,90 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2011/12/16 12:57:06 taca Exp $
|
||||
|
||||
DISTNAME= drupal-7.10
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://drupal.org/files/projects/
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://drupal.org/
|
||||
COMMENT= Open source content management system
|
||||
LICENSE= gnu-gpl-v2
|
||||
|
||||
CONFLICTS+= drupal-[1-9].*{,nb*}
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
|
||||
.include "../../lang/php/phpversion.mk"
|
||||
|
||||
.if ${PKG_PHP_VERSION} == "5"
|
||||
DEPENDS+= php>=5.2.0<5.3:../../lang/php5
|
||||
.endif
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.2.0:../../graphics/php-gd
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.2.0:../../textproc/php-json
|
||||
|
||||
NO_BUILD= YES
|
||||
DRUPAL= share/drupal
|
||||
PAX_DIRS= includes misc modules profiles scripts themes
|
||||
DOCS= CHANGELOG.txt COPYRIGHT.txt INSTALL.mysql.txt \
|
||||
INSTALL.pgsql.txt INSTALL.sqlite.txt INSTALL.txt LICENSE.txt \
|
||||
MAINTAINERS.txt README.txt UPGRADE.txt
|
||||
|
||||
PKG_GROUPS_VARS+= WWW_GROUP
|
||||
PKG_USERS_VARS+= WWW_USER
|
||||
|
||||
BUILD_DEFS+= WWW_USER WWW_GROUP
|
||||
USE_TOOLS+= perl:run pax
|
||||
REPLACE_PERL= scripts/code-style.pl
|
||||
|
||||
OWN_DIRS_PERMS+= ${DRUPAL}/sites/default \
|
||||
${WWW_USER} ${WWW_GROUP} 0750
|
||||
|
||||
CONF_FILES= share/examples/drupal/drupal.conf \
|
||||
${PKG_SYSCONFDIR}/drupal.conf \
|
||||
share/examples/drupal/default.settings.php \
|
||||
${DRUPAL}/sites/default/default.settings.php
|
||||
|
||||
CONF_FILES_PERMS+= share/examples/drupal/default.settings.php \
|
||||
${DRUPAL}/sites/default/settings.php \
|
||||
${WWW_USER} ${WWW_GROUP} 0640
|
||||
|
||||
REPLACE_INTERPRETER+= php
|
||||
REPLACE.php.old= .*php[^ ]*
|
||||
REPLACE.php.new= ${PREFIX}/bin/php
|
||||
REPLACE_FILES.php= scripts/drupal.sh scripts/password-hash.sh
|
||||
|
||||
SUBST_CLASSES+= conf
|
||||
SUBST_STAGE.conf= pre-install
|
||||
SUBST_FILES.conf= drupal.conf
|
||||
SUBST_SED.conf= -e "s|@DRUPAL@|${DRUPAL}|g"
|
||||
SUBST_SED.conf= -e "s|@PREFIX@|${PREFIX}|g"
|
||||
SUBST_MESSAGE.conf= Fixing configuration files.
|
||||
|
||||
INSTALLATION_DIRS+= ${DRUPAL}/files ${DRUPAL}/sites/all \
|
||||
share/doc/drupal share/examples/drupal
|
||||
|
||||
.include "options.mk"
|
||||
|
||||
post-extract:
|
||||
${CP} ${FILESDIR}/drupal.conf ${WRKSRC}
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${PREFIX}/${DRUPAL}
|
||||
${INSTALL_DATA} ${WRKSRC}/sites/all/README.txt \
|
||||
${DESTDIR}${PREFIX}/${DRUPAL}/sites/all
|
||||
${INSTALL_DATA} ${WRKSRC}/drupal.conf \
|
||||
${DESTDIR}${PREFIX}/share/examples/drupal
|
||||
${INSTALL_DATA} ${WRKSRC}/sites/default/default.settings.php \
|
||||
${DESTDIR}${PREFIX}/share/examples/drupal
|
||||
${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${PREFIX}/${DRUPAL}
|
||||
.for i in ${PAX_DIRS}
|
||||
cd ${WRKSRC}/${i} && ${PAX} -rw . ${DESTDIR}${PREFIX}/${DRUPAL}/${i}
|
||||
.endfor
|
||||
.for i in ${DOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/share/doc/drupal
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
${FIND} ${DESTDIR}${PREFIX}/${DRUPAL} \
|
||||
\( -name '*.jpg' -o -name '*.png' \) | ${XARGS} ${CHMOD} 0644
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
1031
www/drupal7/PLIST
Normal file
1031
www/drupal7/PLIST
Normal file
File diff suppressed because it is too large
Load diff
5
www/drupal7/distinfo
Normal file
5
www/drupal7/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2011/12/16 12:57:06 taca Exp $
|
||||
|
||||
SHA1 (drupal-7.10.tar.gz) = 59a5eb9cf65ac806974d1b7ba1496b4e90a7eb50
|
||||
RMD160 (drupal-7.10.tar.gz) = bc56c58c530f08304aa183cb71a9fb041bb20343
|
||||
Size (drupal-7.10.tar.gz) = 3067653 bytes
|
104
www/drupal7/files/drupal.conf
Normal file
104
www/drupal7/files/drupal.conf
Normal file
|
@ -0,0 +1,104 @@
|
|||
# $NetBSD: drupal.conf,v 1.1.1.1 2011/12/16 12:57:06 taca Exp $
|
||||
#
|
||||
# Drupal configuration file fragment for Apache
|
||||
|
||||
#
|
||||
# Apache/PHP/Drupal settings:
|
||||
#
|
||||
|
||||
<IfModule mod_alias.c>
|
||||
Alias /drupal/ "@PREFIX@/@DRUPAL@/"
|
||||
</IfModule>
|
||||
|
||||
<Directory "@PREFIX@/@DRUPAL@">
|
||||
AllowOverride Limit Options FileInfo
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
|
||||
# Protect files and directories from prying eyes.
|
||||
<FilesMatch "\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
|
||||
Order allow,deny
|
||||
</FilesMatch>
|
||||
|
||||
# Don't show directory listings for URLs which map to a directory.
|
||||
Options -Indexes
|
||||
|
||||
# Follow symbolic links in this directory.
|
||||
Options +FollowSymLinks
|
||||
|
||||
# Customized error messages.
|
||||
ErrorDocument 404 /index.php
|
||||
|
||||
# Force simple error message for requests for non-existent favicon.ico.
|
||||
<Files favicon.ico>
|
||||
# There is no end quote below, for compatibility with Apache 1.3.
|
||||
ErrorDocument 404 "The requested file favicon.ico was not found.
|
||||
</Files>
|
||||
|
||||
# Set the default handler.
|
||||
DirectoryIndex index.php
|
||||
|
||||
# Override PHP settings. More in sites/default/settings.php
|
||||
# but the following cannot be changed at runtime.
|
||||
php_value memory_limit 16M
|
||||
|
||||
# PHP 5, Apache 1 and 2.
|
||||
<IfModule mod_php5.c>
|
||||
php_value magic_quotes_gpc 0
|
||||
php_value register_globals 0
|
||||
php_value session.auto_start 0
|
||||
php_value mbstring.http_input pass
|
||||
php_value mbstring.http_output pass
|
||||
php_value mbstring.encoding_translation 0
|
||||
</IfModule>
|
||||
|
||||
# Requires mod_expires to be enabled.
|
||||
<IfModule mod_expires.c>
|
||||
# Enable expirations.
|
||||
ExpiresActive On
|
||||
|
||||
# Cache all files for 2 weeks after access (A).
|
||||
ExpiresDefault A1209600
|
||||
|
||||
# Do not cache dynamically generated pages.
|
||||
ExpiresByType text/html A1
|
||||
</IfModule>
|
||||
|
||||
# Various rewrite rules.
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
|
||||
# If your site can be accessed both with and without the 'www.' prefix, you
|
||||
# can use one of the following settings to redirect users to your preferred
|
||||
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
|
||||
#
|
||||
# To redirect all users to access the site WITH the 'www.' prefix,
|
||||
# (http://example.com/... will be redirected to http://www.example.com/...)
|
||||
# adapt and uncomment the following:
|
||||
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
|
||||
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
|
||||
#
|
||||
# To redirect all users to access the site WITHOUT the 'www.' prefix,
|
||||
# (http://www.example.com/... will be redirected to http://example.com/...)
|
||||
# uncomment and adapt the following:
|
||||
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
|
||||
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
|
||||
|
||||
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
|
||||
# VirtualDocumentRoot and the rewrite rules are not working properly.
|
||||
# For example if your site is at http://example.com/drupal uncomment and
|
||||
# modify the following line:
|
||||
# RewriteBase /drupal
|
||||
#
|
||||
# If your site is running in a VirtualDocumentRoot at http://example.com/,
|
||||
# uncomment the following line:
|
||||
# RewriteBase /
|
||||
|
||||
# Rewrite URLs of the form 'index.php?q=x'.
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} !=/favicon.ico
|
||||
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
|
||||
</IfModule>
|
||||
|
||||
</Directory>
|
56
www/drupal7/options.mk
Normal file
56
www/drupal7/options.mk
Normal file
|
@ -0,0 +1,56 @@
|
|||
# $NetBSD: options.mk,v 1.1.1.1 2011/12/16 12:57:06 taca Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.drupal
|
||||
|
||||
PKG_OPTIONS_REQUIRED_GROUPS= db
|
||||
PKG_OPTIONS_GROUP.db= mysql pgsql sqlite
|
||||
|
||||
PKG_SUPPORTED_OPTIONS= drupal-xmlservices apache unicode
|
||||
PKG_SUGGESTED_OPTIONS= mysql drupal-xmlservices apache
|
||||
|
||||
.include "../../mk/bsd.options.mk"
|
||||
|
||||
###
|
||||
### Use PostgreSQL for storing Drupal data
|
||||
###
|
||||
.if !empty(PKG_OPTIONS:Mpgsql)
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_pgsql>=5.2.7:../../databases/php-pdo_pgsql
|
||||
.elif !empty(PKG_OPTIONS:Mmysql)
|
||||
###
|
||||
### Use MySQL for storing Drupal data
|
||||
###
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=5.2.7:../../databases/php-pdo_mysql
|
||||
.elif !empty(PKG_OPTIONS:Msqlite)
|
||||
###
|
||||
### Use SQLite for storing Drupal data
|
||||
###
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_sqlite>=5.2.7:../../databases/php-pdo_sqlite
|
||||
.endif
|
||||
|
||||
###
|
||||
### Enable XML-based services such as the Blogger API, Jabber and RSS
|
||||
### syndication.
|
||||
###
|
||||
.if !empty(PKG_OPTIONS:Mdrupal-xmlservices)
|
||||
DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.2.7:../../textproc/php-dom
|
||||
.endif
|
||||
|
||||
###
|
||||
### Support for unicode
|
||||
###
|
||||
.if !empty(PKG_OPTIONS:Municode)
|
||||
EPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.2.7:../../converters/php-mbstring
|
||||
.endif
|
||||
|
||||
###
|
||||
### Drupal can run on a number of web servers, we support apache by default
|
||||
###
|
||||
.if !empty(PKG_OPTIONS:Mapache)
|
||||
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2.7:../../www/ap-php
|
||||
. include "../../mk/apachever.mk"
|
||||
WWW_USER?= ${APACHE_USER}
|
||||
WWW_GROUP?= ${APACHE_GROUP}
|
||||
.else
|
||||
WWW_USER?= ${ROOT_USER}
|
||||
WWW_GROUP?= ${ROOT_GROUP}
|
||||
.endif
|
Loading…
Reference in a new issue