Date: Fri, 19 Feb 2021 18:56:23 +0000 (UTC) From: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r566092 - in head/www: bareos-webui bareos-webui/files bareos19-webui bareos19-webui/files Message-ID: <202102191856.11JIuNQF021395@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: acm Date: Fri Feb 19 18:56:22 2021 New Revision: 566092 URL: https://svnweb.freebsd.org/changeset/ports/566092 Log: - Fix installation path of webui configuration files - Remove some obsolete files from pkg-list files - Modify pkg-message file PR: 253252 Reported by: vrurg at lflat.org Modified: head/www/bareos-webui/Makefile head/www/bareos-webui/files/pkg-message.in head/www/bareos-webui/pkg-plist head/www/bareos19-webui/Makefile head/www/bareos19-webui/files/pkg-message.in head/www/bareos19-webui/pkg-plist Modified: head/www/bareos-webui/Makefile ============================================================================== --- head/www/bareos-webui/Makefile Fri Feb 19 18:24:40 2021 (r566091) +++ head/www/bareos-webui/Makefile Fri Feb 19 18:56:22 2021 (r566092) @@ -3,6 +3,7 @@ PORTNAME= bareos DISTVERSIONPREFIX= Release/ DISTVERSION= 20.0.0 +PORTREVISION= 1 CATEGORIES?= www sysutils PKGNAMESUFFIX= -webui @@ -24,10 +25,11 @@ CMAKE_INSTALL_PREFIX= ${STAGEDIR} CMAKE_ARGS+= -DSHARE_INSTALL_PREFIX:PATH=${PREFIX}/www \ -DCMAKE_INSTALL_FULL_SYSCONFDIR:PATH=${PREFIX}/etc \ -Dsysconfdir=${PREFIX}/etc \ - -Dwebuiconfdir=${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX} + -Dwebuiconfdir=${PREFIX}/${ETCDIRWEBUI} SUB_FILES= pkg-message -PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} +SUB_LIST+= ETCDIRWEBUI=${PREFIX}/${ETCDIRWEBUI} +PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} ETCDIRWEBUI=${ETCDIRWEBUI} OPTIONS_DEFINE= MYSQL PGSQL OPTIONS_DEFAULT= PGSQL @@ -35,11 +37,17 @@ OPTIONS_DEFAULT= PGSQL MYSQL_USE= PHP=pdo_mysql PGSQL_USE= PHP=pdo_pgsql +ETCDIRWEBUI= etc/${PORTNAME}${PKGNAMESUFFIX} + post-extract: ${FIND} ${WRKSRC}/webui -name .gitignore -delete +pre-install: + ${FIND} ${WRKSRC}/webui -name *.in -delete + do-install: @${ECHO} "Installing in ${WWWDIR}" + @${MKDIR} ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI} @${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/console @${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile @${MKDIR} ${STAGEDIR}${BAREOSWEB_HOME} @@ -48,13 +56,13 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/webui/*.php ${STAGEDIR}${WWWDIR} ${INSTALL_DATA} ${WRKSRC}/webui/composer* ${STAGEDIR}${WWWDIR} ${INSTALL_DATA} ${WRKSRC}/webui/phpunit.xml ${STAGEDIR}${WWWDIR} - ${INSTALL_DATA} ${WRKSRC}/webui/install/directors.ini ${STAGEDIR}${ETCDIR}/directors.ini - ${INSTALL_DATA} ${WRKSRC}/webui/install/configuration.ini ${STAGEDIR}${ETCDIR}/configuration.ini + ${INSTALL_DATA} ${WRKSRC}/webui/install/directors.ini ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/directors.ini + ${INSTALL_DATA} ${WRKSRC}/webui/install/configuration.ini ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/configuration.ini ${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/console/admin.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/console/admin.conf.sample ${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-admin.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-admin.conf.sample ${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-limited.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-limited.conf.sample ${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-readonly.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-readonly.conf.sample - ${INSTALL_DATA} ${WRKSRC}/webui/install/apache/bareos-webui.conf ${STAGEDIR}${ETCDIR}/apache-bareos-webui.conf - ${INSTALL_DATA} ${WRKSRC}/webui/install/nginx/bareos-webui.conf ${STAGEDIR}${ETCDIR}/nginx-bareos-webui.conf + ${INSTALL_DATA} ${WRKSRC}/webui/install/apache/bareos-webui.conf ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/apache-bareos-webui.conf + ${INSTALL_DATA} ${WRKSRC}/webui/install/nginx/bareos-webui.conf ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI}/nginx-bareos-webui.conf .include <bsd.port.mk> Modified: head/www/bareos-webui/files/pkg-message.in ============================================================================== --- head/www/bareos-webui/files/pkg-message.in Fri Feb 19 18:24:40 2021 (r566091) +++ head/www/bareos-webui/files/pkg-message.in Fri Feb 19 18:56:22 2021 (r566092) @@ -3,13 +3,15 @@ message: <<EOM bareos webui was installed -Please note that everything has been installed in %%WWWDIR%%. You can -look bareos-webui installation/configuration instructions at: +Please note that everything has been installed in %%WWWDIR%% and +%%ETCDIRWEBUI%%. You can look bareos-webui installation/configuration +instructions at: https://docs.bareos.org/IntroductionAndTutorial/InstallingBareosWebui.html -1) Configuration files (webserver and webui) are stored at %%ETCDIR%% -2) This install some bareos-dir configuration samples at %%PREFIX%%/etc/bareos. +1) Configuration files are stored at %%ETCDIRWEBUI%% +2) Some webserver configuration samples are installed at %%ETCDIRWEBUI%% +3) This install some bareos-dir configuration samples at %%PREFIX%%/etc/bareos. Don't forget change permissions to user/group used by bareos-dir on server where it is installed EOM Modified: head/www/bareos-webui/pkg-plist ============================================================================== --- head/www/bareos-webui/pkg-plist Fri Feb 19 18:24:40 2021 (r566091) +++ head/www/bareos-webui/pkg-plist Fri Feb 19 18:56:22 2021 (r566092) @@ -1,18 +1,17 @@ @owner %%WWWOWN%% @group %%WWWGRP%% -%%ETCDIR%%/apache-bareos-webui.conf +%%ETCDIRWEBUI%%/apache-bareos-webui.conf @sample(,www,640) %%ETCDIR%%/bareos-dir.d/console/admin.conf.sample @sample(,www,640) %%ETCDIR%%/bareos-dir.d/profile/webui-admin.conf.sample @sample(,www,640) %%ETCDIR%%/bareos-dir.d/profile/webui-limited.conf.sample @sample(,www,640) %%ETCDIR%%/bareos-dir.d/profile/webui-readonly.conf.sample -@(,www,640) %%ETCDIR%%/configuration.ini -@(,www,640) %%ETCDIR%%/directors.ini -%%ETCDIR%%/nginx-bareos-webui.conf +@(,www,640) %%ETCDIRWEBUI%%/configuration.ini +@(,www,640) %%ETCDIRWEBUI%%/directors.ini +%%ETCDIRWEBUI%%/nginx-bareos-webui.conf %%WWWDIR%%/composer.json %%WWWDIR%%/config/application.config.php %%WWWDIR%%/config/autoload/README.md %%WWWDIR%%/config/autoload/global.php -%%WWWDIR%%/config/autoload/global.php.in %%WWWDIR%%/init_autoloader.php %%WWWDIR%%/module/Application/Module.php %%WWWDIR%%/module/Application/autoload_classmap.php @@ -64,9 +63,7 @@ %%WWWDIR%%/module/Application/view/layout/install.phtml %%WWWDIR%%/module/Application/view/layout/json.phtml %%WWWDIR%%/module/Application/view/layout/layout.phtml -%%WWWDIR%%/module/Application/view/layout/layout.phtml.in %%WWWDIR%%/module/Application/view/layout/login.phtml -%%WWWDIR%%/module/Application/view/layout/login.phtml.in %%WWWDIR%%/module/Application/view/partial/breadcrumb.phtml %%WWWDIR%%/module/Application/view/partial/paginator.phtml %%WWWDIR%%/module/Auth/Module.php Modified: head/www/bareos19-webui/Makefile ============================================================================== --- head/www/bareos19-webui/Makefile Fri Feb 19 18:24:40 2021 (r566091) +++ head/www/bareos19-webui/Makefile Fri Feb 19 18:56:22 2021 (r566092) @@ -3,7 +3,7 @@ PORTNAME= bareos DISTVERSIONPREFIX= Release/ DISTVERSION= 19.2.9 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES?= www sysutils PKGNAMESUFFIX= 19-webui @@ -25,11 +25,12 @@ CMAKE_INSTALL_PREFIX= ${STAGEDIR} CMAKE_ARGS+= -DSHARE_INSTALL_PREFIX:PATH=${PREFIX}/www \ -DCMAKE_INSTALL_FULL_SYSCONFDIR:PATH=${PREFIX}/etc \ -Dsysconfdir=${PREFIX}/etc \ - -Dwebuiconfdir=${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX:S/19//} + -Dwebuiconfdir=${PREFIX}/${ETCDIRWEBUI} SUB_FILES= pkg-message -PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} -ETCDIR= ${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX:S/19//} +SUB_LIST+= ETCDIRWEBUI=${PREFIX}/${ETCDIRWEBUI} +PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} ETCDIRWEBUI=${ETCDIRWEBUI} +ETCDIRWEBUI= etc/${PORTNAME}${PKGNAMESUFFIX:S/19//} OPTIONS_DEFINE= MYSQL PGSQL OPTIONS_DEFAULT= PGSQL @@ -40,8 +41,12 @@ PGSQL_USE= PHP=pdo_pgsql post-extract: ${FIND} ${WRKSRC}/webui -name .gitignore -delete +pre-install: + ${FIND} ${WRKSRC}/webui -name *.in -delete + do-install: @${ECHO} "Installing in ${WWWDIR}" + @${MKDIR} ${STAGEDIR}${PREFIX}/${ETCDIRWEBUI} @${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/console @${MKDIR} ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile @${MKDIR} ${STAGEDIR}${BAREOSWEB_HOME} @@ -50,13 +55,13 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/webui/*.php ${STAGEDIR}${WWWDIR} ${INSTALL_DATA} ${WRKSRC}/webui/composer* ${STAGEDIR}${WWWDIR} ${INSTALL_DATA} ${WRKSRC}/webui/phpunit.xml ${STAGEDIR}${WWWDIR} - ${INSTALL_DATA} ${WRKSRC}/webui/install/directors.ini ${STAGEDIR}${ETCDIR}/directors.ini - ${INSTALL_DATA} ${WRKSRC}/webui/install/configuration.ini ${STAGEDIR}${ETCDIR}/configuration.ini + ${INSTALL_DATA} ${WRKSRC}/webui/install/directors.ini ${STAGEDIR}/${PREFIX}/${ETCDIRWEBUI}/directors.ini + ${INSTALL_DATA} ${WRKSRC}/webui/install/configuration.ini ${STAGEDIR}/${PREFIX}/${ETCDIRWEBUI}/configuration.ini ${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/console/admin.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/console/admin.conf.sample ${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-admin.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-admin.conf.sample ${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-limited.conf.example ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-limited.conf.sample ${INSTALL_DATA} ${WRKSRC}/webui/install/bareos/bareos-dir.d/profile/webui-readonly.conf ${STAGEDIR}${ETCDIR}/bareos-dir.d/profile/webui-readonly.conf.sample - ${INSTALL_DATA} ${WRKSRC}/webui/install/apache/bareos-webui.conf ${STAGEDIR}${ETCDIR}/apache-bareos-webui.conf - ${INSTALL_DATA} ${WRKSRC}/webui/install/nginx/bareos-webui.conf ${STAGEDIR}${ETCDIR}/nginx-bareos-webui.conf + ${INSTALL_DATA} ${WRKSRC}/webui/install/apache/bareos-webui.conf ${STAGEDIR}/${PREFIX}/${ETCDIRWEBUI}/apache-bareos-webui.conf + ${INSTALL_DATA} ${WRKSRC}/webui/install/nginx/bareos-webui.conf ${STAGEDIR}/${PREFIX}/${ETCDIRWEBUI}/nginx-bareos-webui.conf .include <bsd.port.mk> Modified: head/www/bareos19-webui/files/pkg-message.in ============================================================================== --- head/www/bareos19-webui/files/pkg-message.in Fri Feb 19 18:24:40 2021 (r566091) +++ head/www/bareos19-webui/files/pkg-message.in Fri Feb 19 18:56:22 2021 (r566092) @@ -3,14 +3,16 @@ message: <<EOM bareos webui was installed -Please note that everything has been installed in %%WWWDIR%%. You can -look bareos-webui installation/configuration instructions at: +Please note that everything has been installed in %%WWWDIR%% and +%%ETCDIRWEBUI%%. You can look bareos-webui installation/configuration +instructions at: https://docs.bareos.org/IntroductionAndTutorial/InstallingBareosWebui.html -1) Configuration files (webserver and webui) are stored at %%ETCDIR%% -2) This install some bareos-dir configuration samples at %%PREFIX%%/etc/bareos. - Don't forget change permissions to user/group used by bareos-dir on server +1) Configuration files are stored at %%ETCDIRWEBUI%% +2) Some webserver configuration samples are installed at %%ETCDIRWEBUI%% +3) This install some bareos-dir configuration samples at %%PREFIX%%/etc/bareos. + Don't forget change permissions to user/group used by bareos-dir on server where it is installed EOM } Modified: head/www/bareos19-webui/pkg-plist ============================================================================== --- head/www/bareos19-webui/pkg-plist Fri Feb 19 18:24:40 2021 (r566091) +++ head/www/bareos19-webui/pkg-plist Fri Feb 19 18:56:22 2021 (r566092) @@ -1,13 +1,13 @@ @owner %%WWWOWN%% @group %%WWWGRP%% -%%ETCDIR%%/apache-bareos-webui.conf +%%ETCDIRWEBUI%%/apache-bareos-webui.conf @sample(,www,640) %%ETCDIR%%/bareos-dir.d/console/admin.conf.sample @sample(,www,640) %%ETCDIR%%/bareos-dir.d/profile/webui-admin.conf.sample @sample(,www,640) %%ETCDIR%%/bareos-dir.d/profile/webui-limited.conf.sample @sample(,www,640) %%ETCDIR%%/bareos-dir.d/profile/webui-readonly.conf.sample -@(,www,640) %%ETCDIR%%/configuration.ini -@(,www,640) %%ETCDIR%%/directors.ini -%%ETCDIR%%/nginx-bareos-webui.conf +@(,www,640) %%ETCDIRWEBUI%%/configuration.ini +@(,www,640) %%ETCDIRWEBUI%%/directors.ini +%%ETCDIRWEBUI%%/nginx-bareos-webui.conf %%WWWDIR%%/composer.json %%WWWDIR%%/config/application.config.php %%WWWDIR%%/config/autoload/README.md
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102191856.11JIuNQF021395>