summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron>2012-12-21 11:01:33 +0000
committertron <tron>2012-12-21 11:01:33 +0000
commitf42d0878d61c30df0664cfec6996d52fc06935b2 (patch)
tree1f2f38807530367acb5955b94a041fbca511ba57
parent1c6bba5c1734dad05dbbf81cbeded457653e7cd4 (diff)
downloadpkgsrc-f42d0878d61c30df0664cfec6996d52fc06935b2.tar.gz
Pullup ticket #3998 - requested by taca
www/drupal6: security update Revisions pulled up: - www/drupal6/Makefile 1.38-1.40 - www/drupal6/distinfo 1.26 - www/drupal6/patches/patch-includes_path.inc 1.1 --- Module Name: pkgsrc Committed By: wiz Date: Wed Oct 3 21:59:10 UTC 2012 Modified Files: pkgsrc/www/drupal6: Makefile Log Message: Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. --- Module Name: pkgsrc Committed By: taca Date: Thu Dec 20 12:47:35 UTC 2012 Modified Files: pkgsrc/www/drupal6: Makefile distinfo Added Files: pkgsrc/www/drupal6/patches: patch-includes_path.inc Log Message: Update drupal6 to 6.27 fixed security problem. * Add a possible fix of SA4931, too. Drupal 6.27, 2012-12-19 ---------------------- - Fixed security issues (multiple vulnerabilities), see SA-CORE-2012-004.
-rw-r--r--www/drupal6/Makefile9
-rw-r--r--www/drupal6/distinfo9
-rw-r--r--www/drupal6/patches/patch-includes_path.inc15
3 files changed, 25 insertions, 8 deletions
diff --git a/www/drupal6/Makefile b/www/drupal6/Makefile
index 98c21dc2ea8..f8aac12a082 100644
--- a/www/drupal6/Makefile
+++ b/www/drupal6/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.37 2012/06/25 09:00:26 jperkin Exp $
+# $NetBSD: Makefile,v 1.37.4.1 2012/12/21 11:01:33 tron Exp $
-DISTNAME= drupal-6.26
+DISTNAME= drupal-6.27
CATEGORIES= www
MASTER_SITES= http://drupal.org/files/projects/
@@ -9,8 +9,6 @@ HOMEPAGE= http://drupal.org/
COMMENT= Open source content management system
LICENSE= gnu-gpl-v2
-PKG_DESTDIR_SUPPORT= user-destdir
-
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=4.3.5:../../graphics/php-gd
NO_BUILD= YES
@@ -66,6 +64,9 @@ OWN_DIRS+= share/drupal/profiles/default
post-extract:
${CP} ${FILESDIR}/drupal.conf ${WRKSRC}
+pre-install:
+ ${FIND} ${WRKSRC} -type f -name "*.orig" -exec ${RM} -f {} \;
+
do-install:
${INSTALL_DATA} ${WRKSRC}/robots.txt ${DESTDIR}${PREFIX}/${DRUPAL}
${INSTALL_DATA} ${WRKSRC}/sites/all/README.txt \
diff --git a/www/drupal6/distinfo b/www/drupal6/distinfo
index ce42ea46897..53dec115d71 100644
--- a/www/drupal6/distinfo
+++ b/www/drupal6/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.25 2012/05/03 07:02:12 taca Exp $
+$NetBSD: distinfo,v 1.25.4.1 2012/12/21 11:01:33 tron Exp $
-SHA1 (drupal-6.26.tar.gz) = 4c96fbcf98d45ab1b4e9e2b899af926e0e24e45b
-RMD160 (drupal-6.26.tar.gz) = 23c8fede73badf33ac268494624bcb057fc88645
-Size (drupal-6.26.tar.gz) = 1105016 bytes
+SHA1 (drupal-6.27.tar.gz) = fa4d3ac5d86133c37156611c1595104879e27467
+RMD160 (drupal-6.27.tar.gz) = fbec59f6275063f60ffd213d603b7ab74c6d5d7d
+Size (drupal-6.27.tar.gz) = 1105095 bytes
+SHA1 (patch-includes_path.inc) = 84825d47cc6cbe3466cb34adb7e512231293e9a4
diff --git a/www/drupal6/patches/patch-includes_path.inc b/www/drupal6/patches/patch-includes_path.inc
new file mode 100644
index 00000000000..edc8c5952cd
--- /dev/null
+++ b/www/drupal6/patches/patch-includes_path.inc
@@ -0,0 +1,15 @@
+$NetBSD: patch-includes_path.inc,v 1.1.2.2 2012/12/21 11:01:33 tron Exp $
+
+Possible fix to SA4931.
+
+--- includes/path.inc.orig 2012-12-19 18:51:43.000000000 +0000
++++ includes/path.inc
+@@ -13,7 +13,7 @@
+ * Initialize the $_GET['q'] variable to the proper normal path.
+ */
+ function drupal_init_path() {
+- if (!empty($_GET['q'])) {
++ if (!empty($_GET['q']) && is_string($_GET['q'])) {
+ $_GET['q'] = drupal_get_normal_path(trim($_GET['q'], '/'));
+ }
+ else {