[arch-commits] Commit in redmine/repos (4 files)

Sergej Pupykin spupykin at archlinux.org
Mon Mar 29 20:53:28 UTC 2021


    Date: Monday, March 29, 2021 @ 20:53:28
  Author: spupykin
Revision: 909538

archrelease: copy trunk to community-testing-any

Added:
  redmine/repos/community-testing-any/
  redmine/repos/community-testing-any/Gemfile.local
    (from rev 909537, redmine/trunk/Gemfile.local)
  redmine/repos/community-testing-any/PKGBUILD
    (from rev 909537, redmine/trunk/PKGBUILD)
  redmine/repos/community-testing-any/redmine.service
    (from rev 909537, redmine/trunk/redmine.service)

-----------------+
 Gemfile.local   |    8 ++++++++
 PKGBUILD        |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 redmine.service |   15 +++++++++++++++
 3 files changed, 73 insertions(+)

Copied: redmine/repos/community-testing-any/Gemfile.local (from rev 909537, redmine/trunk/Gemfile.local)
===================================================================
--- community-testing-any/Gemfile.local	                        (rev 0)
+++ community-testing-any/Gemfile.local	2021-03-29 20:53:28 UTC (rev 909538)
@@ -0,0 +1,8 @@
+gem "xpath", "< 4.0"
+gem "ffi", ">= 0"
+gem "childprocess", "= 0.9.0"
+gem "docile", "= 1.1.5"
+gem "metaclass", "= 0.0.4"
+gem "mocha", ">= 1.4.0"
+gem "mysql2", "~> 0.5.0"
+gem "pg", "~> 1.1.4"

Copied: redmine/repos/community-testing-any/PKGBUILD (from rev 909537, redmine/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-03-29 20:53:28 UTC (rev 909538)
@@ -0,0 +1,50 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Federico Cuello <fedux at fedux.com.ar>
+
+pkgname=redmine
+pkgver=4.2.0
+pkgrel=1
+pkgdesc="A flexible project management web application written using Ruby on Rails framework."
+arch=('any')
+url="https://www.redmine.org"
+license=('GPL2')
+depends=('ruby2.6' 'imagemagick' 'libxml2' 'libxslt')
+makedepends=('mariadb-libs' 'postgresql-libs' 'systemd')
+optdepends=('apache: A supported application server'
+            'nginx: A supported application server'
+            'mysql: MySQL database support'
+            'postgresql: PostgreSQL database support'
+            'sqlite: SQLite database support')
+source=("$url/releases/$pkgname-$pkgver.tar.gz"
+	"Gemfile.local"
+	"redmine.service")
+sha512sums=('160d740c0bceb99de45024943987631a6fa9075084f50a5bd97e65b5842857ea1464f1d6913d27b9102371a1a1f0c3a23604714b2992653919aa0eea8dbf5ad5'
+            '4121bc1c30ca626a7cef5b4993dbe8480acfcb0c84367520a45433ba09878ed541247be1980a32a8b74f9a4f0802ff5fa341efca3cde91cd2fe1fe11c8412754'
+            '0b897980a8920538674fa7585e1dbaef48a152226215d598c41b3fcf4ac6566b5866d6e3132c30c0adbdc0d8e0080e2541cb4a119aedc6bef24fd6c129abd4eb')
+
+build() {
+    cd "$srcdir"/redmine-$pkgver
+
+    export PATH=/opt/ruby2.6/bin:$PATH
+
+    cp "${srcdir}"/Gemfile.local Gemfile.local
+    bundle-2.6 lock
+    bundle-2.6 install --no-cache --deployment --without development test
+}
+
+package() {
+    install -dm 755 "$pkgdir"/usr/share/webapps/
+    cp -a --no-preserve=ownership "$srcdir"/redmine-$pkgver "$pkgdir"/usr/share/webapps/redmine
+
+    install -Dm0644 "${srcdir}"/redmine.service "${pkgdir}"/usr/lib/systemd/system/redmine.service
+
+    cd "$pkgdir"/usr/share/webapps/redmine
+    rm -rf files log
+    install -dm0755 -o http -g http "$pkgdir"/var/lib/redmine/files
+    install -dm0755 -o http -g http "$pkgdir"/var/log/redmine
+    mv tmp "$pkgdir"/var/lib/redmine/tmp
+    chown -R http:http "$pkgdir"/var/lib/redmine/tmp
+    ln -s /var/log/redmine log
+    ln -s /var/lib/redmine/files files
+    ln -s /var/lib/redmine/tmp tmp
+}

Copied: redmine/repos/community-testing-any/redmine.service (from rev 909537, redmine/trunk/redmine.service)
===================================================================
--- community-testing-any/redmine.service	                        (rev 0)
+++ community-testing-any/redmine.service	2021-03-29 20:53:28 UTC (rev 909538)
@@ -0,0 +1,15 @@
+[Unit]
+Description=DSR Redmine
+After=network.target
+
+[Service]
+Type=simple
+User=http
+Group=http
+WorkingDirectory=/usr/share/webapps/redmine
+ExecStart=/usr/bin/ruby-2.6 ./bin/rails server webrick -e production -b 127.0.0.1 -p 3020
+RestartSec=60
+Restart=always
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list