Permalink
Browse files

QA release prep

git-svn-id: http://svn.php.net/repository/pear/packages/LiveUser/trunk@304421 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 52f6072 commit 855dba5d2182999961e31d54ffb874c751db06bc @CloCkWeRX CloCkWeRX committed Oct 15, 2010
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,132 +0,0 @@
-<?php
-/**
- * Script to generate package.xml file
- *
- * Taken from PEAR::Log, thanks Jon ;)
- *
- * $Id$
- */
-require_once 'PEAR/PackageFileManager2.php';
-require_once 'Console/Getopt.php';
-
-$packagefile = 'package.xml';
-
-$version = '';
-$apiVersion = '';
-
-$notes = <<<EOT
-EOT;
-
-$description = <<<EOT
- LiveUser is a set of classes for dealing with user authentication
- and permission management. Basically, there are three main elements that
- make up this package:
-
- * The LiveUser class
- * The Auth containers
- * The Perm containers
-
- The LiveUser class takes care of the login process and can be configured
- to use a certain permission container and one or more different auth containers.
- That means, you can have your users' data scattered amongst many data containers
- and have the LiveUser class try each defined container until the user is found.
- For example, you can have all website users who can apply for a new account online
- on the webserver's local database. Also, you want to enable all your company's
- employees to login to the site without the need to create new accounts for all of
- them. To achieve that, a second container can be defined to be used by the LiveUser class.
-
- You can also define a permission container of your choice that will manage the rights for
- each user. Depending on the container, you can implement any kind of permission schemes
- for your application while having one consistent API.
-
- Using different permission and auth containers, it's easily possible to integrate
- newly written applications with older ones that have their own ways of storing permissions
- and user data. Just make a new container type and you're ready to go!
-
- Currently available are containers using:
- PEAR::DB, PEAR::MDB, PEAR::MDB2, PECL::PDO, PEAR::XML_Tree, PEAR::Auth, Session.
-EOT;
-
-$options = array('filelistgenerator' => 'cvs',
- 'package' => 'LiveUser',
- 'summary' => 'User authentication and permission management framework',
- 'description' => $description,
- 'version' => $version,
- 'state' => 'beta',
- 'license' => 'LGPL',
- 'filelistgenerator' => 'cvs',
- 'ignore' => array('package.php', 'package.xml', 'Cache.php'),
- 'notes' => $notes,
- 'clearcontents' => false,
- 'changelogoldtonew' => false,
- 'changelogoldtonew' => false,
- 'simpleoutput' => true,
- 'baseinstalldir' => '/LiveUser',
- 'packagedirectory' => './',
- 'installexceptions' => array(
- 'LiveUser.php' => '/',
- ),
- 'installas' => array(
- 'sql/Auth_XML.xml' => 'misc/Auth_XML.xml',
- 'sql/Perm_XML.xml' => 'misc/Perm_XML.xml',
- 'sql/README' => 'misc/schema/README',
- 'sql/install.php' => 'misc/schema/install.php',
- ),
- 'exceptions' => array(
- 'lgpl.txt' => 'doc'
- ),
- 'dir_roles' => array('sql' => 'data',
- 'docs' => 'doc',
- 'scripts' => 'script')
-);
-
-
-$p2 = &PEAR_PackageFileManager2::importOptions($packagefile, $options);
-$p2->setPackageType('php');
-$p2->addRelease();
-$p2->generateContents();
-$p2->setReleaseVersion($version);
-$p2->setAPIVersion($apiVersion);
-$p2->setReleaseStability('beta');
-$p2->setAPIStability('beta');
-$p2->setNotes($notes);
-
-$result = $package->setOptions(array(
-));
-
-if (PEAR::isError($result)) {
- echo $result->getMessage();
- exit();
-}
-
-$package->addMaintainer('mw21st', 'lead', 'Markus Wolff', 'mw21st@php.net');
-$package->addMaintainer('arnaud', 'lead', 'Arnaud Limbourg', 'arnaud@php.net');
-$package->addMaintainer('lsmith', 'lead', 'Lukas Kahwe Smith', 'smith@pooteeweet.org');
-$package->addMaintainer('krausbn', 'developer', 'Bjoern Kraus', 'krausbn@php.net');
-$package->addMaintainer('dufuz', 'lead', 'Helgi Þormar', 'dufuz@php.net');
-$package->addMaintainer('mahono', 'developer', 'Matthias Nothhaft', 'mahono@php.net');
-
-$package->addDependency('php', '4.2.0', 'ge', 'php', false);
-$package->addDependency('PEAR', '1.3.3', 'ge', 'pkg', false);
-$package->addDependency('Event_Dispatcher', false, 'has', 'pkg', false);
-$package->addDependency('Log', '1.7.0', 'ge', 'pkg', true);
-$package->addDependency('DB', '1.6.0', 'ge', 'pkg', true);
-$package->addDependency('MDB', '1.1.4', 'ge', 'pkg', true);
-$package->addDependency('MDB2', '2.0.0', 'ge', 'pkg', true);
-$package->addDependency('MDB2_Schema', false, 'has', 'pkg', true);
-$package->addDependency('XML_Tree', false, 'has', 'pkg', true);
-$package->addDependency('Crypt_RC4', false, 'has', 'pkg', true);
-$package->addDependency('mcrypt', false, 'has', 'ext', true);
-$package->addDependency('hash', false, 'has', 'ext', true);
-
-if (array_key_exists('make', $_GET) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) {
- echo "package.xml generated\n";
- $result = $package->writePackageFile();
-} else {
- $result = $package->debugPackageFile();
-}
-
-if (PEAR::isError($result)) {
- echo $result->getMessage();
- exit();
-}
Oops, something went wrong.

0 comments on commit 855dba5

Please sign in to comment.