[Fusionforge-commits] r9460 - in trunk/plugins/templates: . helloworld/cronjobs helloworld/etc/httpd.d helloworld/packaging/install

Christian Bayle cbayle at libremir.placard.fr.eu.org
Mon Apr 12 16:40:53 CEST 2010


Author: cbayle
Date: 2010-04-12 16:40:52 +0200 (Mon, 12 Apr 2010)
New Revision: 9460

Added:
   trunk/plugins/templates/helloworld/cronjobs/manage_helloworld.php
   trunk/plugins/templates/helloworld/etc/httpd.d/62plugin-helloworld
Modified:
   trunk/plugins/templates/createplugin.sh
   trunk/plugins/templates/helloworld/packaging/install/plugin-helloworld
Log:
fix build problems


Modified: trunk/plugins/templates/createplugin.sh
===================================================================
--- trunk/plugins/templates/createplugin.sh	2010-04-12 13:08:11 UTC (rev 9459)
+++ trunk/plugins/templates/createplugin.sh	2010-04-12 14:40:52 UTC (rev 9460)
@@ -29,7 +29,7 @@
 	echo "Creating $1 plugin"
 	echo "Creating directory $plugdir"
 	[ ! -d $plugdir ] && mkdir $plugdir
-	(cd $modelplugdir;find bin;find etc;find common;find www;find utils;find db;find cronjobs;find tests; find translations)|sort|while read debfile
+	(cd $modelplugdir;find bin;find etc;find common;find include;find www;find utils;find db;find cronjobs;find tests; find translations)|sort|while read debfile
 	do
 		if [ -d $modelminus/$debfile ]
 		then

Added: trunk/plugins/templates/helloworld/cronjobs/manage_helloworld.php
===================================================================
--- trunk/plugins/templates/helloworld/cronjobs/manage_helloworld.php	                        (rev 0)
+++ trunk/plugins/templates/helloworld/cronjobs/manage_helloworld.php	2010-04-12 14:40:52 UTC (rev 9460)
@@ -0,0 +1,70 @@
+#! /usr/bin/php5 -f
+<?php
+/**
+ * FusionForge source control management
+ *
+ * Copyright 2009, Roland Mas
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ * 
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+require 'env.inc.php';
+require_once $gfwww.'include/squal_pre.php';
+require_once $gfcommon.'include/cron_utils.php';
+
+// MailingList backend class
+/* This is only sample
+require_once $gfplugins.'helloworld/include/BackendHelloworld.class.php' ;
+			 
+
+$res = db_query_params ('SELECT id,type, parameters FROM system_event WHERE status=$1 ORDER BY id DESC',
+			array ('1')); 
+if (!$res) {
+	printf('Unable to get list of events: '.db_error());
+	return false;
+}
+
+while ($data = db_fetch_array ($res)) {
+	if($data['type'] == 'HELLOWORLD_CREATE') {
+		$result = BackendHelloworld::instance()->createList($data['parameters']);
+	} elseif ($data['type'] == 'HELLOWORLD_DELETE') {
+		$result = BackendHelloworld::instance()->deleteList($data['parameters']);
+	}
+	$result ? $log="DONE":$test="ERROR";
+	$events[$data['id']]=$log;
+	echo "\n Event ".$data['id']." : ".$data['type']." ".$log." for list id=".$data['parameters'];
+}
+if(isset($events)) {
+	foreach($events as $event_id => $log) {
+		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;"; 
+		$result = db_query_params($sql,array(time(),$log,$event_id));
+		if (!$result) {
+			printf('Unable to update the list of events: '.db_error());
+			return false;
+		}
+	}
+
+}
+*/
+
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>

Added: trunk/plugins/templates/helloworld/etc/httpd.d/62plugin-helloworld
===================================================================
--- trunk/plugins/templates/helloworld/etc/httpd.d/62plugin-helloworld	                        (rev 0)
+++ trunk/plugins/templates/helloworld/etc/httpd.d/62plugin-helloworld	2010-04-12 14:40:52 UTC (rev 9460)
@@ -0,0 +1,12 @@
+# 62plugin-helloworld begin
+#	AddHandler cgi-script .cgi
+
+#	ScriptAlias /cgi-bin/helloworld/ /var/lib/helloworld/cgi-bin/
+#	ScriptAlias /helloworld/ /var/lib/helloworld/cgi-bin/
+
+#	Alias /images/helloworld /usr/share/images/helloworld
+#	<Location /images/helloworld>
+#		order allow,deny
+#		allow from all
+#	</Location>
+# 62plugin-helloworld end

Modified: trunk/plugins/templates/helloworld/packaging/install/plugin-helloworld
===================================================================
--- trunk/plugins/templates/helloworld/packaging/install/plugin-helloworld	2010-04-12 13:08:11 UTC (rev 9459)
+++ trunk/plugins/templates/helloworld/packaging/install/plugin-helloworld	2010-04-12 14:40:52 UTC (rev 9460)
@@ -1,3 +1,8 @@
-common/*                  /usr/share/gforge/plugins/helloworld/common/
-www/*                     /usr/share/gforge/plugins/helloworld/www/
-etc/plugins/helloworld/*  /etc/gforge/plugins/helloworld/
+common/*                  usr/share/gforge/plugins/helloworld/common/
+include/*                 usr/share/gforge/plugins/helloworld/include/
+db/*                      usr/share/gforge/plugins/helloworld/db/
+bin/*                     usr/share/gforge/plugins/helloworld/bin/
+www/*                     usr/share/gforge/plugins/helloworld/www/
+cronjobs/*                usr/share/gforge/cronjobs
+etc/plugins/helloworld/*     etc/gforge/plugins/helloworld/
+etc/httpd.d/*             usr/share/gforge/etc/httpd.d/




More information about the Fusionforge-commits mailing list