From 7014a5a3ea0feffab9701fdd6b64cc7667a985af Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 30 Jun 2019 17:36:28 +0100 Subject: gentoo resync : 30.06.2019 --- www-apps/Manifest.gz | Bin 15154 -> 15142 bytes www-apps/gitea/Manifest | 2 + www-apps/gitea/gitea-1.8.3.ebuild | 104 ++++++++++++++++++++++++++ www-apps/grafana-bin/Manifest | 2 + www-apps/grafana-bin/grafana-bin-6.2.5.ebuild | 71 ++++++++++++++++++ www-apps/karma-bin/Manifest | 2 + www-apps/karma-bin/karma-bin-0.39.ebuild | 39 ++++++++++ www-apps/phpBB/Manifest | 9 ++- www-apps/phpBB/files/permissions | 19 +++++ www-apps/phpBB/files/postinstall-en.txt | 30 +++----- www-apps/phpBB/metadata.xml | 11 +++ www-apps/phpBB/phpBB-3.1.10-r1.ebuild | 42 ----------- www-apps/phpBB/phpBB-3.2.7.ebuild | 50 +++++++++++++ 13 files changed, 316 insertions(+), 65 deletions(-) create mode 100644 www-apps/gitea/gitea-1.8.3.ebuild create mode 100644 www-apps/grafana-bin/grafana-bin-6.2.5.ebuild create mode 100644 www-apps/karma-bin/karma-bin-0.39.ebuild create mode 100755 www-apps/phpBB/files/permissions delete mode 100644 www-apps/phpBB/phpBB-3.1.10-r1.ebuild create mode 100644 www-apps/phpBB/phpBB-3.2.7.ebuild (limited to 'www-apps') diff --git a/www-apps/Manifest.gz b/www-apps/Manifest.gz index 95f4ee8e53a1..c4ddf822627d 100644 Binary files a/www-apps/Manifest.gz and b/www-apps/Manifest.gz differ diff --git a/www-apps/gitea/Manifest b/www-apps/gitea/Manifest index a805e02658ed..18f53272212b 100644 --- a/www-apps/gitea/Manifest +++ b/www-apps/gitea/Manifest @@ -6,6 +6,8 @@ AUX gitea.service-r1 557 BLAKE2B 0d255654da33fb9155a6bc29896ab164597667c252b680e AUX gitea.service-r2 734 BLAKE2B 84825b8198e9495e2803ca3702e6a631fb269c5c8fb4ff4246465a5bd7f7d796b0c3eaea72d0a25cef4f5d38d27a6c99a1b6d41f489749bef322a4ac93cfdd12 SHA512 287670f196bf6353dbdeb6ac37b4ac73693e16a6a3a83f57e7179ccb64364d1d85950a2ddd0a77238a3d218afdaacc8ba849c2810a7ba1238c7277074d1ebe39 DIST gitea-1.8.0.tar.gz 24268907 BLAKE2B b46a17733fc7bd0f228620bdfadf0d596ea56fca6e685afab7734e794c1f87c5e004529ca3d69e907d516bcb83563565b1d8c32501f1c2c0f9295ca028d96ad0 SHA512 eebbe2f77ed2e4c3562f48a6fa647e6f2a0492c5b6ea4f13542a5ef82e94a357a8d53897aa013107b5f735d2aff9d719893b5724de44831c43998c2e9c6e78d7 DIST gitea-1.8.2.tar.gz 24321492 BLAKE2B 48a718edd1d607e4f8ee2a301bdd907f2a233be515fa327eac9cfb50cdbc024e5f90e6e86e95056c256cb35497c5a3b2ab5fa4a068a22b28c1a3d2b94780da7a SHA512 23ef63c1cea276800a19fe04b87b4baa421e1202260b4ec55614a77ee54c0bc9e5db6dad7f98791c4d902b2d4cb15f4facc4d201631cf2ef7cefd0ff996753be +DIST gitea-1.8.3.tar.gz 24320679 BLAKE2B 9ef901ef7e1cb6ffa9a2aa082798b7a18ac2a6fdb4379082df3f942d767a27fd3915c7a4d2cb1af6f502a8cde3c1c98557c42d4c0ef60be7bdad78d8931035e0 SHA512 f6019fbfc056e4c7176222ccaca1cf638bd1f52323de54fcddc618129aeb778674f6e305de60e7d17b69505ad65439445ee6b5e368afdf0a6fbace7407acb495 EBUILD gitea-1.8.0.ebuild 2441 BLAKE2B 017544ba40e11c49b62ac5657c59c836cacbe8c57164c0549bc34609072d3bd3aae5834c0166f600d38cfebc7805a0ad63bac57b66daa7df1dfde5c74d047f9c SHA512 32792428fe7f93f597c22134a9d946b31eed9424c065c8fc0f74896a6c6c3283df0c7d29da93e23c70f841498f6d9dc5cf1740aeae247c6c5583aedcd128150e EBUILD gitea-1.8.2.ebuild 3179 BLAKE2B 43582669d2e25936f7384f63834baa477ed276b21a0ec3564912ad8badd38cd916c847201855c4b78cf7961fdde9dad55278e1c3d684635b735525182d3a62fd SHA512 1c71d2564ee38ae631e98911cd548f0b72a9ab779a88d7609c48c2683ec19429ce909c224c1d4cea50798bb708eb8bfc4fbaa24cc5f0fb57a8999f2e69d60df9 +EBUILD gitea-1.8.3.ebuild 3179 BLAKE2B 43582669d2e25936f7384f63834baa477ed276b21a0ec3564912ad8badd38cd916c847201855c4b78cf7961fdde9dad55278e1c3d684635b735525182d3a62fd SHA512 1c71d2564ee38ae631e98911cd548f0b72a9ab779a88d7609c48c2683ec19429ce909c224c1d4cea50798bb708eb8bfc4fbaa24cc5f0fb57a8999f2e69d60df9 MISC metadata.xml 563 BLAKE2B 00090c9965433ee21c5ebb4cd7ff83f3c16a870acd9da92842a53349a4bf38dc1239be17ec7545e5b0a44c07e2c93d3dbff599b37fcd4366a2ff41952cb513cb SHA512 fbf0fca0af8b73494e20a965f99f101e7ed08927b8b303189f69586e59b57bdc07781353b9bbd9ba904a53efa85fa91e4a76341ca2083cf9f6769448de700222 diff --git a/www-apps/gitea/gitea-1.8.3.ebuild b/www-apps/gitea/gitea-1.8.3.ebuild new file mode 100644 index 000000000000..bdefa9b63520 --- /dev/null +++ b/www-apps/gitea/gitea-1.8.3.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit golang-vcs-snapshot systemd user + +EGO_PN="code.gitea.io/gitea" + +DESCRIPTION="A painless self-hosted Git service" +HOMEPAGE="https://gitea.io" +SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="pam sqlite" + +COMMON_DEPEND="pam? ( sys-libs/pam )" +DEPEND="${COMMON_DEPEND} + dev-go/go-bindata" +RDEPEND="${COMMON_DEPEND} + dev-vcs/git" + +DOCS=( custom/conf/app.ini.sample CONTRIBUTING.md README.md ) +S="${WORKDIR}/${P}/src/${EGO_PN}" + +pkg_setup() { + enewgroup git + enewuser git -1 /bin/bash /var/lib/gitea git +} + +gitea_make() { + local my_tags=( + bindata + $(usev pam) + $(usex sqlite 'sqlite sqlite_unlock_notify' '') + ) + local my_makeopt=( + DRONE_TAG=${PV} + TAGS="${my_tags[@]}" + ) + GOPATH=${WORKDIR}/${P}:$(get_golibdir_gopath) emake "${my_makeopt[@]}" "$@" +} + +src_prepare() { + default + sed -i \ + -e "s#^RUN_MODE = dev#RUN_MODE = prod#" \ + -e "s#^ROOT =#ROOT = ${EPREFIX}/var/lib/gitea/gitea-repositories#" \ + -e "s#^ROOT_PATH =#ROOT_PATH = ${EPREFIX}/var/log/gitea#" \ + -e "s#^APP_DATA_PATH = data#APP_DATA_PATH = ${EPREFIX}/var/lib/gitea/data#" \ + -e "s#^HTTP_ADDR = 0.0.0.0#HTTP_ADDR = 127.0.0.1#" \ + -e "s#^MODE = console#MODE = file#" \ + -e "s#^LEVEL = Trace#LEVEL = Info#" \ + -e "s#^LOG_SQL = true#LOG_SQL = false#" \ + -e "s#^DISABLE_ROUTER_LOG = false#DISABLE_ROUTER_LOG = true#" \ + -e "s#^APP_ID =#;APP_ID =#" \ + -e "s#^TRUSTED_FACETS =#;TRUSTED_FACETS =#" \ + custom/conf/app.ini.sample || die + if use sqlite ; then + sed -i -e "s#^DB_TYPE = .*#DB_TYPE = sqlite3#" custom/conf/app.ini.sample || die + fi + + gitea_make generate +} + +src_compile() { + gitea_make build +} + +src_test() { + gitea_make test +} + +src_install() { + dobin gitea + + einstalldocs + + newconfd "${FILESDIR}"/gitea.confd-r1 gitea + newinitd "${FILESDIR}"/gitea.initd-r3 gitea + systemd_newunit "${FILESDIR}"/gitea.service-r2 gitea.service + + insinto /etc/gitea + newins custom/conf/app.ini.sample app.ini + fowners root:git /etc/gitea/{,app.ini} + fperms g+w,o-rwx /etc/gitea/{,app.ini} + + diropts -m0750 -o git -g git + keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data + keepdir /var/log/gitea +} + +pkg_postinst() { + if [[ -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then + ewarn "The configuration path has been changed to ${EROOT}/etc/gitea/app.ini." + ewarn "Please move your configuration from ${EROOT}/var/lib/gitea/conf/app.ini" + ewarn "and adapt the gitea-repositories hooks and ssh authorized_keys." + ewarn "Depending on your configuration you should run something like:" + ewarn "sed -i -e 's#${EROOT}/var/lib/gitea/conf/app.ini#${EROOT}/etc/gitea/app.ini#' \\" + ewarn " /var/lib/gitea/gitea-repositories/*/*/hooks/*/* \\" + ewarn " /var/lib/gitea/.ssh/authorized_keys" + fi +} diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest index 077df07aadc3..1ec2531d8e7a 100644 --- a/www-apps/grafana-bin/Manifest +++ b/www-apps/grafana-bin/Manifest @@ -7,10 +7,12 @@ DIST grafana-bin-6.1.6.tar.gz 56569580 BLAKE2B b8122e5ec6104ba211d7d331fd99e3caa DIST grafana-bin-6.2.1.tar.gz 58508207 BLAKE2B 5f543b105768f5151fe868b43927984a9dac4a0987192c2d7d6b2b1b0a1d636fbc4beb898d55a707f5d220785a7c56b0163f834e27293f67b55acaf7c54811a0 SHA512 9a35e953686f8ad0d75d3e2fdfb713fe6cac95ffc56ec4ee78bbbc6d753611675b5bf48e45652cc8a76af38e2358754a415a5b09f660e3a5508a2434b882ec91 DIST grafana-bin-6.2.2.tar.gz 58512782 BLAKE2B 3c837f1477890995e93d15d86c744e1158b6167b8cde7b101ee579befb0c8577a70fd0fb722999ef30e823f21d89ee525eb20d147327bbc4bbbffc774b67157f SHA512 24a1f685a76b8bdf4876f498daf43ae316a8e6fc89dcc9d3aed67cfd360baff1cb48c1118753afcb845ddebbbebfa195d369036786e09b8ca00d78cb1f60e6f2 DIST grafana-bin-6.2.4.tar.gz 58513773 BLAKE2B 1f8e82de6f57ba35f96eb71220634a024574abe30d7389d5f39fadf5c9938b9f7ccf21b48787b068cc187c244cd9707538c5958a3292b683f8cb855898abdb12 SHA512 bf3ecf454057fc902df5bafcc227c917b1a16fffde4bf6d5c47e2a6f815bfbe21b5956acdb46549db77e2a0497c268544c87a69df88ec0971ca6b188d6cac77c +DIST grafana-bin-6.2.5.tar.gz 58512371 BLAKE2B 6b56930c620e25948a6f1d662c7fb5632d3ca0a6476b605e9623d9b96e1c29e400bb3e17613e32aaf79bda5f6e7451867d0a14b7f9c1f4d47e8f92c13a226311 SHA512 b260616f0df47ce97084648d392a405b78ada4ff3aa8c8414da463ad865549e3118ab084cbba6edb7e427109dc19a5ab1ecc723d28a564e98d654df4dbb92b64 EBUILD grafana-bin-5.4.3-r1.ebuild 1969 BLAKE2B f90d9c8c479edfd60eff8a4c6823fad5ba9683411a6e9b4e137a77990f528d6184ecf0f917520209dd4497e1cfef9198fe305bb76a9c6c4911cd09204481a69a SHA512 d674745ae0614747c945e96990c17c89c1c7e027e909c92a8e08a898d9567d531900e56ea5f2714128549b2094fdc568da3949b6578fd9bb84f3d78c4b339a10 EBUILD grafana-bin-5.4.4.ebuild 1944 BLAKE2B be7426448610d8b2875bd13a8f37d7c771193e236f572699224dced158835b1fb050573fc425e1d1c8ff4b216aab730ceccd666052c3467d86cca0b88a57fae2 SHA512 ae168b08b5f7c14b0f54d94be5e10fb9ef2c2c4875c8db7b2299cf087734687dc448d08b5f4fdd06ad2c219c29dd5a82802e7e2f68dd0be0daf698fdded24ccd EBUILD grafana-bin-6.1.6.ebuild 1971 BLAKE2B f8d887e76e958c29296e441bb7165590d910ec9e43c717244e264bd266abdf4874c5ac63c789a61afdf81c5602ac2411cf992507d03b3a941a28a870a3f00051 SHA512 cad905e8e9aa9a8f02431b6fe3c0f780cba7c2ddf3db9477a48bbc0fae8f3b800407e95a926b203b34414be2386bcc21c6b590d9657266f709be95a5e6ed1305 EBUILD grafana-bin-6.2.1.ebuild 1969 BLAKE2B e90820bbe240031ddf9556073f2b1947730d4d6b667257a0015b61db350f3b78b74f416c9b47cd272296e6fef023945f15e896680f809e661b3a6adc59795297 SHA512 1d7ced95a186b315fbda5dd7bd2a1ccb45daa5a4706fe36d7f35853747fc51350ffaaa199a326bc6998e7299bb9104319fc58ae606d0429ce0c4147581e6ce2a EBUILD grafana-bin-6.2.2.ebuild 1969 BLAKE2B e90820bbe240031ddf9556073f2b1947730d4d6b667257a0015b61db350f3b78b74f416c9b47cd272296e6fef023945f15e896680f809e661b3a6adc59795297 SHA512 1d7ced95a186b315fbda5dd7bd2a1ccb45daa5a4706fe36d7f35853747fc51350ffaaa199a326bc6998e7299bb9104319fc58ae606d0429ce0c4147581e6ce2a EBUILD grafana-bin-6.2.4.ebuild 1969 BLAKE2B e90820bbe240031ddf9556073f2b1947730d4d6b667257a0015b61db350f3b78b74f416c9b47cd272296e6fef023945f15e896680f809e661b3a6adc59795297 SHA512 1d7ced95a186b315fbda5dd7bd2a1ccb45daa5a4706fe36d7f35853747fc51350ffaaa199a326bc6998e7299bb9104319fc58ae606d0429ce0c4147581e6ce2a +EBUILD grafana-bin-6.2.5.ebuild 1969 BLAKE2B e90820bbe240031ddf9556073f2b1947730d4d6b667257a0015b61db350f3b78b74f416c9b47cd272296e6fef023945f15e896680f809e661b3a6adc59795297 SHA512 1d7ced95a186b315fbda5dd7bd2a1ccb45daa5a4706fe36d7f35853747fc51350ffaaa199a326bc6998e7299bb9104319fc58ae606d0429ce0c4147581e6ce2a MISC metadata.xml 416 BLAKE2B ff5bdf7e202aa96bbf615df2f86c6542bb7d291e6d564dfac683a2e54002380dd80ef3f1ca0b6c1f398de0115e26398903256b9d64e353127f25c3e97e5b21c8 SHA512 db2cbd25cf9b21664db93dc8f9719bf7f9a2fd632c5231d0f296bb32f3f6af3e08307c8a662081cc68f33638d70f6512094fad76073a5de4ceba02eeb3d1188b diff --git a/www-apps/grafana-bin/grafana-bin-6.2.5.ebuild b/www-apps/grafana-bin/grafana-bin-6.2.5.ebuild new file mode 100644 index 000000000000..ed520bacd97a --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-6.2.5.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit user systemd + +MY_PN=${PN/-bin/} +MY_PV=${PV/_beta/-beta} +S=${WORKDIR}/${MY_PN}-${MY_PV} + +DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB" +HOMEPAGE="https://grafana.org" +SRC_URI="https://dl.grafana.com/oss/release/grafana-${PV}.linux-amd64.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="${DEPEND} + media-libs/fontconfig" + +QA_EXECSTACK="usr/share/grafana/tools/phantomjs/phantomjs" +QA_PREBUILT="usr/bin/grafana-* ${QA_EXECSTACK}" +QA_PRESTRIPPED=${QA_PREBUILT} + +pkg_setup() { + enewgroup grafana + enewuser grafana -1 -1 /usr/share/grafana grafana +} + +src_install() { + keepdir /etc/grafana + insinto /etc/grafana + newins "${S}"/conf/sample.ini grafana.ini + rm "${S}"/conf/sample.ini || die + + # Frontend assets + insinto /usr/share/${MY_PN} + doins -r public conf + + dobin bin/grafana-cli + dobin bin/grafana-server + + exeinto /usr/share/grafana/tools/phantomjs + doexe tools/phantomjs/phantomjs + + insinto /usr/share/grafana/tools/phantomjs + doins tools/phantomjs/render.js + + newconfd "${FILESDIR}"/grafana.confd grafana + newinitd "${FILESDIR}"/grafana.initd.3 grafana + systemd_newunit "${FILESDIR}"/grafana.service grafana.service + + keepdir /var/{lib,log}/grafana + keepdir /var/lib/grafana/{dashboards,plugins} + fowners grafana:grafana /var/{lib,log}/grafana + fowners grafana:grafana /var/lib/grafana/{dashboards,plugins} + fperms 0750 /var/{lib,log}/grafana + fperms 0750 /var/lib/grafana/{dashboards,plugins} +} + +postinst() { + elog "${PN} has built-in log rotation. Please see [log.file] section of" + elog "/etc/grafana/grafana.ini for related settings." + elog + elog "You may add your own custom configuration for app-admin/logrotate if you" + elog "wish to use external rotation of logs. In this case, you also need to make" + elog "sure the built-in rotation is turned off." +} diff --git a/www-apps/karma-bin/Manifest b/www-apps/karma-bin/Manifest index b5dd2cd3e337..8871937a2364 100644 --- a/www-apps/karma-bin/Manifest +++ b/www-apps/karma-bin/Manifest @@ -3,7 +3,9 @@ AUX karma.initd 410 BLAKE2B 0aecc0b88a1b89bda32bea7a15571826fd6598d74258a12aeed1 DIST karma-bin-0.24-amd64.tar.gz 11511588 BLAKE2B 4de38f4925e039ae28e160d2f541cb8b92388b42c68b3f00ca1a4aced635078a5f8bfabe63fe20dcb05a5a75188b2a866b627a26fd68d43de5f0c21a97a28160 SHA512 2864eac54be7f156f4b8feb144825615576e7f18f61f58d3e3834e9968a59a0373d0b156a0f00c5c019b922b251f8a7f35a41f139fbf42c27c562a74af33f14d DIST karma-bin-0.27-amd64.tar.gz 13932963 BLAKE2B e99093ec5a7d72fbca136d63789352e001974e4bf0a90ee45d6ff8a8814df9dfdf695af4fb1b17cf1c6a29fce2be65965f048daa9070484b2fcc53dc6e33122a SHA512 844301cb8bdd08452d02ab33c39dd5d8307e538f87d18fff58bfd888ddd207bb6557d40c053613d2e3991cf915b032119ed08ebe5a32a98d12cac06a25872887 DIST karma-bin-0.33-amd64.tar.gz 14113120 BLAKE2B a37dc699d7ff26dcbb9188afc48639309c2f44490f2f59dd41d15e6c00035b4fb9bc9bd86abd8e999862a4a71bca76beb70bbb06f97e761fdb80b046dc742ed5 SHA512 a2bec5381648a680af842d5b61c23883655b508ed9803cec2e2e65bffba136076636651dbf8eedb7e220a746629902d4b29956fbebe902a1ff14924bb9a8ba27 +DIST karma-bin-0.39-amd64.tar.gz 15071130 BLAKE2B 71edfac70d02eee3b9406fc57e335c2f9c4f68a16f32da591e70c753f1498c182f36da7c018458b54f39b00968908e56367cdf30f26815ed53e78e6710d56e76 SHA512 6ed03b3c25745fc631ca04b3659239efdce78b221eb1c9c43fb9c8f8e7d6aadc153962388b54b0209e8896f9c9cf33f1fa5a23b6ed2bfbd4c4b48c7a24ab0637 EBUILD karma-bin-0.24.ebuild 950 BLAKE2B d966dc1b996ed5e2d95b2b12007c45cf0522862a48782e05c4fe1b62407ceee9e7cf015259291e6c6999df9d59409e9bb5b880feba66e0ad70489726641de462 SHA512 d83f53417628d3274b338e3bfe36ac7d1472fef3f7cd51525dea1a5f0f64fdb825cf26f235128353c4e2ad7b63e5b8d8560e5cc78d3124eb83c4f8ec4787d3c1 EBUILD karma-bin-0.27.ebuild 949 BLAKE2B f5d10a7fbf43d99d5a11e27e6da6c1b9a98517bb329c9c326929897c04c44f3c2d1a318990e34863ce23faac6cd84293183848835b69a69cbedeee36ee6e8331 SHA512 d1cc2163379e50331f3b6110b6187445651309ce54206efa6a6fb84ccd65f65a3bfb9103756b39059bfeb3445fe571eab901ba63fb4b8eff10b4ce2a81ff9e18 EBUILD karma-bin-0.33.ebuild 949 BLAKE2B f5d10a7fbf43d99d5a11e27e6da6c1b9a98517bb329c9c326929897c04c44f3c2d1a318990e34863ce23faac6cd84293183848835b69a69cbedeee36ee6e8331 SHA512 d1cc2163379e50331f3b6110b6187445651309ce54206efa6a6fb84ccd65f65a3bfb9103756b39059bfeb3445fe571eab901ba63fb4b8eff10b4ce2a81ff9e18 +EBUILD karma-bin-0.39.ebuild 949 BLAKE2B f5d10a7fbf43d99d5a11e27e6da6c1b9a98517bb329c9c326929897c04c44f3c2d1a318990e34863ce23faac6cd84293183848835b69a69cbedeee36ee6e8331 SHA512 d1cc2163379e50331f3b6110b6187445651309ce54206efa6a6fb84ccd65f65a3bfb9103756b39059bfeb3445fe571eab901ba63fb4b8eff10b4ce2a81ff9e18 MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/www-apps/karma-bin/karma-bin-0.39.ebuild b/www-apps/karma-bin/karma-bin-0.39.ebuild new file mode 100644 index 000000000000..809fafaf8788 --- /dev/null +++ b/www-apps/karma-bin/karma-bin-0.39.ebuild @@ -0,0 +1,39 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +MY_PN=${PN%-bin} + +inherit user + +DESCRIPTION="Alerts dashboard for Prometheus Alertmanager" +HOMEPAGE="https://github.com/prymitive/karma" +SRC_URI="https://github.com/prymitive/${MY_PN}/releases/download/v${PV}/${MY_PN}-linux-amd64.tar.gz -> ${P}-amd64.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +QA_PREBUILT="usr/bin/*" +S="${WORKDIR}" + +pkg_setup() { + enewgroup ${MY_PN} + enewuser ${MY_PN} -1 -1 -1 ${MY_PN} +} + +src_install() { + dobin karma-linux-amd64 + dosym karma-linux-amd64 /usr/bin/karma + insinto /etc/${MY_PN} + newins "${FILESDIR}"/${MY_PN}-0.24.yaml ${MY_PN}.yaml + newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN} +keepdir /var/log/${MY_PN} +fowners ${MY_PN}:${MY_PN} /var/log/${MY_PN} +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Please edit ${EROOT}/etc/karma/karma.yaml to match your system." + fi +} diff --git a/www-apps/phpBB/Manifest b/www-apps/phpBB/Manifest index e5e94aee0952..220faadc8262 100644 --- a/www-apps/phpBB/Manifest +++ b/www-apps/phpBB/Manifest @@ -1,4 +1,5 @@ -AUX postinstall-en.txt 507 BLAKE2B 998b017b45e9588d8638cdcbb28e31603b77a2946df0c667fbdbe339d5a4ccb7a76a293f161fdb3850d0d0ef4914838f12291708f90c659b7db2f9224f5a9a32 SHA512 dc54de4de270eacd4ef765ad1537333229a6acbf6495f88f6c6a7f555fcf643177f03f690c426f08eea63a4988d113b39fb519162b26c6200b14ee387f1ebed0 -DIST phpBB-3.1.10.tar.bz2 2150999 BLAKE2B c0dce8b554f9bfd19f0e470fa0b96637f26969339f4ef6f87d04d5e492f0028d24e0adc76c8600b7a7d95c6531aa6971b646a02f22f731195c5a9491ea465bd0 SHA512 077a529075ea4e0691f9125be521b3fa8d4a078f9234b40bc5495faf00e1389808da40176ab8c8d9c66db259ebbf252d7292919d5c8e96e93c0bbda8d19695e2 -EBUILD phpBB-3.1.10-r1.ebuild 1199 BLAKE2B 28bebab93f72387a354c58e1e38760e64b9829f39d9087bdbb411016a9b3bbc745aad6f14d9aacbba3ef1fe451a0e62b79faf5387deb9ef9cd14c24ce6744f21 SHA512 b53966dbb23b4bbcc16f379df5cc787b74d3043db1db23755829139e48d0cf028dac6d67e111cb3fde7391fec89a43e3c40e37562a2b53be49d03267f5f41c59 -MISC metadata.xml 358 BLAKE2B a5b1c946e0c10bbe23eddc905a4d6fdff1495c606e4d3aca1237fa3bde6bc741bafe7268c1f9bcda87ca08032ddccd967760e83c43c717146db36b963b5835d7 SHA512 3cd787058b5689c07b47499aed4f85871c6a97ef58b097da1bcc743cff4852de56d62e9758dc1707b8cdf147aaad1d0daf1858d8c44e61de1594eea954779760 +AUX permissions 600 BLAKE2B ae5ced85bf5ce72bc6bca533e68ae55499ace30590de37be55c4267efacf03fe752c9c3d96ff1f6ba54beda0df238fa663281195a7c874eb3cea422fb16b5a82 SHA512 ea8f2796a43c825fbe160606dc4a3cdabd6ed8fd6692c841cadb87b06803f448df48446a83366a3af3cfba65a50bb9ed3361c0495bb5058c542b6cac9c7b2a1b +AUX postinstall-en.txt 554 BLAKE2B 6560cb0c3a95cbbba91932af13790eae010193e6bcca4d46c640eb05b18bcae23645d5962a6be08f28aa721a10668bd128d19f505b9d463119d1a7aff845e732 SHA512 d1d61b525b2746d558f9fa1bd56e92e182d44bb406302f1646a40b0b1f06fc900ae46c3e600e27495edce1fa4188915dcf8f96b4762938ec0f324bdbb8d91759 +DIST phpBB-3.2.7.tar.bz2 4384851 BLAKE2B 68af960efa04a30f81869b205d9c43ace86a4a4411a4cb969cdf5d52c8bf4f87f806fc3b2c71941f15be295afe5faa0d606af72a734356c3a7f0f97fb73d3f01 SHA512 f6cf728c022d803f2b39560037b987e832f4ee4583a377f63e01a1529b58e275db4f13386a0d70b50cfb40621d7573a26e349702f901a549cedda9db7f79d4d2 +EBUILD phpBB-3.2.7.ebuild 1501 BLAKE2B 259d96c2c47492231586bd0d13fec2bdaca9d59aa384b5670f30f0f486749e05e9453b92d5e75a692524eb41bd31b93aa495ac84d469268e371a024982d3a868 SHA512 2106a4a65de676d9327fabbe85275c1161813732550c98f4c03663d64238bd436ec591b24d32c41cf879a60edd1ac1e321ca584014a82d6845267e76569e88ab +MISC metadata.xml 875 BLAKE2B 1b4bf9ef1b179b5bee6bf42a7b7d1f25b28273f4cbd18ceb830f478c788ed055921d05aa5154512bacd5e86b48ee87b8401c47878ae9adb567ebbc7192235fa2 SHA512 25c485aa4cb248afaf4500c9c7ef1d84e23245ca11f2dbe60eb809da4766d4566a9d76df4e6f9ecf19059b75c05f13fabd5f56e3bd4751a5b5cfcd33529b93a7 diff --git a/www-apps/phpBB/files/permissions b/www-apps/phpBB/files/permissions new file mode 100755 index 000000000000..b5c21c879eb1 --- /dev/null +++ b/www-apps/phpBB/files/permissions @@ -0,0 +1,19 @@ +#!/bin/bash -e + +if [[ $1 = install ]]; then + # Ensure database credentials are not world-readable. + chmod -v o= "${MY_INSTALLDIR}"/config.php + + # These paths need to be writeable by the PHP user. + PATHS=( "${MY_INSTALLDIR}"/{cache/,config.php,download/,files/,store/,images/avatars/upload/} ) + + # Assume the PHP user is in the config group. + GID=${VHOST_CONFIG_GID} + + # If that group is root, assume the web server group instead. + [[ ${GID} = 0 || ${GID} = root ]] && GID=${VHOST_SERVER_GID} + + # Make the paths writeable by that group. + chgrp -v "${GID}" "${PATHS[@]}" + chmod -v g+w "${PATHS[@]}" +fi diff --git a/www-apps/phpBB/files/postinstall-en.txt b/www-apps/phpBB/files/postinstall-en.txt index 6787a37ca813..8bdf1386e4de 100644 --- a/www-apps/phpBB/files/postinstall-en.txt +++ b/www-apps/phpBB/files/postinstall-en.txt @@ -1,22 +1,14 @@ -You are almost done! +IMPORTANT! Ensure that the group assigned to group-writeable paths +such as config.php (see above) is one your PHP user is a member +of. This may or may not be your web server group, ${VHOST_SERVER_GID}. +If not, adjust your PHP user and/or reinstall the application with +webapp-config while specifying an appropriate group with -g. Then... - 0. Setup a database (e.g. MySQL: see - http://www.gentoo.org/doc/en/mysql-howto.xml) +1. Set up a database. +2. Continue the installation by visiting the URL in your browser. +3. Delete the "install" folder as follows: - 1. Login on + # cd ${MY_INSTALLDIR} + # rm -rf install - http://${VHOST_HOSTNAME}/${VHOST_APPDIR} - - and finish the installation. - - 2. Move into the directory where you installed phpBB and remove - the "install" folder: - - # cd ${MY_INSTALLDIR} - # rm -rf install - - 3. You can now launch your browser and point it to your phpBB site: - - http://${VHOST_HOSTNAME}/${VHOST_APPDIR} - - Enjoy phpBB! +4. phpBB is now ready to use. Enjoy! diff --git a/www-apps/phpBB/metadata.xml b/www-apps/phpBB/metadata.xml index 575e4216b633..14d03d3e9a1f 100644 --- a/www-apps/phpBB/metadata.xml +++ b/www-apps/phpBB/metadata.xml @@ -9,4 +9,15 @@ chewi@gentoo.org James Le Cuirot + + phpBB is a free flat-forum bulletin board software solution that can be used + to stay in touch with a group of people or can power your entire website. + With an extensive database of user-created extensions and styles database + containing hundreds of style and image packages to customise your board, + you can create a very unique forum in minutes. + + + https://tracker.phpbb.com + phpbb/phpbb + diff --git a/www-apps/phpBB/phpBB-3.1.10-r1.ebuild b/www-apps/phpBB/phpBB-3.1.10-r1.ebuild deleted file mode 100644 index ebc5ae0c5507..000000000000 --- a/www-apps/phpBB/phpBB-3.1.10-r1.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit webapp - -DESCRIPTION="An open-source bulletin board package" -HOMEPAGE="https://www.phpbb.com/" -SRC_URI="https://download.phpbb.com/pub/release/${PV:0:3}/${PV}/${P}.tar.bz2" -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~arm64 ~ppc ~sparc ~x86" -IUSE="ftp gd imagemagick mssql mysqli postgres sqlite xml zlib" - -PHPV="5*:*" -RDEPEND="=virtual/httpd-php-${PHPV} - =dev-lang/php-${PHPV}[ftp?,gd?,json,mssql?,mysqli?,postgres?,sqlite?,xml?,zlib?] - imagemagick? ( virtual/imagemagick-tools )" - -need_httpd_cgi - -S="${WORKDIR}/${PN}${PV%%.*}" - -src_install() { - webapp_src_preinst - - insinto "${MY_HTDOCSDIR}" - doins -r . - - webapp_serverowned "${MY_HTDOCSDIR}"/cache - webapp_serverowned "${MY_HTDOCSDIR}"/files - webapp_serverowned "${MY_HTDOCSDIR}"/images/avatars/upload - webapp_serverowned "${MY_HTDOCSDIR}"/store - webapp_serverowned "${MY_HTDOCSDIR}"/config.php - webapp_configfile "${MY_HTDOCSDIR}"/config.php - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_src_install - - # phpBB needs docs together with the other files. - dosym "${MY_HTDOCSDIR}"/docs /usr/share/doc/${PF} -} diff --git a/www-apps/phpBB/phpBB-3.2.7.ebuild b/www-apps/phpBB/phpBB-3.2.7.ebuild new file mode 100644 index 000000000000..95dfe1c22767 --- /dev/null +++ b/www-apps/phpBB/phpBB-3.2.7.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit webapp + +DESCRIPTION="An open-source PHP-based bulletin board package" +HOMEPAGE="https://www.phpbb.com/" +SRC_URI="https://www.phpbb.com/files/release/${P}.tar.bz2" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~sparc ~x86" +IUSE="ftp gd mssql mysqli postgres sqlite zlib" +REQUIRED_USE="|| ( mssql mysqli postgres sqlite )" + +PHPV="5.4:*" +RDEPEND=">=virtual/httpd-php-${PHPV} + >=dev-lang/php-${PHPV}[ftp?,gd?,json,mssql?,mysqli?,postgres?,sqlite?,xml,zlib?]" + +need_httpd_cgi + +S="${WORKDIR}/${PN}${PV%%.*}" + +src_install() { + webapp_src_preinst + + insinto "${MY_HTDOCSDIR}" + doins -r . + + webapp_configfile "${MY_HTDOCSDIR}"/config.php + webapp_hook_script "${FILESDIR}"/permissions + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_src_install + + # phpBB needs docs together with the other files. + dosym ../webapps/${PN}/${SLOT}/htdocs/docs /usr/share/doc/${PF} +} + +pkg_postinst() { + einfo "phpBB needs a specific web server configuration. For Apache httpd, an" + einfo "example configuration is provided via .htaccess files. For lighttpd and" + einfo "NGINX, example configuration files can be found in the documentation." + + if use vhosts; then + echo + ewarn "When installing with webapp-config, specify a group that includes your" + ewarn "PHP user with the -g option. It will default to the web server group" + ewarn "when running webapp-config as root." + fi +} -- cgit v1.2.3