--- /dev/null
+<?php
+/**
+ * PEAR_Installer_Role_Horde
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @author Michael Slusarz <slusarz@horde.org>
+ * @category Horde
+ * @copyright 2010 The Horde Project (http://www.horde.org/)
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Role
+ */
+
+/**
+ * @author Michael Slusarz <slusarz@horde.org>
+ * @category Horde
+ * @copyright 2010 The Horde Project (http://www.horde.org/)
+ * @license http://www.fsf.org/copyleft/gpl.html GPL
+ * @package Role
+ */
+class PEAR_Installer_Role_Horde extends PEAR_Installer_Role_Common
+{
+ function setup(&$installer, $pkg, $atts, $file)
+ {
+ /* Check for proper setup. */
+ $pear_config = PEAR_Config::singleton();
+ if (!$pear_config->get('horde_dir')) {
+ return PEAR::raiseError('Missing "horde_dir" configuration in PEAR.');
+ }
+ }
+}
--- /dev/null
+<role version="1.0">
+ <releasetypes>php</releasetypes>
+ <installable>1</installable>
+ <locationconfig>horde_dir</locationconfig>
+ <honorsbaseinstall>1</honorsbaseinstall>
+ <unusualbaseinstall />
+ <phpfile />
+ <executable />
+ <phpextension />
+ <config_vars>
+ <horde_dir>
+ <type>directory</type>
+ <default></default>
+ <doc>Filesystem directory where the base Horde application is installed</doc>
+ <prompt>Base Horde directory</prompt>
+ <group>File Locations</group>
+ </horde_dir>
+ </config_vars>
+</role>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<package packagerversion="1.4.9" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
+http://pear.php.net/dtd/tasks-1.0.xsd
+http://pear.php.net/dtd/package-2.0
+http://pear.php.net/dtd/package-2.0.xsd">
+ <name>Role</name>
+ <channel>pear.horde.org</channel>
+ <summary>PEAR Installer role used to install Horde components</summary>
+ <description>This package provides a method for PEAR to install Horde
+ components into a base Horde installation.
+ </description>
+ <lead>
+ <name>Michael Slusarz</name>
+ <user>slusarz</user>
+ <email>slusarz@horde.org</email>
+ <active>yes</active>
+ </lead>
+ <date>2010-08-27</date>
+ <version>
+ <release>0.1.0</release>
+ <api>0.1.0</api>
+ </version>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
+ <notes>* Initial package.
+ </notes>
+ <contents>
+ <dir name="/">
+ <file name="Horde.php" role="php" />
+ <file name="Horde.xml" role="php" />
+ </dir> <!-- / -->
+ </contents>
+ <dependencies>
+ <required>
+ <php>
+ <min>5.2.0</min>
+ </php>
+ <pearinstaller>
+ <min>1.7.0</min>
+ </pearinstaller>
+ </required>
+ </dependencies>
+ <phprelease>
+ <filelist>
+ <install name="Horde.php" as="PEAR/Installer/Role/Horde.php" />
+ <install name="Horde.xml" as="PEAR/Installer/Role/Horde.xml" />
+ </filelist>
+ </phprelease>
+ <changelog />
+</package>