pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/wordpress pkgsrc changes to package:
details: https://anonhg.NetBSD.org/pkgsrc/rev/127a416b46ab
branches: trunk
changeset: 351603:127a416b46ab
user: morr <morr%pkgsrc.org@localhost>
date: Mon Aug 22 18:11:04 2016 +0000
description:
pkgsrc changes to package:
- Add missing php modules
- Limit work with php-5.6
- Improve the wordpress.conf
- Install wp-config-sample.php to WPHOME but not EGDIR
Patch from wen heping.
diffstat:
www/wordpress/Makefile | 28 ++++++++++++++++++++++------
www/wordpress/PLIST | 4 ++--
www/wordpress/files/wordpress.conf | 14 ++++++++++----
www/wordpress/options.mk | 6 +++---
4 files changed, 37 insertions(+), 15 deletions(-)
diffs (119 lines):
diff -r 47e903defb25 -r 127a416b46ab www/wordpress/Makefile
--- a/www/wordpress/Makefile Mon Aug 22 14:40:01 2016 +0000
+++ b/www/wordpress/Makefile Mon Aug 22 18:11:04 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.57 2016/08/21 20:04:57 jklos Exp $
+# $NetBSD: Makefile,v 1.58 2016/08/22 18:11:04 morr Exp $
DISTNAME= wordpress-${VERSION}
VERSION= 4.6
@@ -37,20 +37,36 @@
INSTALLATION_DIRS+= ${DOCDIR} ${WPHOME} ${EGDIR}
-DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.3:../../databases/php-mysql
+DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=5.6.0:../../databases/php-mysql
+DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.6.0:../../graphics/php-gd
+DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.6.0:../../www/php-curl
+DEPENDS+= ${PHP_PKG_PREFIX}-zip>=5.6.0:../../archivers/php-zip
+DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.6.0:../../archivers/php-zlib
+PHP_VERSIONS_ACCEPTED= 56
-PHP_VERSIONS_ACCEPTED= 55 56
+SUBST_CLASSES+= conf
+SUBST_MESSAGE.conf= Fixing pathnames in configuration file.
+SUBST_STAGE.conf= post-patch
+SUBST_FILES.conf= ../wordpress.conf
+SUBST_SED.conf= -e "s,@WPHOME@,${WPHOME},g"
+.if !empty(PKG_OPTIONS:Map-php) && ${PKG_APACHE} == "apache24"
+SUBST_SED.conf+= -e "/Order allow,deny/d"
+SUBST_SED.conf+= -e "s,Allow from all,Require all granted,g"
+.endif
+
+post-extract:
+ ${CP} ${FILESDIR}/wordpress.conf ${WRKDIR}/wordpress.conf
do-install:
${INSTALL_DATA} ${WRKSRC}/readme.html ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/license.txt ${DESTDIR}${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/wp-config-sample.php ${DESTDIR}${EGDIR}
- ${INSTALL_DATA} ${FILESDIR}/wordpress.conf ${DESTDIR}${EGDIR}
+# ${INSTALL_DATA} ${WRKSRC}/wp-config-sample.php ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKDIR}/wordpress.conf ${DESTDIR}${EGDIR}
${RM} ${WRKSRC}/readme.html
${RM} ${WRKSRC}/license.txt
- ${RM} ${WRKSRC}/wp-config-sample.php
+# ${RM} ${WRKSRC}/wp-config-sample.php
cd ${WRKSRC} && pax -rw -pmp . ${DESTDIR}${WPHOME}
${TOUCH} ${DESTDIR}${WPHOME}/wp-content/plugins/index.html
diff -r 47e903defb25 -r 127a416b46ab www/wordpress/PLIST
--- a/www/wordpress/PLIST Mon Aug 22 14:40:01 2016 +0000
+++ b/www/wordpress/PLIST Mon Aug 22 18:11:04 2016 +0000
@@ -1,8 +1,7 @@
-@comment $NetBSD: PLIST,v 1.29 2016/08/21 20:04:57 jklos Exp $
+@comment $NetBSD: PLIST,v 1.30 2016/08/22 18:11:04 morr Exp $
share/doc/wordpress/license.txt
share/doc/wordpress/readme.html
share/examples/wordpress/wordpress.conf
-share/examples/wordpress/wp-config-sample.php
share/wordpress/index.php
share/wordpress/wp-activate.php
share/wordpress/wp-admin/about.php
@@ -512,6 +511,7 @@
share/wordpress/wp-admin/widgets.php
share/wordpress/wp-blog-header.php
share/wordpress/wp-comments-post.php
+share/wordpress/wp-config-sample.php
share/wordpress/wp-content/index.php
share/wordpress/wp-content/plugins/akismet/.htaccess
share/wordpress/wp-content/plugins/akismet/LICENSE.txt
diff -r 47e903defb25 -r 127a416b46ab www/wordpress/files/wordpress.conf
--- a/www/wordpress/files/wordpress.conf Mon Aug 22 14:40:01 2016 +0000
+++ b/www/wordpress/files/wordpress.conf Mon Aug 22 18:11:04 2016 +0000
@@ -1,11 +1,17 @@
-# $NetBSD: wordpress.conf,v 1.1.1.1 2009/04/06 11:31:02 adrianp Exp $
+# $NetBSD: wordpress.conf,v 1.2 2016/08/22 18:11:04 morr Exp $
#
# WordPress configuration file fragment for Apache
+<IfModule mod_alias.c>
+ Alias /wp/ "@WPHOME@/"
+</IfModule>
+
<Directory "@WPHOME@">
-#
-# Insert any custom directives here
-#
+ Options Indexes
+ DirectoryIndex index.php index.html
+ AllowOverride None
+ Order allow,deny
+ Allow from all
</Directory>
#
diff -r 47e903defb25 -r 127a416b46ab www/wordpress/options.mk
--- a/www/wordpress/options.mk Mon Aug 22 14:40:01 2016 +0000
+++ b/www/wordpress/options.mk Mon Aug 22 18:11:04 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.4 2012/04/14 16:25:11 adam Exp $
+# $NetBSD: options.mk,v 1.5 2016/08/22 18:11:04 morr Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.wordpress
@@ -10,10 +10,10 @@
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mphp-cgi)
-DEPENDS+= php>=5.2.4:${PHPPKGSRCDIR}
+DEPENDS+= php>=5.6.0:${PHPPKGSRCDIR}
.endif
.if !empty(PKG_OPTIONS:Map-php)
. include "../../mk/apache.mk"
-DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.3.0:../../www/ap-php
+DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.6.0:../../www/ap-php
.endif
Home |
Main Index |
Thread Index |
Old Index