pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/wordpress



Module Name:    pkgsrc
Committed By:   morr
Date:           Mon Aug 22 18:11:04 UTC 2016

Modified Files:
        pkgsrc/www/wordpress: Makefile PLIST options.mk
        pkgsrc/www/wordpress/files: wordpress.conf

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 pkgsrc/www/wordpress/Makefile
cvs rdiff -u -r1.29 -r1.30 pkgsrc/www/wordpress/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/wordpress/options.mk
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/www/wordpress/files/wordpress.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/wordpress/Makefile
diff -u pkgsrc/www/wordpress/Makefile:1.57 pkgsrc/www/wordpress/Makefile:1.58
--- pkgsrc/www/wordpress/Makefile:1.57  Sun Aug 21 20:04:57 2016
+++ pkgsrc/www/wordpress/Makefile       Mon Aug 22 18:11:04 2016
@@ -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 @@ OWN_DIRS_PERMS+=    ${WPHOME}/wp-content/up
 
 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
+
+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
 
-PHP_VERSIONS_ACCEPTED= 55 56
+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

Index: pkgsrc/www/wordpress/PLIST
diff -u pkgsrc/www/wordpress/PLIST:1.29 pkgsrc/www/wordpress/PLIST:1.30
--- pkgsrc/www/wordpress/PLIST:1.29     Sun Aug 21 20:04:57 2016
+++ pkgsrc/www/wordpress/PLIST  Mon Aug 22 18:11:04 2016
@@ -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/users.php
 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

Index: pkgsrc/www/wordpress/options.mk
diff -u pkgsrc/www/wordpress/options.mk:1.4 pkgsrc/www/wordpress/options.mk:1.5
--- pkgsrc/www/wordpress/options.mk:1.4 Sat Apr 14 16:25:11 2012
+++ pkgsrc/www/wordpress/options.mk     Mon Aug 22 18:11:04 2016
@@ -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 @@ PKG_SUGGESTED_OPTIONS=              ap-php
 .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

Index: pkgsrc/www/wordpress/files/wordpress.conf
diff -u pkgsrc/www/wordpress/files/wordpress.conf:1.1.1.1 pkgsrc/www/wordpress/files/wordpress.conf:1.2
--- pkgsrc/www/wordpress/files/wordpress.conf:1.1.1.1   Mon Apr  6 11:31:02 2009
+++ pkgsrc/www/wordpress/files/wordpress.conf   Mon Aug 22 18:11:04 2016
@@ -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>
 
 #



Home | Main Index | Thread Index | Old Index