mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
moved around a few files
This commit is contained in:
parent
9e881820b8
commit
d8e81e9812
137
doc/cvs_full_checkout.php
Executable file
137
doc/cvs_full_checkout.php
Executable file
@ -0,0 +1,137 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare *
|
||||
* http://www.phpgroupware.org *
|
||||
* The file written by Dan Kuykendall <seek3r@phpgroupware.org> *
|
||||
* Joseph Engo <jengo@phpgroupware.org> *
|
||||
* -------------------------------------------- *
|
||||
* This program 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. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
/****************************************************************************\
|
||||
* Config section *
|
||||
\****************************************************************************/
|
||||
// Temp paths that can be read and written to
|
||||
$tmp_dir = '/tmp';
|
||||
// Path of where you want the phpgroupware directory to go. NO trailing /
|
||||
$co_dir = '/var/www/html';
|
||||
// If you do not have developer access to cvs, change to True
|
||||
$cvs_anonymous = True;
|
||||
// Only needed if you have developers cvs access
|
||||
$cvs_login = '';
|
||||
$cvs_password = '';
|
||||
|
||||
|
||||
// Modules you want to checkout, do NOT add the phpgroupware module
|
||||
$co_modules[] = 'ab';
|
||||
$co_modules[] = 'addressbook';
|
||||
$co_modules[] = 'admin';
|
||||
$co_modules[] = 'bookkeeping';
|
||||
$co_modules[] = 'calendar';
|
||||
$co_modules[] = 'cart';
|
||||
$co_modules[] = 'cdb';
|
||||
$co_modules[] = 'chat';
|
||||
$co_modules[] = 'chora';
|
||||
$co_modules[] = 'comic';
|
||||
$co_modules[] = 'cron';
|
||||
$co_modules[] = 'dj';
|
||||
$co_modules[] = 'eldaptir';
|
||||
$co_modules[] = 'email';
|
||||
$co_modules[] = 'filemanager';
|
||||
$co_modules[] = 'files';
|
||||
$co_modules[] = 'forum';
|
||||
$co_modules[] = 'ftp';
|
||||
$co_modules[] = 'headlines';
|
||||
$co_modules[] = 'hr';
|
||||
$co_modules[] = 'inv';
|
||||
$co_modules[] = 'manual';
|
||||
$co_modules[] = 'mediadb';
|
||||
$co_modules[] = 'napster';
|
||||
$co_modules[] = 'news_admin';
|
||||
$co_modules[] = 'nntp';
|
||||
$co_modules[] = 'notes';
|
||||
$co_modules[] = 'phonelog';
|
||||
$co_modules[] = 'phpGWShell_Win32_VB';
|
||||
$co_modules[] = 'phpgwapi';
|
||||
$co_modules[] = 'phpgwnetsaint';
|
||||
$co_modules[] = 'polls';
|
||||
$co_modules[] = 'preferences';
|
||||
$co_modules[] = 'projects';
|
||||
$co_modules[] = 'rbs';
|
||||
$co_modules[] = 'setup';
|
||||
$co_modules[] = 'squirrelmail';
|
||||
$co_modules[] = 'stocks';
|
||||
$co_modules[] = 'todo';
|
||||
$co_modules[] = 'transy';
|
||||
$co_modules[] = 'tts';
|
||||
$co_modules[] = 'wap';
|
||||
$co_modules[] = 'weather';
|
||||
|
||||
// -- End config section
|
||||
|
||||
function docvscommand($command, $anonymous_login = False)
|
||||
{
|
||||
global $tmp_dir, $cvs_password, $cvs_anonymous;
|
||||
|
||||
$fp = fopen($tmp_dir . '/createrelease.exp','w');
|
||||
$contents = "#!/usr/bin/expect -f\n";
|
||||
$contents = "send -- \"export CVS_RSH=ssh\"\n";
|
||||
$contents .= "set force_conservative 0\n";
|
||||
$contents .= "if {\$force_conservative} {\n";
|
||||
$contents .= " set send_slow {1 .1}\n";
|
||||
$contents .= " proc send {ignore arg} {\n";
|
||||
$contents .= " sleep .1\n";
|
||||
$contents .= " exp_send -s -- \$arg\n";
|
||||
$contents .= " }\n";
|
||||
$contents .= "}\n";
|
||||
$contents .= "set timeout -1\n";
|
||||
$contents .= "spawn $command\n";
|
||||
$contents .= "match_max 100000\n";
|
||||
|
||||
if (! $cvs_anonymous)
|
||||
{
|
||||
$contents .= "expect \":\"\n";
|
||||
$contents .= "send -- \"" . $cvs_password . "\\r\"\n";
|
||||
}
|
||||
else if ($cvs_anonymous && $anonymous_login)
|
||||
{
|
||||
$contents .= "expect \"CVS password:\"\n";
|
||||
$contents .= "send -- \"\\r\"\n";
|
||||
}
|
||||
|
||||
$contents .= "expect eof\n";
|
||||
fputs($fp, $contents, strlen($contents));
|
||||
fclose($fp);
|
||||
system('/usr/bin/expect ' . $tmp_dir . '/createrelease.exp');
|
||||
unlink($tmp_dir . '/createrelease.exp');
|
||||
}
|
||||
|
||||
chdir($co_dir);
|
||||
if ($cvs_anonymous)
|
||||
{
|
||||
docvscommand('cvs -d:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware login',True);
|
||||
docvscommand('cvs -d:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware co phpgroupware',True);
|
||||
}
|
||||
else
|
||||
{
|
||||
docvscommand('cvs -d' . $cvs_login . '@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware co phpgroupware');
|
||||
}
|
||||
|
||||
chdir($co_dir . '/phpgroupware');
|
||||
|
||||
if ($cvs_anonymous)
|
||||
{
|
||||
docvscommand('cvs -z3 -d:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware co ' . implode(' ',$co_modules));
|
||||
}
|
||||
else
|
||||
{
|
||||
docvscommand('cvs -d' . $cvs_login . '@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware co ' . implode(' ',$co_modules));
|
||||
}
|
||||
|
||||
docvscommand('cvs update -dP');
|
75
phpgwapi/doc/phpgroupware.spec
Normal file
75
phpgwapi/doc/phpgroupware.spec
Normal file
@ -0,0 +1,75 @@
|
||||
%define packagename phpGroupWare
|
||||
%define phpgwdirname phpgroupware
|
||||
%define version 0.9.9
|
||||
|
||||
# This is for Mandrake RPMS
|
||||
# (move these below the RedHat ones for Mandrake RPMs)
|
||||
%define httpdroot /var/www/html
|
||||
%define packaging 1mdk
|
||||
|
||||
# This is for RedHat RPMS
|
||||
# (move these below the Mandrake ones for RedHat RPMs)
|
||||
%define httpdroot /home/httpd/html
|
||||
%define packaging 1
|
||||
|
||||
Summary: phpGroupWare is a web-based groupware suite written in php.
|
||||
Name: %{packagename}
|
||||
Version: %{version}
|
||||
Release: %{packaging}
|
||||
Copyright: GPL
|
||||
Group: Web/Database
|
||||
URL: http://www.phpgroupware.org/
|
||||
Source0: ftp://ftp.sourceforge.net/pub/sourceforge/phpgroupware/%{packagename}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{packagename}-buildroot
|
||||
Prefix: %{httpdroot}
|
||||
Buildarch: noarch
|
||||
AutoReq: 0
|
||||
|
||||
%description
|
||||
phpGroupWare is a web-based groupware suite written in PHP. It provides
|
||||
calendar, todo-list, addressbook, email and a notepad. It also
|
||||
provides an API for developing additional applications. See the phpgroupware
|
||||
apps project for add-on apps.
|
||||
|
||||
%prep
|
||||
%setup -n %{phpgwdirname}
|
||||
|
||||
%build
|
||||
# no build required
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{prefix}/%{phpgwdirname}
|
||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{phpgwdirname}
|
||||
chown -R root:root $RPM_BUILD_ROOT%{prefix}/%{phpgwdirname}
|
||||
chown -R nobody:nobody $RPM_BUILD_ROOT%{prefix}/%{phpgwdirname}/files/groups
|
||||
chown -R nobody:nobody $RPM_BUILD_ROOT%{prefix}/%{phpgwdirname}/files/users
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
|
||||
%postun
|
||||
|
||||
%files
|
||||
%{prefix}/%{phpgwdirname}
|
||||
|
||||
%changelog
|
||||
* Sat Jan 6 2001 Dan Kuykendall <seek3r@phpgroupware.org> 0.9.9
|
||||
- Upgraded to new 0.9.8 version.
|
||||
- Removed lots of unneeded code that was needed for the pre-beta versions.
|
||||
- Added support for RedHat and Mandrake distro's.
|
||||
- General clean up so that this can be reused by the project
|
||||
|
||||
* Sat Sep 16 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 09072000-2mdk
|
||||
- Add url.
|
||||
- turn off autorequires.
|
||||
- use /var/www.
|
||||
|
||||
* Wed Sep 13 2000 <snailtalk@mandrakesoft.com> 09072000-1mdk
|
||||
- first rpm-zed distribution.
|
||||
- cutom configuration files from Dan Kuykendall.
|
||||
- suggestions on packaging from Dan.
|
||||
|
||||
# end of file
|
Loading…
Reference in New Issue
Block a user