Import timetrex-2.2.13

TimeTrex is a complete web-based payroll and time management suite which
offers employee scheduling, attendance (timeclock, timesheet), job
costing, invoicing and payroll all in a tightly integrated package.

"looks good" to fkr@
This commit is contained in:
ajacoutot 2008-09-17 10:08:21 +00:00
parent 34be7c4f86
commit b83eb7a605
10 changed files with 2702 additions and 0 deletions

45
www/timetrex/Makefile Normal file
View File

@ -0,0 +1,45 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/09/17 10:08:21 ajacoutot Exp $
COMMENT= web-based payroll and time management suite
V= 2.2.13
DISTNAME= TimeTrex_Standard_Edition_v${V}
PKGNAME= timetrex-${V}
CATEGORIES= www productivity
EXTRACT_SUFX= .zip
HOMEPAGE= http://www.timetrex.com/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# TimeTrex Public License Version 1.1.0 ("TPL")
# (i.e modified MPL)
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=timetrex/}
RUN_DEPENDS= :php5-gd-*:www/php5/extensions,-gd \
:php5-soap-*:www/php5/extensions,-soap \
::www/pear
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
PREFIX= /var/www
INSTDIR= ${PREFIX}/timetrex
SUBST_VARS= INSTDIR TRUEPREFIX
do-install:
mv ${WRKSRC} ${INSTDIR}
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${INSTDIR}
${SUBST_CMD} ${INSTDIR}/timetrex.ini.php-example_linux \
${INSTDIR}/README.OpenBSD
find ${INSTDIR} -type f -name \*.orig -or -name \*.bak | xargs rm
chown -R ${BINOWN}:${BINGRP} ${INSTDIR}
.include <bsd.port.mk>

5
www/timetrex/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (TimeTrex_Standard_Edition_v2.2.13.zip) = 2QNDbOGFyN+9t7lk6+yVug==
RMD160 (TimeTrex_Standard_Edition_v2.2.13.zip) = QNWfPQR7EpEyMn6V8PxXB2N1Hfs=
SHA1 (TimeTrex_Standard_Edition_v2.2.13.zip) = qZkguo3Ad52CpRSNBUkwrLOxI0w=
SHA256 (TimeTrex_Standard_Edition_v2.2.13.zip) = 0LekMUFl4r9K2P1VII0VDnwbbw8aHbxqH6v5rU8u4GI=
SIZE (TimeTrex_Standard_Edition_v2.2.13.zip) = 12077168

View File

