[csw-devel] SF.net SVN: gar:[4625] csw/mgar/pkg

valholla at users.sourceforge.net valholla at users.sourceforge.net
Fri May 1 03:27:12 CEST 2009


Revision: 4625
          http://gar.svn.sourceforge.net/gar/?rev=4625&view=rev
Author:   valholla
Date:     2009-05-01 01:27:12 +0000 (Fri, 01 May 2009)

Log Message:
-----------
initial checkin

Added Paths:
-----------
    csw/mgar/pkg/mediawiki/
    csw/mgar/pkg/mediawiki/Makefile
    csw/mgar/pkg/mediawiki/branches/
    csw/mgar/pkg/mediawiki/tags/
    csw/mgar/pkg/mediawiki/trunk/
    csw/mgar/pkg/mediawiki/trunk/Makefile
    csw/mgar/pkg/mediawiki/trunk/checksums
    csw/mgar/pkg/mediawiki/trunk/files/
    csw/mgar/pkg/mediawiki/trunk/files/CSWmediawiki.postinstall
    csw/mgar/pkg/mediawiki/trunk/files/CSWmediawiki.preremove
    csw/mgar/pkg/mediawiki/trunk/files/httpd-mediawiki.conf.CSW

Added: csw/mgar/pkg/mediawiki/Makefile
===================================================================
--- csw/mgar/pkg/mediawiki/Makefile	                        (rev 0)
+++ csw/mgar/pkg/mediawiki/Makefile	2009-05-01 01:27:12 UTC (rev 4625)
@@ -0,0 +1,15 @@
+# vim: ft=make ts=4 sw=4 noet
+
+default:
+	@echo "You are in the pkg/ directory."
+
+%:
+	$(MAKE) -C trunk $* 
+
+paranoid-%:
+	$(MAKE) -C trunk $* || exit 2 
+
+export BUILDLOG ?= $(shell pwd)/buildlog.txt
+
+report-%:
+	$(MAKE) -C trunk $* || echo "	*** make $* in $$i failed ***" >> $(BUILDLOG) 

Added: csw/mgar/pkg/mediawiki/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mediawiki/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/mediawiki/trunk/Makefile	2009-05-01 01:27:12 UTC (rev 4625)
@@ -0,0 +1,47 @@
+GARNAME = mediawiki
+GARVERSION = 1.14.0
+CATEGORIES = apps
+RELVER = $(shell echo $(GARVERSION) |gsed 's/\(^[0-9].*\)\.[0-9]*/\1/')
+DESCRIPTION = A free software wiki package written in PHP
+define BLURB
+	MediaWiki is a free software wiki package written in PHP, 
+	originally for use on Wikipedia. It is now used by several 
+	other projects of the non-profit Wikimedia Foundation and 
+	by many other wikis, including this website, the home of MediaWiki. 
+endef
+
+MASTER_SITES = http://download.wikimedia.org/mediawiki/$(RELVER)/
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+
+PACKAGES = CSWmediawiki CSWmediawiki-math
+CATALOGNAME_CSWmediawiki = mediawiki
+SPKG_DESC_CSWmediawiki = $(DESCRIPTION)
+CATALOGNAME_CSWmediawiki-math = mediawiki_math
+SPKG_DESC_CSWmediawiki-math = LaTeX compatable Math plugin for MediaWiki
+
+REQUIRED_PKGS_CSWmediawiki  = CSWphp5
+REQUIRED_PKGS_CSWmediawiki-math  = CSWphp5 CSWmediawiki
+
+# We define upstream file regex so we can be notifed of 
+# new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+ARCHALL_CSWmediawiki = 1
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = math
+INSTALL_SCRIPTS = custom
+TEST_SCRIPTS = skip
+
+build-math:
+	gmake $(WORKSRC)/math 
+	@$(MAKECOOKIE)
+
+install-custom:
+	@ginstall -d $(INSTALLISADIR)$(prefix)/mediawiki
+	@(cd $(WORKSRC); /usr/bin/pax -rw -v ./ $(abspath $(INSTALLISADIR)$(prefix)/mediawiki))
+
+test-skip:
+	@$(MAKECOOKIE)
+
+include gar/category.mk
+

