From owner-svn-ports-head@freebsd.org Tue May 15 13:37:07 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1967CEDA62B; Tue, 15 May 2018 13:37:07 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C0B446BCF3; Tue, 15 May 2018 13:37:06 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9D91E41AD; Tue, 15 May 2018 13:37:06 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4FDb61w066262; Tue, 15 May 2018 13:37:06 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4FDb6Cq066259; Tue, 15 May 2018 13:37:06 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201805151337.w4FDb6Cq066259@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Tue, 15 May 2018 13:37:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r470015 - in head/www/otrs: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/www/otrs: . files X-SVN-Commit-Revision: 470015 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 13:37:07 -0000 Author: pi Date: Tue May 15 13:37:05 2018 New Revision: 470015 URL: https://svnweb.freebsd.org/changeset/ports/470015 Log: www/otrs: add missing dependencies, and missing DBUpdateTo6 scripts - Add missing dependencies - Attempt to run otrs.SetPermissions.pl script on install. It is going to work if there is an existing otrs user from the previous installation. Users installing the port for the first time should run it manually as stated in pkg-message. - Install DBUpdateTo6 scripts PR: 227924, 228106 Reported by: jonaspalm@posteo.de Submitted by: m.tsatsenko@gmail.com (maintainer), Felix J. Ogris Modified: head/www/otrs/Makefile head/www/otrs/files/pkg-message.in head/www/otrs/pkg-plist Modified: head/www/otrs/Makefile ============================================================================== --- head/www/otrs/Makefile Tue May 15 12:21:41 2018 (r470014) +++ head/www/otrs/Makefile Tue May 15 13:37:05 2018 (r470015) @@ -3,6 +3,7 @@ PORTNAME= otrs PORTVERSION= 6.0.6 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= m.tsatsenko@gmail.com @@ -43,7 +44,9 @@ BUILD_DEPENDS= p5-Archive-Zip>=0:archivers/p5-Archive- p5-CGI>=0:www/p5-CGI \ p5-Lingua-Translit>=0:devel/p5-Lingua-Translit \ p5-Pod-Strip>=0:textproc/p5-Pod-Strip \ - p5-Template-Toolkit>=0:www/p5-Template-Toolkit + p5-Template-Toolkit>=0:www/p5-Template-Toolkit \ + p5-XML-LibXML>=0:textproc/p5-XML-LibXML \ + p5-Sisimai>=0:mail/p5-Sisimai RUN_DEPENDS:= ${BUILD_DEPENDS} USES= cpe shebangfix perl5 tar:bzip2 @@ -169,16 +172,15 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/scripts/database/*.* ${STAGEDIR}${OTRSDIR}/scripts/database/ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/test/*.t ${STAGEDIR}${OTRSDIR}/scripts/test/ ${INSTALL_SCRIPT} ${WRKSRC}/scripts/tools/*.pl ${STAGEDIR}${OTRSDIR}/scripts/tools/ + (cd ${WRKSRC}/scripts && ${PAX} -r -w DBUpdateTo6 ${STAGEDIR}${OTRSDIR}/scripts) ${FIND} ${CRON_SCRIPTS} -type f -name *.dist | ${SED} -e "p;s/\.dist//" | ${XARGS} -n2 ${MV} ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/var/article ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/var/httpd/htdocs/js/js-cache/ ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}/var/tmp - -# otrs.SetPermissions.pl does not work in stage environment due to missing otrs user -#post-install: -# cd ${STAGEDIR}/${OTRSDIR} && ${PERL} ./bin/otrs.SetPermissions.pl \ -# --web-group=${WWWOWN} \ -# --otrs-user=${PORTNAME} \ -# --admin-group=wheel ${STAGEDIR}${OTRSDIR} + # Attemt to set permissions for OTRS. It will fail if there is no pre-existing otrs user + cd ${STAGEDIR}/${OTRSDIR} && ${PERL} ./bin/otrs.SetPermissions.pl \ + --web-group=${WWWOWN} \ + --otrs-user=${PORTNAME} \ + --admin-group=wheel ${STAGEDIR}${OTRSDIR} || true .include Modified: head/www/otrs/files/pkg-message.in ============================================================================== --- head/www/otrs/files/pkg-message.in Tue May 15 12:21:41 2018 (r470014) +++ head/www/otrs/files/pkg-message.in Tue May 15 13:37:05 2018 (r470015) @@ -8,7 +8,8 @@ and/or documentation in %%DOCSDIR%% for further instru regarding configuring your web server, database, cron scripts, and receiving emails. -Do not forget to run otrs.SetPermissions.pl script. +Do not forget to run otrs.SetPermissions.pl script when installing OTRS +for the first time. For example: # %%PREFIX%%/otrs/bin/otrs.SetPermissions.pl \ --web-group=%%WWWOWN%% --otrs-user=%%OTRS_USER%% \ Modified: head/www/otrs/pkg-plist ============================================================================== --- head/www/otrs/pkg-plist Tue May 15 12:21:41 2018 (r470014) +++ head/www/otrs/pkg-plist Tue May 15 13:37:05 2018 (r470015) @@ -1,4 +1,4 @@ -@owner %%OTRS_USER%% +@owner otrs @group %%WWWOWN%% @sample otrs/.fetchmailrc.dist otrs/.fetchmailrc @sample otrs/.mailfilter.dist otrs/.mailfilter @@ -1301,6 +1301,62 @@ otrs/bin/otrs.PostMaster.pl otrs/bin/otrs.SetPermissions.pl otrs/scripts/DBUpdate-to-6.pl otrs/scripts/DBUpdateTo6.pm +otrs/scripts/DBUpdateTo6/AddAppointmentCalendarNotification.pm +otrs/scripts/DBUpdateTo6/Base.pm +otrs/scripts/DBUpdateTo6/CacheCleanup.pm +otrs/scripts/DBUpdateTo6/CleanGroupUserPermissionValue.pm +otrs/scripts/DBUpdateTo6/CreateAppointmentCalendarTables.pm +otrs/scripts/DBUpdateTo6/CreateFormDraftTables.pm +otrs/scripts/DBUpdateTo6/CreateTicketNumberCounterTables.pm +otrs/scripts/DBUpdateTo6/DatabaseBackupCheck.pm +otrs/scripts/DBUpdateTo6/DatabaseCharsetCheck.pm +otrs/scripts/DBUpdateTo6/DatabaseVersionCheck.pm +otrs/scripts/DBUpdateTo6/DropObjectLockState.pm +otrs/scripts/DBUpdateTo6/FrameworkVersionCheck.pm +otrs/scripts/DBUpdateTo6/InitializeDefaultCronjobs.pm +otrs/scripts/DBUpdateTo6/MigrateChatData.pm +otrs/scripts/DBUpdateTo6/MigrateArticleData.pm +otrs/scripts/DBUpdateTo6/MigrateArticleSearchIndex.pm +otrs/scripts/DBUpdateTo6/MigrateConfigEffectiveValues.pm +otrs/scripts/DBUpdateTo6/MigrateGenericAgentJobs.pm +otrs/scripts/DBUpdateTo6/MigratePackageRepositoryConfiguration.pm +otrs/scripts/DBUpdateTo6/MigratePossibleNextActions.pm +otrs/scripts/DBUpdateTo6/MigratePostMasterData.pm +otrs/scripts/DBUpdateTo6/MigrateProcessManagementData.pm +otrs/scripts/DBUpdateTo6/MigrateTicketAppointments.pm +otrs/scripts/DBUpdateTo6/MigrateTicketFrontendCustomerInfoZoom.pm +otrs/scripts/DBUpdateTo6/MigrateTicketMergedHistory.pm +otrs/scripts/DBUpdateTo6/MigrateTicketNotifications.pm +otrs/scripts/DBUpdateTo6/TaskConfig/MigrateArticleData.yml.dist +otrs/scripts/DBUpdateTo6/MigrateTicketStats.pm +otrs/scripts/DBUpdateTo6/MigrateTicketStorageModule.pm +otrs/scripts/DBUpdateTo6/MigrateTimeZoneConfiguration.pm +otrs/scripts/DBUpdateTo6/MigrateWebServiceConfiguration.pm +otrs/scripts/DBUpdateTo6/MigrateZoomExpandConfig.pm +otrs/scripts/DBUpdateTo6/PerlModulesCheck.pm +otrs/scripts/DBUpdateTo6/PerlVersionCheck.pm +otrs/scripts/DBUpdateTo6/PostArticleTableStructureChanges.pm +otrs/scripts/DBUpdateTo6/RebuildConfig.pm +otrs/scripts/DBUpdateTo6/SysConfigCheck.pm +otrs/scripts/DBUpdateTo6/UninstallMergedFeatureAddOns.pm +otrs/scripts/DBUpdateTo6/UpdateAppointmentCalendarFutureTasks.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/ArticleTableChangesPostRename.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/ArticleTableChangesPreRename.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/ArticleTableChangesRename.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/CommunicationLogs.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/DynamicFieldChanges.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/NewArticleSearchIndexTable.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/NewChatDataTable.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/NewCommunicationChannelTable.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/NewCustomerRelationTables.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/NewSysconfigTables.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/PasswordColumnChanges.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/RemoveMD5Columns.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/TicketDropCreateTimeUnix.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/TicketHistoryTableChanges.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/TicketIndexUpdate.pm +otrs/scripts/DBUpdateTo6/UpgradeDatabaseStructure/UpdateNotificationTables.pm otrs/scripts/apache2-httpd-plack-proxy.conf otrs/scripts/apache2-httpd.include.conf otrs/scripts/apache2-perl-startup.pl