@ -0,0 +1,69 @@
$OpenBSD: README.OpenBSD,v 1.1.1.1 2008/09/17 10:08:23 ajacoutot Exp $
Post-install/update instructions for TimeTrex.
Depending on the database you wish to access, you'll need the
corresponding PHP module. e.g:
for MySQL you'll need to install php5-mysql
for PostreSQL you'll need to install php5-pgsql
The administrator Guide is available as a PDF here:
${TRUEPREFIX}/timetrex/documentation/Administrator_Guide_Standard_Edition_en.pdf
Installation
============
* Creating a dedicated user and database for TimeTrex.
While TimeTrex supports MySQL and PostreSQL, MySQL will be used in the
following example.
$ mysql -u root -p mysql
mysql> CREATE DATABASE `timetrex`;
mysql> USE `timetrex`;
mysql> GRANT ALL PRIVILEGES ON `timetrex` . *
-> TO 'timetrex'@'localhost' IDENTIFIED BY 'yourpassword';
mysql> QUIT
If using MySQL, you must ensure that you have the proper time zone
support by running the following command:
$ ${LOCALBASE}/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p -u root mysql
* Configuring your /var/www/conf/php.ini for TimeTrex:
- memory_limit needs to be set to at least 512M
* Configuring maintenance jobs
TimeTrex requires that maintenance jobs be run regularly throughout
the day. This is extremely important and without these maintenance
jobs running TimeTrex will fail to operate correctly.
Add the following line to root's crontab:
* * * * * sudo -u www ${LOCALBASE}/bin/php ${TRUEPREFIX}/timetrex/maint/cron.php > /dev/null 2>&1
If the php binary cannot access the default MySQL socket using the
same path that the PHP module uses (because the module run in a
chrooted installation), as root:
# cp /var/www/conf/php.ini /var/www/conf/php-cli.ini
then edit the mysql.default_socket path in /var/www/conf/php-cli.ini
* Finishing the installation.
Point your web browser to:
http://<hostname>/timetrex/interface/install/install.php
Update
======
* IMPORTANT!
Create a backup of your current installation and timetrex database.
The timetrex.ini.php file contains a cryptographic salt that if you
lose you will not be able to login to TimeTrex nor access encrypted
data ever again!
* Edit ${TRUEPREFIX}/timetrex/timetrex.ini.php and set:
installer_enabled = TRUE
* Finishing the update.
Point your web browser to:
http://<hostname>/timetrex/interface/install/install.php

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-classes_adodb_adodb_inc_php,v 1.1.1.1 2008/09/17 10:08:23 ajacoutot Exp $
--- classes/adodb/adodb.inc.php.orig Sat Sep 13 12:41:41 2008
+++ classes/adodb/adodb.inc.php Sat Sep 13 12:41:51 2008
@@ -1625,7 +1625,7 @@
if ($createdir && $notSafeMode && !file_exists($dir)) {
$oldu = umask(0);
- if (!mkdir($dir,0771))
+ if (!mkdir($dir,0771,true))
if ($this->debug) ADOConnection::outp( "Unable to mkdir $dir for $sql");
umask($oldu);
}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-classes_cache_lite_Hashed_Cache_Lite_php,v 1.1.1.1 2008/09/17 10:08:23 ajacoutot Exp $
--- classes/cache_lite/Hashed_Cache_Lite.php.orig Sat Sep 13 12:55:25 2008
+++ classes/cache_lite/Hashed_Cache_Lite.php Sat Sep 13 12:55:34 2008
@@ -73,7 +73,7 @@ class Hashed_Cache_Lite extends Cache_Lite
$new_dir = ($dir{0} == DIR_SEP) ? DIR_SEP : '';
foreach ($dir_parts as $dir_part) {
$new_dir .= $dir_part;
- if (!file_exists($new_dir) && !mkdir($new_dir, 0771)) {
+ if (!file_exists($new_dir) && !mkdir($new_dir, 0771, true)) {
Cache_Lite::raiseError('Cache_Lite : problem creating directory \"$dir\" !', -3);
return false;
}

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-templates_install_SystemSettings_tpl,v 1.1.1.1 2008/09/17 10:08:23 ajacoutot Exp $
--- templates/install/SystemSettings.tpl.orig Sat Sep 13 12:03:39 2008
+++ templates/install/SystemSettings.tpl Sat Sep 13 12:04:40 2008
@@ -70,7 +70,7 @@
</span>
</td>
<td class="cellRightEditTable">
- <input type="checkbox" class="checkbox" name="data[update_notify]" value="1" checked>
+ <input type="checkbox" class="checkbox" name="data[update_notify]" value="1">
<font color='red'><b>{t}*HIGHLY RECOMMENDED{/t}</b></font>
</td>
</tr>
@@ -81,7 +81,7 @@
<br>
</td>
<td class="cellRightEditTable">
- <input type="checkbox" class="checkbox" name="data[anonymous_update_notify]" value="1">
+ <input type="checkbox" class="checkbox" name="data[anonymous_update_notify]" value="1" checked>
</td>
</tr>
{/if}
@@ -97,4 +97,4 @@
</form>
</div>
</div>
-{include file="footer.tpl"}
\ No newline at end of file
+{include file="footer.tpl"}

View File

@ -0,0 +1,35 @@
$OpenBSD: patch-timetrex_ini_php-example_linux,v 1.1.1.1 2008/09/17 10:08:23 ajacoutot Exp $
--- timetrex.ini.php-example_linux.orig Mon May 26 23:14:19 2008
+++ timetrex.ini.php-example_linux Sat Sep 13 10:30:41 2008
@@ -17,19 +17,19 @@ base_url = /timetrex/interface
;log directory
;
;Linux
-log = /var/log/timetrex
+log = ${TRUEPREFIX}/timetrex/log
;
;Misc storage, for attachments/images
;
;Linux
-storage = /var/timetrex/storage
+storage = ${TRUEPREFIX}/timetrex/storage
;
;Full path and name to the PHP CLI Binary
;
;Linux
-php_cli = /usr/bin/php
+php_cli = ${LOCALBASE}/bin/php
@@ -53,7 +53,7 @@ password = ENTER_PASSWORD_HERE
[cache]
enable = TRUE
;Linux
-dir = /tmp/timetrex
+dir = ${TRUEPREFIX}/timetrex/tmp

3
www/timetrex/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
TimeTrex is a complete web-based payroll and time management suite which
offers employee scheduling, attendance (timeclock, timesheet), job
costing, invoicing and payroll all in a tightly integrated package.

8
www/timetrex/pkg/MESSAGE Normal file
View File

@ -0,0 +1,8 @@
TimeTrex has been installed into ${INSTDIR}
You should point this to the DocumentRoot of your web-server:
# ln -s ../timetrex /var/www/htdocs/timetrex
(make sure you use a relative symlink since Apache is chrooted)
To complete the installation or update, make sure you read
${INSTDIR}/README.OpenBSD.

2485
www/timetrex/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff