Date: Wednesday, January 20, 2021 @ 22:15:41 Author: dvzrv Revision: 824020
archrelease: copy trunk to community-any Added: postfixadmin/repos/community-any/PKGBUILD (from rev 824019, postfixadmin/trunk/PKGBUILD) postfixadmin/repos/community-any/postfixadmin.install (from rev 824019, postfixadmin/trunk/postfixadmin.install) postfixadmin/repos/community-any/postfixadmin.sysusers (from rev 824019, postfixadmin/trunk/postfixadmin.sysusers) postfixadmin/repos/community-any/postfixadmin.tmpfiles (from rev 824019, postfixadmin/trunk/postfixadmin.tmpfiles) postfixadmin/repos/community-any/postfixadmin.uwsgi (from rev 824019, postfixadmin/trunk/postfixadmin.uwsgi) Deleted: postfixadmin/repos/community-any/PKGBUILD postfixadmin/repos/community-any/postfixadmin.install postfixadmin/repos/community-any/postfixadmin.sysusers postfixadmin/repos/community-any/postfixadmin.tmpfiles postfixadmin/repos/community-any/postfixadmin.uwsgi -----------------------+ PKGBUILD | 240 ++++++++++++++++++++++++------------------------ postfixadmin.install | 26 ++--- postfixadmin.sysusers | 2 postfixadmin.tmpfiles | 6 - postfixadmin.uwsgi | 54 +++++----- 5 files changed, 164 insertions(+), 164 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-01-20 22:15:13 UTC (rev 824019) +++ PKGBUILD 2021-01-20 22:15:41 UTC (rev 824020) @@ -1,120 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> -# Contributor: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Filip <fila pruda.com> - -pkgname=postfixadmin -pkgver=3.3.3 -pkgrel=1 -pkgdesc="Web based interface to manage Postfix mailboxes, virtual domains and aliases" -arch=('any') -license=('GPL2') -url="http://postfixadmin.sourceforge.net/" -backup=('etc/webapps/postfixadmin/config.inc.php' - 'etc/webapps/postfixadmin/config.local.php' - 'etc/webapps/postfixadmin/.htaccess' - 'etc/uwsgi/postfixadmin.ini') -depends=('php') -optdepends=('apache: run in webserver' - 'dovecot: interface local IMAP/POP3 server' - 'mariadb: use local MySQL server' - 'perl: for example scripts' - 'php-fpm: run in fastCGI process manager' - 'php-imap: use IMAP' - 'php-sqlite: use SQLite database backend' - 'php-pgsql: use PostgreSQL database backend' - 'postfix: interface local mail server' - 'postgresql: use local PostgreSQL server' - 'python: for example scripts' - 'uwsgi: run as application container') -source=("https://github.com/postfixadmin/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz" - "${pkgname}.sysusers" - "${pkgname}.tmpfiles" - "${pkgname}.uwsgi") -install="${pkgname}.install" -sha512sums=('363b91eb07f263a0f595e020725cacf9f9de058adaef3987efb3257d0e6fba526b075f8328e47763256278797ec946305d1e4c8ff5c55d77753f9ed72bfa4121' - 'dc61527dbec79a3b19c8fcbc424fbfbe483cccf99a606e566ea6cd624d46c70a6d87dd8d4da398fedf12b60cfd0cf364c351d6b826e6eee6b2ca8eac0d9efcbe' - '7e55c844be7b186d9eb568fe097632651c683582da83e0ee24cd6dd7c5a581fe05e5462174237f542ff8dc5d17a8ab651a77f0087a0c8df01d7b36c7722b1440' - 'd526f45b5904cfa2e0a7f9d31d88b92bc48c233b10cab927cc101d52ba6ba3724066e9528297c59ff1ab578038f68ddabef9cc9b8bb766b64c843cafcc8a25d9') -b2sums=('005c2a370b6fe0d09a8f1845ff9537b7be3629844983b8592cb43f119d6c8691730140161c993e9edd53a73174944aeded8b4e50472e97823edc39721deb7af4' - 'a73314d9befe48869ca121bddfb3af61e916f8458f388e13eed1a7ffd64e7ae75604dc3af92d3d4d5b97c30d3cb089e28cbf64c7e81e324f3ff85d75b15b5f0d' - '0e0170b08284dcfc5a68afd46a2e726d696905f3ddcd8158fed68c84fec039fabe60379005055e5fa1cc1fbb098c107b739d0e107f027bd7054d0e31b6e9cea6' - 'f34569a8c442b2354d2748e9c69065849386c51cd4c875cf27d96bf207618043e710248f1be2569a7132eefdff34628e34d8ebee960e14799c5648a590c1c74c') - -prepare(){ - mv -v "${pkgname}-${pkgname}-${pkgver}" "${pkgname}-${pkgver}" - cd "${pkgname}-${pkgver}" - # create empty local config (for overrides) - echo "<?php" > "config.local.php" - # create .htaccess file - echo "#Require all denied" > .htaccess - # remove unneeded executable bits - find . -executable -type f \ - -and -not -path "*scripts*" -exec chmod -c 644 {} \; - # remove symlinks - find . -type l -exec rm -v {} + - # remove unneeded debian directories - rm -rv ADDITIONS/squirrelmail-plugin/debian -} - -package() { - cd "${pkgname}-${pkgver}" - - # sysusers.d integration - install -vDm 644 ../${pkgname}.sysusers \ - "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf" - # tmpfiles.d integration - install -vDm 644 ../${pkgname}.tmpfiles \ - "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf" - # docs - install -vDm 644 {README.md,CHANGELOG.TXT} \ - -t "${pkgdir}/usr/share/doc/${pkgname}/" - install -vDm 644 DOCUMENTS/{README*,*.{txt,md}} \ - -t "${pkgdir}/usr/share/doc/${pkgname}/documents" - cp -av ADDITIONS VIRTUAL_VACATION \ - "${pkgdir}/usr/share/doc/${pkgname}" - - # webapp - find configs languages lib model public scripts templates tests \ - -type f \( \ - -iname "*.conf" -or \ - -iname "*.css" -or \ - -iname "*.eot" -or \ - -iname "*.gif" -or \ - -iname "*.ico" -or \ - -iname "*.js" -or \ - -iname "*.lang" -or \ - -iname "*.lib" -or \ - -iname "*.map" -or \ - -iname "*.php" -or \ - -iname "*.png" -or \ - -iname "*.sql" -or \ - -iname "*.svg" -or \ - -iname "*.tpl" -or \ - -iname "*.ttf" -or \ - -iname "*.woff" -or \ - -iname "*.woff2" \ - \) -exec install -vDm 644 {} "${pkgdir}/usr/share/webapps/${pkgname}/"{} \; - install -vDm 644 {common,functions.inc,index}.php phpunit.xml \ - -t "${pkgdir}/usr/share/webapps/${pkgname}" - ( - # adding weird symlinks - cd "${pkgdir}/usr/share/webapps/${pkgname}/public" - ln -sv users/password-change.php . - ln -sv users/password-recover.php . - ) - - # config - install -vDm 640 config.{inc,local}.php -t "${pkgdir}/etc/webapps/${pkgname}/" - ln -sv "/etc/webapps/${pkgname}/config.inc.php" \ - "${pkgdir}/usr/share/webapps/${pkgname}/config.inc.php" - ln -sv "/etc/webapps/${pkgname}/config.local.php" \ - "${pkgdir}/usr/share/webapps/${pkgname}/config.local.php" - install -vDm 644 .htaccess -t "${pkgdir}/etc/webapps/${pkgname}/" - ln -sv "/etc/webapps/${pkgname}/.htaccess" \ - "${pkgdir}/usr/share/webapps/${pkgname}/.htaccess" - install -vDm 644 "../${pkgname}.uwsgi" "${pkgdir}/etc/uwsgi/${pkgname}.ini" - # template caches - install -vdm 755 "${pkgdir}/var/cache/${pkgname}/templates_c" - ln -sv "/var/cache/${pkgname}/templates_c" \ - "${pkgdir}/usr/share/webapps/${pkgname}/" -} Copied: postfixadmin/repos/community-any/PKGBUILD (from rev 824019, postfixadmin/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-01-20 22:15:41 UTC (rev 824020) @@ -0,0 +1,120 @@ +# Maintainer: David Runge <dv...@archlinux.org> +# Contributor: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Filip <fila pruda.com> + +pkgname=postfixadmin +pkgver=3.3.4 +pkgrel=1 +pkgdesc="Web based interface to manage Postfix mailboxes, virtual domains and aliases" +arch=('any') +license=('GPL2') +url="http://postfixadmin.sourceforge.net/" +backup=('etc/webapps/postfixadmin/config.inc.php' + 'etc/webapps/postfixadmin/config.local.php' + 'etc/webapps/postfixadmin/.htaccess' + 'etc/uwsgi/postfixadmin.ini') +depends=('php') +optdepends=('apache: run in webserver' + 'dovecot: interface local IMAP/POP3 server' + 'mariadb: use local MySQL server' + 'perl: for example scripts' + 'php-fpm: run in fastCGI process manager' + 'php-imap: use IMAP' + 'php-sqlite: use SQLite database backend' + 'php-pgsql: use PostgreSQL database backend' + 'postfix: interface local mail server' + 'postgresql: use local PostgreSQL server' + 'python: for example scripts' + 'uwsgi: run as application container') +source=("https://github.com/postfixadmin/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz" + "${pkgname}.sysusers" + "${pkgname}.tmpfiles" + "${pkgname}.uwsgi") +install="${pkgname}.install" +sha512sums=('7891f013be87785599898042cf1590e0e121eebfcb55bfbc90dab9c257d2cb590639fbb155a0b6246d2848cecb8812707c31a6df478bb2866a17c25d9f387070' + 'dc61527dbec79a3b19c8fcbc424fbfbe483cccf99a606e566ea6cd624d46c70a6d87dd8d4da398fedf12b60cfd0cf364c351d6b826e6eee6b2ca8eac0d9efcbe' + '7e55c844be7b186d9eb568fe097632651c683582da83e0ee24cd6dd7c5a581fe05e5462174237f542ff8dc5d17a8ab651a77f0087a0c8df01d7b36c7722b1440' + 'd526f45b5904cfa2e0a7f9d31d88b92bc48c233b10cab927cc101d52ba6ba3724066e9528297c59ff1ab578038f68ddabef9cc9b8bb766b64c843cafcc8a25d9') +b2sums=('bc3fb8c61b386a1ad182fb602e95a74aa8671c62dbf8e1cdb5f7e26bdfa974b831cef9e6723f816278a6083aaf98eb6f79bb783efb9cc81b350625a21cd38f5f' + 'a73314d9befe48869ca121bddfb3af61e916f8458f388e13eed1a7ffd64e7ae75604dc3af92d3d4d5b97c30d3cb089e28cbf64c7e81e324f3ff85d75b15b5f0d' + '0e0170b08284dcfc5a68afd46a2e726d696905f3ddcd8158fed68c84fec039fabe60379005055e5fa1cc1fbb098c107b739d0e107f027bd7054d0e31b6e9cea6' + 'f34569a8c442b2354d2748e9c69065849386c51cd4c875cf27d96bf207618043e710248f1be2569a7132eefdff34628e34d8ebee960e14799c5648a590c1c74c') + +prepare(){ + mv -v "${pkgname}-${pkgname}-${pkgver}" "${pkgname}-${pkgver}" + cd "${pkgname}-${pkgver}" + # create empty local config (for overrides) + echo "<?php" > "config.local.php" + # create .htaccess file + echo "#Require all denied" > .htaccess + # remove unneeded executable bits + find . -executable -type f \ + -and -not -path "*scripts*" -exec chmod -c 644 {} \; + # remove symlinks + find . -type l -exec rm -v {} + + # remove unneeded debian directories + rm -rv ADDITIONS/squirrelmail-plugin/debian +} + +package() { + cd "${pkgname}-${pkgver}" + + # sysusers.d integration + install -vDm 644 ../${pkgname}.sysusers \ + "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf" + # tmpfiles.d integration + install -vDm 644 ../${pkgname}.tmpfiles \ + "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf" + # docs + install -vDm 644 {README.md,CHANGELOG.TXT} \ + -t "${pkgdir}/usr/share/doc/${pkgname}/" + install -vDm 644 DOCUMENTS/{README*,*.{txt,md}} \ + -t "${pkgdir}/usr/share/doc/${pkgname}/documents" + cp -av ADDITIONS VIRTUAL_VACATION \ + "${pkgdir}/usr/share/doc/${pkgname}" + + # webapp + find configs languages lib model public scripts templates tests \ + -type f \( \ + -iname "*.conf" -or \ + -iname "*.css" -or \ + -iname "*.eot" -or \ + -iname "*.gif" -or \ + -iname "*.ico" -or \ + -iname "*.js" -or \ + -iname "*.lang" -or \ + -iname "*.lib" -or \ + -iname "*.map" -or \ + -iname "*.php" -or \ + -iname "*.png" -or \ + -iname "*.sql" -or \ + -iname "*.svg" -or \ + -iname "*.tpl" -or \ + -iname "*.ttf" -or \ + -iname "*.woff" -or \ + -iname "*.woff2" \ + \) -exec install -vDm 644 {} "${pkgdir}/usr/share/webapps/${pkgname}/"{} \; + install -vDm 644 {common,functions.inc,index}.php phpunit.xml \ + -t "${pkgdir}/usr/share/webapps/${pkgname}" + ( + # adding weird symlinks + cd "${pkgdir}/usr/share/webapps/${pkgname}/public" + ln -sv users/password-change.php . + ln -sv users/password-recover.php . + ) + + # config + install -vDm 640 config.{inc,local}.php -t "${pkgdir}/etc/webapps/${pkgname}/" + ln -sv "/etc/webapps/${pkgname}/config.inc.php" \ + "${pkgdir}/usr/share/webapps/${pkgname}/config.inc.php" + ln -sv "/etc/webapps/${pkgname}/config.local.php" \ + "${pkgdir}/usr/share/webapps/${pkgname}/config.local.php" + install -vDm 644 .htaccess -t "${pkgdir}/etc/webapps/${pkgname}/" + ln -sv "/etc/webapps/${pkgname}/.htaccess" \ + "${pkgdir}/usr/share/webapps/${pkgname}/.htaccess" + install -vDm 644 "../${pkgname}.uwsgi" "${pkgdir}/etc/uwsgi/${pkgname}.ini" + # template caches + install -vdm 755 "${pkgdir}/var/cache/${pkgname}/templates_c" + ln -sv "/var/cache/${pkgname}/templates_c" \ + "${pkgdir}/usr/share/webapps/${pkgname}/" +} Deleted: postfixadmin.install =================================================================== --- postfixadmin.install 2021-01-20 22:15:13 UTC (rev 824019) +++ postfixadmin.install 2021-01-20 22:15:41 UTC (rev 824020) @@ -1,13 +0,0 @@ -post_upgrade() { - local new_package_version="$1" - local old_package_version="$2" - if [ $(vercmp "${old_package_version}" "3.2.0") -le 0 ]; then -cat <<EOF -The webapp now needs to be run as its own user/group: postfixadmin/postfixadmin. -The webapp is now installed to /usr/share/webapps/postfixadmin. -It's encouraged to move configuration to config.local.php as the default -configuration in config.inc.php will not be backed up anymore in a future -release. -EOF - fi -} Copied: postfixadmin/repos/community-any/postfixadmin.install (from rev 824019, postfixadmin/trunk/postfixadmin.install) =================================================================== --- postfixadmin.install (rev 0) +++ postfixadmin.install 2021-01-20 22:15:41 UTC (rev 824020) @@ -0,0 +1,13 @@ +post_upgrade() { + local new_package_version="$1" + local old_package_version="$2" + if [ $(vercmp "${old_package_version}" "3.2.0") -le 0 ]; then +cat <<EOF +The webapp now needs to be run as its own user/group: postfixadmin/postfixadmin. +The webapp is now installed to /usr/share/webapps/postfixadmin. +It's encouraged to move configuration to config.local.php as the default +configuration in config.inc.php will not be backed up anymore in a future +release. +EOF + fi +} Deleted: postfixadmin.sysusers =================================================================== --- postfixadmin.sysusers 2021-01-20 22:15:13 UTC (rev 824019) +++ postfixadmin.sysusers 2021-01-20 22:15:41 UTC (rev 824020) @@ -1 +0,0 @@ -u postfixadmin - "PostfixAdmin user" - Copied: postfixadmin/repos/community-any/postfixadmin.sysusers (from rev 824019, postfixadmin/trunk/postfixadmin.sysusers) =================================================================== --- postfixadmin.sysusers (rev 0) +++ postfixadmin.sysusers 2021-01-20 22:15:41 UTC (rev 824020) @@ -0,0 +1 @@ +u postfixadmin - "PostfixAdmin user" - Deleted: postfixadmin.tmpfiles =================================================================== --- postfixadmin.tmpfiles 2021-01-20 22:15:13 UTC (rev 824019) +++ postfixadmin.tmpfiles 2021-01-20 22:15:41 UTC (rev 824020) @@ -1,3 +0,0 @@ -z /etc/webapps/postfixadmin/*.php 0640 postfixadmin postfixadmin -Z %C/postfixadmin - postfixadmin postfixadmin -d %t/postfixadmin 755 postfixadmin postfixadmin Copied: postfixadmin/repos/community-any/postfixadmin.tmpfiles (from rev 824019, postfixadmin/trunk/postfixadmin.tmpfiles) =================================================================== --- postfixadmin.tmpfiles (rev 0) +++ postfixadmin.tmpfiles 2021-01-20 22:15:41 UTC (rev 824020) @@ -0,0 +1,3 @@ +z /etc/webapps/postfixadmin/*.php 0640 postfixadmin postfixadmin +Z %C/postfixadmin - postfixadmin postfixadmin +d %t/postfixadmin 755 postfixadmin postfixadmin Deleted: postfixadmin.uwsgi =================================================================== --- postfixadmin.uwsgi 2021-01-20 22:15:13 UTC (rev 824019) +++ postfixadmin.uwsgi 2021-01-20 22:15:41 UTC (rev 824020) @@ -1,27 +0,0 @@ -[uwsgi] -procname-master = postfixadmin -master = true -plugins = php -socket = /run/postfixadmin/%n.sock -stats = /run/postfixadmin/%n-stats.sock -uid = postfixadmin -gid = postfixadmin -processes = 10 -cheaper = 2 -cheaper-step = 1 -idle = 120 -die-on-idle = true -touch-reload = %p -php-allowed-ext = .php -php-docroot = /usr/share/webapps/postfixadmin/public -php-index = index.php -php-set = date.timezone=Europe/Berlin -php-set = open_basedir=/tmp/:/usr/share/webapps/postfixadmin/:/etc/webapps/postfixadmin/:/usr/bin/doveadm:/var/cache/postfixadmin -php-set = session.save_path=/tmp -php-set = session.gc_maxlifetime 21600 -php-set = session.gc_divisor 500 -php-set = session.gc_probability 1 -php-set = extension=imap -php-set = extension=pdo_mysql -php-set = extension=pdo_pgsql -php-set = extension=pdo_sqlite Copied: postfixadmin/repos/community-any/postfixadmin.uwsgi (from rev 824019, postfixadmin/trunk/postfixadmin.uwsgi) =================================================================== --- postfixadmin.uwsgi (rev 0) +++ postfixadmin.uwsgi 2021-01-20 22:15:41 UTC (rev 824020) @@ -0,0 +1,27 @@ +[uwsgi] +procname-master = postfixadmin +master = true +plugins = php +socket = /run/postfixadmin/%n.sock +stats = /run/postfixadmin/%n-stats.sock +uid = postfixadmin +gid = postfixadmin +processes = 10 +cheaper = 2 +cheaper-step = 1 +idle = 120 +die-on-idle = true +touch-reload = %p +php-allowed-ext = .php +php-docroot = /usr/share/webapps/postfixadmin/public +php-index = index.php +php-set = date.timezone=Europe/Berlin +php-set = open_basedir=/tmp/:/usr/share/webapps/postfixadmin/:/etc/webapps/postfixadmin/:/usr/bin/doveadm:/var/cache/postfixadmin +php-set = session.save_path=/tmp +php-set = session.gc_maxlifetime 21600 +php-set = session.gc_divisor 500 +php-set = session.gc_probability 1 +php-set = extension=imap +php-set = extension=pdo_mysql +php-set = extension=pdo_pgsql +php-set = extension=pdo_sqlite