Added: csw/mgar/pkg/mediawiki/trunk/checksums
===================================================================
--- csw/mgar/pkg/mediawiki/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/mediawiki/trunk/checksums	2009-05-01 01:27:12 UTC (rev 4625)
@@ -0,0 +1 @@
+36bfd924e92b61a6f5fe70c6bc8e5aac  download/mediawiki-1.14.0.tar.gz

Added: csw/mgar/pkg/mediawiki/trunk/files/CSWmediawiki.postinstall
===================================================================
--- csw/mgar/pkg/mediawiki/trunk/files/CSWmediawiki.postinstall	                        (rev 0)
+++ csw/mgar/pkg/mediawiki/trunk/files/CSWmediawiki.postinstall	2009-05-01 01:27:12 UTC (rev 4625)
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Enable MediaWiki in httpd.conf
+FOUND=`grep "^Include etc/extra/httpd-mediawiki.conf" ${AP2_CONFIG}`
+
+if [ -n "`grep "^Include etc/extra/httpd-mediawiki.conf" ${AP2_CONFIG}`" ]; then
+    echo "MediaWiki Already Enabled"
+elif [ -n "`grep "^#Include etc/extra/httpd-mediawiki.conf" ${AP2_CONFIG}`" ]; then
+    echo "Re-enabling existing config"
+    perl -i -pe 's|^#(Include etc/extra/httpd-mediawiki.conf)|$1|' ${AP2_CONFIG}
+else
+    echo "Adding Include for httpd-mediawiki.conf"
+    cat << _END_ >>${AP2_CONFIG}
+Include etc/extra/httpd-mediawiki.conf
+_END_
+fi
+
+file = ${AP2_EXTRADIR}/httpd-mediawiki.conf
+if [ ! -f ${file} ]; then
+    echo "Creating ${file} from ${file}.CSW"
+    cp ${file}.CSW ${file}
+else
+    echo "Preserving Existing ${file}"
+fi
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Enabled MediaWiki
+* in ${AP2_CONFIG}
+*
+* You will need to restart your web server to finish the install
+******************************************************************************
+_EOF_
+
+exit 0
+

Added: csw/mgar/pkg/mediawiki/trunk/files/CSWmediawiki.preremove
===================================================================
--- csw/mgar/pkg/mediawiki/trunk/files/CSWmediawiki.preremove	                        (rev 0)
+++ csw/mgar/pkg/mediawiki/trunk/files/CSWmediawiki.preremove	2009-05-01 01:27:12 UTC (rev 4625)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Disable MediaWiki in httpd.conf
+perl -i -pe 's|^(Include etc/extra/httpd-mediawiki.conf)|#$1|' ${AP2_CONFIG}
+
+cat << _EOF_
+******************************************************************************
+* NOTICE: Successfully Disabled MediaWiki
+* in ${AP2_CONFIG}
+*
+* You will need to restart your web server to finish the removal
+******************************************************************************
+_EOF_
+
+exit 0
+

Added: csw/mgar/pkg/mediawiki/trunk/files/httpd-mediawiki.conf.CSW
===================================================================
--- csw/mgar/pkg/mediawiki/trunk/files/httpd-mediawiki.conf.CSW	                        (rev 0)
+++ csw/mgar/pkg/mediawiki/trunk/files/httpd-mediawiki.conf.CSW	2009-05-01 01:27:12 UTC (rev 4625)
@@ -0,0 +1,12 @@
+
+<IfModule alias_module>
+    Alias /MediaWiki /opt/csw/mediawiki
+</IfModule>
+
+<Directory "/opt/csw/mediawiki">
+    AllowOverride None
+    Options None
+    Order allow,deny
+    Allow from all
+</Directory>
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list