diff --git a/finance/frontaccounting24/Makefile b/finance/frontaccounting24/Makefile index 2f905e5f006b..deb0370135fe 100644 --- a/finance/frontaccounting24/Makefile +++ b/finance/frontaccounting24/Makefile @@ -1,66 +1,61 @@ PORTNAME= frontaccounting24 -PORTVERSION= 2.4.11 +PORTVERSION= 2.4.12 DISTVERSIONSUFFIX= ${PORTVERSION} CATEGORIES= finance www MASTER_SITES= SF/${DIST_SUBDIR}/FrontAccounting%202.4/${PORTVERSION} DISTNAME= frontaccounting-${PORTVERSION} DIST_SUBDIR= frontaccounting MAINTAINER= james@elstone.net COMMENT= Simple, powerful system for the entire ERP chain WWW= https://www.frontaccounting.com/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/doc/license.txt USES= cpe USE_PHP+= mysqli session ctype zlib -WRKSRC= ${WRKDIR}/${DIST_SUBDIR} NO_BUILD= yes SUB_FILES= pkg-deinstall pkg-message -PORTDOCSARGS= -DEFAULT_VERSIONS+= php=8.0 + +WRKSRC= ${WRKDIR}/${DIST_SUBDIR} OPTIONS_DEFINE= APACHE LIGHTTPD NGINX NLS DOCS OPTIONS_DEFAULT= APACHE MYSQL_SERVER - OPTIONS_RADIO= RG1 OPTIONS_RADIO_RG1= MARIADB_CLIENT MYSQL_CLIENT MYSQL_SERVER -RG1_DESC= Database Connectivity MARIADB_CLIENT_DESC= MariaDB client connector support MYSQL_CLIENT_DESC= MySQL client connector support MYSQL_SERVER_DESC= MySQL server support NGINX_DESC= NGINX web server +RG1_DESC= Database Connectivity APACHE_USES= apache:run php:web +DOCS_VARS_OFF= PORTDOCSARGS='-not -path "./doc*"' LIGHTTPD_RUN_DEPENDS= lighttpd:www/lighttpd LIGHTTPD_USES= php:web +MARIADB_CLIENT_USES= mysql:106m +MYSQL_CLIENT_USES= mysql:client +MYSQL_SERVER_USES= mysql:server NGINX_RUN_DEPENDS= nginx:www/nginx NGINX_USES= php:web -MYSQL_SERVER_USES= mysql:server -MYSQL_CLIENT_USES= mysql:client -MARIADB_CLIENT_USES= mysql:106m NLS_USES= gettext .include .if !${PORT_OPTIONS:MAPACHE} && !${PORT_OPTIONS:MLIGHTTPD} && !{PORT_OPTIONS:MNGINX} USES+= php:cgi php:cli .endif .if ${PORT_OPTIONS:MMYSQL_SERVER} || ${PORT_OPTIONS:MMARIADB_CLIENT} USE_PHP+= mysqli .endif -.if !${PORT_OPTIONS:MDOCS} -PORTDOCSARGS= '-not -path "./doc*"' -.endif - do-install: - @${MKDIR} ${STAGEDIR}${WWWDIR} - (cd ${WRKSRC} && ${COPYTREE_SHARE} . \ - ${STAGEDIR}${WWWDIR} ${PORTDOCSARGS}) + @${MKDIR} ${STAGEDIR}${WWWDIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${WWWDIR} ${PORTDOCSARGS}) .include diff --git a/finance/frontaccounting24/distinfo b/finance/frontaccounting24/distinfo index 40ae1e49161e..7bd9710bf637 100644 --- a/finance/frontaccounting24/distinfo +++ b/finance/frontaccounting24/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1648556109 -SHA256 (frontaccounting/frontaccounting-2.4.11.tar.gz) = 5ee17c063d68c1e84eeadf8b2a14b3bb2ca46db597fd508403c50644717addd9 -SIZE (frontaccounting/frontaccounting-2.4.11.tar.gz) = 1874152 +TIMESTAMP = 1703926379 +SHA256 (frontaccounting/frontaccounting-2.4.12.tar.gz) = 6e4a0eaf388550655dcb696668bac977a2cb2f5f3e78ee14b7d61879b7c3e808 +SIZE (frontaccounting/frontaccounting-2.4.12.tar.gz) = 1876122 diff --git a/finance/frontaccounting24/files/patch-includes_session.inc b/finance/frontaccounting24/files/patch-includes_session.inc index 600f915e66dd..74af7895836a 100644 --- a/finance/frontaccounting24/files/patch-includes_session.inc +++ b/finance/frontaccounting24/files/patch-includes_session.inc @@ -1,23 +1,14 @@ ---- includes/session.inc.orig 2021-12-04 13:45:21 UTC +--- includes/session.inc.orig 2022-07-13 06:00:09 UTC +++ includes/session.inc -@@ -397,7 +397,7 @@ foreach ($installed_extensions as $ext) - ini_set('session.gc_maxlifetime', 36000); // moved from below. - - $Session_manager = new SessionManager(); --$Session_manager->sessionStart('FA'.md5(dirname(__FILE__)), 0, '/', null, True); -+$Session_manager->sessionStart('FA'.md5(dirname(__FILE__))); - - $_SESSION['SysPrefs'] = new sys_prefs(); - -@@ -431,9 +431,8 @@ if ($SysPrefs->error_logfile != '') { +@@ -432,9 +432,8 @@ if ($SysPrefs->error_logfile != '') { to avoid unexpeced session timeouts. Make sure this directory exists and is writable! */ -// ini_set('session.save_path', VARLIB_PATH.'/'); - -// ini_set('session.gc_maxlifetime', 36000); // 10hrs - moved to before session_manager +ini_set('session.save_path', VARLIB_PATH.'/'); +ini_set('session.gc_maxlifetime', 36000); // 10hrs - moved to before session_manager hook_session_start(@$_POST["company_login_name"]); diff --git a/finance/frontaccounting24/files/xpatch-includes_session.inc b/finance/frontaccounting24/files/xpatch-includes_session.inc deleted file mode 100644 index e0413dc31d1a..000000000000 --- a/finance/frontaccounting24/files/xpatch-includes_session.inc +++ /dev/null @@ -1,11 +0,0 @@ ---- includes/session.inc.orig 2021-12-04 13:45:21 UTC -+++ includes/session.inc -@@ -397,7 +397,7 @@ foreach ($installed_extensions as $ext) - ini_set('session.gc_maxlifetime', 36000); // moved from below. - - $Session_manager = new SessionManager(); --$Session_manager->sessionStart('FA'.md5(dirname(__FILE__)), 0, '/', null, True); -+$Session_manager->sessionStart('FA'.md5(dirname(__FILE__))); - - $_SESSION['SysPrefs'] = new sys_prefs(); -