pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/php-contao-manager



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Feb  4 08:41:26 UTC 2024

Added Files:
        pkgsrc/www/php-contao-manager: DESCR Makefile PLIST distinfo
        pkgsrc/www/php-contao-manager/files: README contao.conf

Log Message:
www/php-contao-manager: add package version 1.8.0

Contao Manager

Contao Manager is a tool for the Contao Managed Edition.  It fetch,
install and mange Contao Open Source CMS with Web GUI.

For more information, please refer Installation guide for Contao:

        https://to.contao.org/quickstart


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/www/php-contao-manager/DESCR \
    pkgsrc/www/php-contao-manager/Makefile \
    pkgsrc/www/php-contao-manager/PLIST \
    pkgsrc/www/php-contao-manager/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/php-contao-manager/files/README \
    pkgsrc/www/php-contao-manager/files/contao.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/www/php-contao-manager/DESCR
diff -u /dev/null pkgsrc/www/php-contao-manager/DESCR:1.1
--- /dev/null   Sun Feb  4 08:41:26 2024
+++ pkgsrc/www/php-contao-manager/DESCR Sun Feb  4 08:41:26 2024
@@ -0,0 +1,8 @@
+Contao Manager
+
+Contao Manager is a tool for the Contao Managed Edition.  It fetch,
+install and mange Contao Open Source CMS with Web GUI.
+
+For more information, please refer Installation guide for Contao:
+
+       https://to.contao.org/quickstart
Index: pkgsrc/www/php-contao-manager/Makefile
diff -u /dev/null pkgsrc/www/php-contao-manager/Makefile:1.1
--- /dev/null   Sun Feb  4 08:41:26 2024
+++ pkgsrc/www/php-contao-manager/Makefile      Sun Feb  4 08:41:26 2024
@@ -0,0 +1,78 @@
+# $NetBSD: Makefile,v 1.1 2024/02/04 08:41:26 taca Exp $
+#
+
+DISTNAME=      ${CM_NAME}.phar
+PKGNAME=       ${PHP_PKG_PREFIX}-${CM_NAME}-${CM_VERSION}
+CATEGORIES=    www
+MASTER_SITES=  https://download.contao.org/contao-manager/stable/
+DIST_SUBDIR=   ${CM_NAME}/${CM_VERSION}
+EXTRACT_SUFX=
+
+MAINTAINER=    taca%NetBSD.org@localhost
+HOMEPAGE=      https://contao.org/
+COMMENT=       Management tool for Contao Open Source CMS
+LICENSE=       gnu-lgpl-v3
+
+DEPENDS+=      ${PHP_PKG_PREFIX}-intl>=8.1.0:../../textproc/php-intl
+DEPENDS+=      ${PHP_PKG_PREFIX}-pdo_mysql>=8.1.0:../../databases/php-pdo_mysql
+DEPENDS+=      ${PHP_PKG_PREFIX}-zlib>=8.1.0:../../archivers/php-zlib
+DEPENDS+=      ${PHP_PKG_PREFIX}-curl>=8.1.0:../../www/php-curl
+DEPENDS+=      ${PHP_PKG_PREFIX}-mbstring>=8.1.0:../../converters/php-mbstring
+DEPENDS+=      ${PHP_PKG_PREFIX}-gd>=8.1.0:../../graphics/php-gd
+DEPENDS+=      ${PHP_PKG_PREFIX}-pecl-mcrypt>=1.0.1:../../security/php-pecl-mcrypt
+
+CM_NAME=       contao-manager
+CM_VERSION=    1.8.0
+NO_BUILD=      yes
+
+PHP_VERSIONS_ACCEPTED= 81 82 83
+
+CT_DOCDIR=     share/doc/${PHP_PKG_PREFIX}/${CM_NAME}
+CT_EGDIR=      share/examples/${PHP_PKG_PREFIX}/${CM_NAME}
+CT_WEBDIR=     share/${PHP_PKG_PREFIX}/contao
+CT_PUBDIR?=    public
+
+WRKSRC=                ${WRKDIR}
+BUILD_DEFS+=   APACHE_USER CT_DOCDIR CT_EGDIR CT_WEBDIR CT_PUBDIR
+PLIST_SUBST+=  CT_DOCDIR=${CT_DOCDIR} CT_EGDIR=${CT_EGDIR} \
+               DISTNAME=${DISTNAME}
+
+CONF_FILES+=           ${CT_EGDIR}/contao.conf \
+                       ${PKG_SYSCONFDIR}/contao.conf
+CONF_FILES_PERMS+=     ${CT_EGDIR}/${DISTNAME}.php \
+                       ${CT_WEBDIR}/${CT_PUBDIR}/${DISTNAME}.php \
+                       ${APACHE_USER} ${APACHE_GROUP} 0644
+OWN_DIRS_PERMS+=       ${CT_WEBDIR} ${APACHE_USER} ${APACHE_GROUP} 0770
+OWN_DIRS_PERMS+=       ${CT_WEBDIR}/${CT_PUBDIR} \
+                       ${APACHE_USER} ${APACHE_GROUP} 0770
+PKG_SYSCONFSUBDIR=     ${PHP_PKG_PREFIX}
+PRINT_PLIST_AWK+=      /${DISTNAME:S|.|\\.|g}/ \
+                       { sub(/${DISTNAME:S|.|\\.|g}/, "$${DISTNAME}"); }
+PRINT_PLIST_AWK+=      /^${CT_DOCDIR:S|/|\\/|g}/ \
+                       { sub(/^${CT_DOCDIR:S|/|\\/|g}/, "$${CT_DOCDIR}"); }
+PRINT_PLIST_AWK+=      /^${CT_EGDIR:S|/|\\/|g}/ \
+                       { sub(/^${CT_EGDIR:S|/|\\/|g}/, "$${CT_EGDIR}"); }
+
+PKG_GROUPS_VARS+=      APACHE_GROUP
+PKG_USERS_VARS+=       APACHE_USER
+
+SUBST_CLASSES+=                path
+SUBST_STAGE.path=      post-configure
+SUBST_MESSAGE.path=    Substituting path
+SUBST_FILES.path+=     ${WRKDIR}/README ${WRKDIR}/contao.conf
+SUBST_VARS.path+=      CT_WEBDIR CT_PUBDIR PREFIX PKG_SYSCONFDIR
+SUBST_VARS.path+=      PHP_PKG_PREFIX
+
+INSTALLATION_DIRS+=    ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/${CT_PUBDIR}
+
+pre-configure:
+       ${CP} ${FILESDIR}/README ${FILESDIR}/contao.conf ${WRKDIR}
+
+do-install:
+       ${INSTALL_DATA} ${WRKDIR}/${DISTNAME} \
+               ${DESTDIR}${PREFIX}/${CT_EGDIR}/${DISTNAME}.php
+       ${INSTALL_DATA} ${WRKDIR}/contao.conf ${DESTDIR}${PREFIX}/${CT_EGDIR}
+       ${INSTALL_DATA} ${WRKDIR}/README ${DESTDIR}${PREFIX}/${CT_DOCDIR}
+
+.include "../../lang/php/phpversion.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/php-contao-manager/PLIST
diff -u /dev/null pkgsrc/www/php-contao-manager/PLIST:1.1
--- /dev/null   Sun Feb  4 08:41:26 2024
+++ pkgsrc/www/php-contao-manager/PLIST Sun Feb  4 08:41:26 2024
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2024/02/04 08:41:26 taca Exp $
+${CT_DOCDIR}/README
+${CT_EGDIR}/${DISTNAME}.php
+${CT_EGDIR}/contao.conf
Index: pkgsrc/www/php-contao-manager/distinfo
diff -u /dev/null pkgsrc/www/php-contao-manager/distinfo:1.1
--- /dev/null   Sun Feb  4 08:41:26 2024
+++ pkgsrc/www/php-contao-manager/distinfo      Sun Feb  4 08:41:26 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/02/04 08:41:26 taca Exp $
+
+BLAKE2s (contao-manager/1.8.0/contao-manager.phar) = 99f91a2f03ae2779df454add7e41697ebaa00173bc300f87b9418676bf42b8d4
+SHA512 (contao-manager/1.8.0/contao-manager.phar) = 6c6be434046fbc7b9c231a615f05081998d9bab2b448f736d9a4dc1789826c84ad42164cd6c1231773869a2ca7095ddc7d5f1652292f31a456e273550833b6d5
+Size (contao-manager/1.8.0/contao-manager.phar) = 16190189 bytes

