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

Sergej Pupykin spupykin at gemini.archlinux.org
Sat Nov 13 20:11:28 UTC 2021


    Date: Saturday, November 13, 2021 @ 20:11:27
  Author: spupykin
Revision: 1046027

archrelease: copy trunk to community-x86_64

Added:
  redmine/repos/community-x86_64/
  redmine/repos/community-x86_64/Gemfile.local
    (from rev 1046026, redmine/trunk/Gemfile.local)
  redmine/repos/community-x86_64/PKGBUILD
    (from rev 1046026, redmine/trunk/PKGBUILD)
  redmine/repos/community-x86_64/redmine.service
    (from rev 1046026, redmine/trunk/redmine.service)

-----------------+
 Gemfile.local   |    3 ++
 PKGBUILD        |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 redmine.service |   15 ++++++++++++++
 3 files changed, 74 insertions(+)

Copied: redmine/repos/community-x86_64/Gemfile.local (from rev 1046026, redmine/trunk/Gemfile.local)
===================================================================
--- community-x86_64/Gemfile.local	                        (rev 0)
+++ community-x86_64/Gemfile.local	2021-11-13 20:11:27 UTC (rev 1046027)
@@ -0,0 +1,3 @@
+gem "mysql2", "~> 0.5.0"
+gem "pg", "~> 1.2.2"
+gem "sqlite3", "~> 1.4.0"

Copied: redmine/repos/community-x86_64/PKGBUILD (from rev 1046026, redmine/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-11-13 20:11:27 UTC (rev 1046027)
@@ -0,0 +1,56 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Federico Cuello <fedux at fedux.com.ar>
+
+pkgname=redmine
+pkgver=4.2.3
+pkgrel=1
+pkgdesc="A flexible project management web application written using Ruby on Rails framework."
+arch=('x86_64')
+url="https://www.redmine.org"
+license=('GPL2')
+depends=('ruby2.7' 'imagemagick' 'libxml2' 'libxslt')
+makedepends=('mariadb-libs' 'postgresql-libs' 'sqlite' '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=('456117b0d5d72ee58c87def84327e29f79937fa71098b48a80103e3e6653648c0df46afcc4f533803384ba7413e690538deeee33e263d86dd9e4e5dec65144e3'
+            '1943883fdc5479f8acb4c256108b6ae054360eb7298b696bc3e16995dac0e51529b4a9f4c8e9158645a15d7b90fdcdaedb4502986a8a6dc4015671fae6861b6e'
+            'e25398fc0287244a2adf1e242bd2bf0ae08ade055a1eab843fda301cd16a8ce73ec8a0b23a5d77f06fa4af08c6bf8cee877feb7a247549e7decd8438ff2b6caa')
+
+build() {
+    cd "$srcdir"/redmine-$pkgver
+
+    export PATH=/opt/ruby2.7/bin:$PATH
+
+    cp "${srcdir}"/Gemfile.local Gemfile.local
+    bundle-2.7 config set force_ruby_platform true
+    bundle-2.7 config build.nokogiri --use-system-libraries
+    bundle-2.7 lock
+    bundle-2.7 install --no-cache --deployment --without development test
+}
+
+package() {
+    install -dm 755 "$pkgdir"/usr/share/webapps/
+
+    rm "$srcdir"/redmine-$pkgver/vendor/bundle/ruby/2.7.0/extensions/*/*/*/{mkmf.log,gem_make.out}
+    rm -rf "$srcdir"/redmine-$pkgver/vendor/bundle/ruby/2.7.0/gems/*/ext/
+
+    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-x86_64/redmine.service (from rev 1046026, redmine/trunk/redmine.service)
===================================================================
--- community-x86_64/redmine.service	                        (rev 0)
+++ community-x86_64/redmine.service	2021-11-13 20:11:27 UTC (rev 1046027)
@@ -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.7 ./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