Index: pkgsrc/www/php-contao-manager/files/README
diff -u /dev/null pkgsrc/www/php-contao-manager/files/README:1.1
--- /dev/null   Sun Feb  4 08:41:26 2024
+++ pkgsrc/www/php-contao-manager/files/README  Sun Feb  4 08:41:26 2024
@@ -0,0 +1,28 @@
+$NetBSD: README,v 1.1 2024/02/04 08:41:26 taca Exp $
+
+1. First, create a database for Contao Open Source CMS.
+
+       # mysqladmin -p -u <administrator> create <dbname>.
+
+2. Next, create a user for accessing that database.
+
+       # mysql -p -u <administrator> <dbname>
+       mysql> grant select, insert, update, delete, create, drop,
+              index, alter, create temporary tables, lock tables on
+              <dbname>.* to '<dbuser>'@'localhost'
+              identified by '<dbpass>' ;
+
+3. Edit @PKG_SYSCONFDIR@/contao.conf and include from httpd.conf.
+
+       Include @PKG_SYSCONFDIR@/contao.conf
+
+   Configure propery VirualHost and related SSL configuration and then
+   reload or restart apache.
+
+5. Start setup from Contao Manager with URL:
+
+       https://www.example.org/contao-manager.phar.php
+
+For more information, please refer Installation guide for Contao:
+
+       https://to.contao.org/quickstart
Index: pkgsrc/www/php-contao-manager/files/contao.conf
diff -u /dev/null pkgsrc/www/php-contao-manager/files/contao.conf:1.1
--- /dev/null   Sun Feb  4 08:41:26 2024
+++ pkgsrc/www/php-contao-manager/files/contao.conf     Sun Feb  4 08:41:26 2024
@@ -0,0 +1,42 @@
+# $NetBSD: contao.conf,v 1.1 2024/02/04 08:41:26 taca Exp $
+
+#
+# If you want to use contao for whole web site, set your DocumentRoot to
+# "@PREFIX@/@CT_WEBDIR@/@CT_PUBDIR@".  (https://www.example.org/)
+#
+# If you want to use contao on sub directory, uncomment below line.
+# (https://www.example.org/subdir/)
+# 
+#Alias /subdir         @PREFIX@/@CT_WEBDIR@
+
+<Directory @PREFIX@/@CT_WEBDIR@>
+       DirectoryIndex  index.php index.html
+        Options                Indexes SymLinksIfOwnerMatch FollowSymLinks
+        AllowOverride  All
+       <FilesMatch \.php$>
+<IfModule proxy_fcgi_module>
+               SetHandler "proxy:unix:/var/run/php-fpm|fcgi://localhost"
+</IfModule>
+<IfModule php_module>
+               SetHandler application/x-httpd-php
+</IfModule>
+       </FilesMatch>
+<IfModule !mod_authz_core>
+        Order          allow,deny
+        Allow          from all
+</IfModule>
+<IfModule mod_authz_core>
+       Require         all granted
+</IfModule>
+</Directory>
+
+<Virtualhost _default_:80>
+       ServerName      www.example.org
+       DocumentRoot    @PREFIX@/@CT_WEBDIR@/@CT_PUBDIR@
+       ServerAdmin     webmaster%www.example.org@localhost
+</Virtualhost>
+
+<Virtualhost _default_:443>
+       ServerName      www.example.org
+       DocumentRoot    @PREFIX@/@CT_WEBDIR@/@CT_PUBDIR@
+</Virtualhost>



Home | Main Index | Thread Index | Old Index