summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD62
-rw-r--r--inferno.install19
-rwxr-xr-xmake-install-root.sh34
4 files changed, 43 insertions, 100 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 62258cf0544..c5ab95312bf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,19 @@
pkgbase = inferno
- pkgdesc = A compact operating system designed for building distributed and networked systems. (Prebuilt)
- pkgver = 20150328
+ pkgdesc = A Rust port of FlameGraph
+ pkgver = 0.10.9
pkgrel = 2
- url = http://www.vitanuova.com/inferno/
- install = inferno.install
- arch = any
- license = GPL2
- provides = inferno
- conflicts = inferno
- source = http://www.vitanuova.com/dist/4e/inferno-20150328.tgz
- source = make-install-root.sh
- sha256sums = 3f648d01a5264e1e4fd773824581205cdf9efe0a2e505298d07db21e1828ef7f
- sha256sums = SKIP
+ url = https://github.com/jonhoo/inferno
+ arch = x86_64
+ license = CDDL
+ makedepends = rust
+ depends = gcc-libs
+ provides = inferno-collapse-perf
+ provides = inferno-collapse-dtrace
+ provides = inferno-collapse-guess
+ provides = inferno-flamegraph
+ provides = inferno-diff-folded
+ conflicts = inferno-git
+ source = inferno-0.10.9.tar.gz::https://github.com/jonhoo/inferno/archive/refs/tags/v0.10.9.tar.gz
+ sha256sums = be7339159f6d889a89a3c91746487375b08fdfcb99196e511c2e8d4077687ff6
pkgname = inferno
-
diff --git a/PKGBUILD b/PKGBUILD
index f0a3406c656..401285a0b68 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,36 @@
-# Maintainer: Konstantinos Foutzopoulos <mail@konfou.xyz>
+# Maintainer: Rui Marques <aur@ruimarques.xyz>
pkgname=inferno
-pkgver=20150328
+pkgver=0.10.9
pkgrel=2
-pkgdesc='A compact operating system designed for building distributed and networked systems. (Prebuilt)'
-arch=('any')
-url='http://www.vitanuova.com/inferno/'
-license=('GPL2')
-depends_i686=('gcc-libs' 'libx11' 'libxext')
-depends_x86_64=('lib32-gcc-libs' 'lib32-libx11' 'lib32-libxext')
-#makedepends_i686=('gcc' 'glibc' 'mercurial')
-#makedepends_x86_64=('gcc-multilib' 'lib32-glibc' 'mercurial')
-provides=("${pkgname}")
-conflicts=("${pkgname}")
-source=("http://www.vitanuova.com/dist/4e/${pkgname}-${pkgver}.tgz"
- "make-install-root.sh")
-sha256sums=('3f648d01a5264e1e4fd773824581205cdf9efe0a2e505298d07db21e1828ef7f'
- 'SKIP')
-install=${pkgname}.install
+pkgdesc="A Rust port of FlameGraph"
+arch=('x86_64')
+url="https://github.com/jonhoo/inferno"
+license=('CDDL')
+depends=('gcc-libs')
+makedepends=('rust')
+provides=(
+ 'inferno-collapse-perf'
+ 'inferno-collapse-dtrace'
+ 'inferno-collapse-guess'
+ 'inferno-flamegraph'
+ 'inferno-diff-folded'
+)
+conflicts=('inferno-git')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
+sha256sums=('be7339159f6d889a89a3c91746487375b08fdfcb99196e511c2e8d4077687ff6')
build() {
- cat > "${pkgname}/inferno" << 'END'
-#!/usr/bin/env bash
-ROOT="/usr/local/inferno"
-IBIN="$ROOT/Linux/386/bin"
-export PATH="$IBIN:$PATH"
-export EMU="-r$ROOT"
-exec emu "$@"
-END
+ cd "$pkgname-$pkgver"
+ cargo build --release
}
package() {
- export IROOT="usr/local/inferno"
- ./make-install-root.sh "${pkgname}" "${pkgdir}/${IROOT}"
- find "${pkgdir}/${IROOT}" -path "${pkgdir}/${IROOT}/Linux" -prune -o -exec chmod g+w {} +
- mkdir -p "${pkgdir}/${IROOT}/Linux"
- cp -r "${pkgname}/Linux/386" "${pkgdir}/${IROOT}/Linux/"
- mkdir -p "${pkgdir}/usr/bin"
- install -D -m755 "${pkgname}/inferno" "${pkgdir}/usr/bin/inferno"
- install -D -m644 "${pkgname}/NOTICE" "${pkgdir}/usr/share/licenses/${pkgname}/NOTICE"
-} \ No newline at end of file
+ cd "$pkgname-$pkgver"
+
+ install -Dm755 "target/release/inferno-collapse-perf" "${pkgdir}/usr/bin/inferno-collapse-perf"
+ install -Dm755 "target/release/inferno-collapse-dtrace" "${pkgdir}/usr/bin/inferno-collapse-dtrace"
+ install -Dm755 "target/release/inferno-collapse-guess" "${pkgdir}/usr/bin/inferno-collapse-guess"
+ install -Dm755 "target/release/inferno-flamegraph" "${pkgdir}/usr/bin/inferno-flamegraph"
+ install -Dm755 "target/release/inferno-diff-folded" "${pkgdir}/usr/bin/inferno-diff-folded"
+}
diff --git a/inferno.install b/inferno.install
deleted file mode 100644
index 502c018b9e5..00000000000
--- a/inferno.install
+++ /dev/null
@@ -1,19 +0,0 @@
-post_install() {
- groupadd inferno
- IROOT=/usr/local/inferno
- find $IROOT -path $IROOT/Linux -prune -o -exec chgrp inferno {} +
- cat << 'END'
- Permissions for a user to modify the files are needed.
- This can be done adding a user to the group inferno with:
- # usermod -a -G inferno $USER
- For how to procceed you can read the doc/install.ms manual.
- On the host system this can be done as:
- # nroff -ms /usr/local/inferno/doc/install.ms | less
- After invoking inferno (an emu wrapper) this can be dones as:
- ; man -f /doc/install.ms | p
-END
-}
-
-post_remove() {
- groupdel inferno
-} \ No newline at end of file
diff --git a/make-install-root.sh b/make-install-root.sh
deleted file mode 100755
index dd856c9dbe4..00000000000
--- a/make-install-root.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/bash
-
-mkdir -p $2
-mkdir -p $2/mail
-mkdir -p $2/n/cd
-mkdir -p $2/n/client/chan
-mkdir -p $2/n/client/dev
-mkdir -p $2/n/disk
-mkdir -p $2/n/dist
-mkdir -p $2/n/dos
-mkdir -p $2/n/dump
-mkdir -p $2/n/ftp
-mkdir -p $2/n/gridfs
-mkdir -p $2/n/kfs
-mkdir -p $2/n/local
-mkdir -p $2/n/rdbg
-mkdir -p $2/n/registry
-mkdir -p $2/n/remote
-mkdir -p $2/tmp
-mkdir -p $2/usr
-
-cp -r $1/acme $2/
-cp -r $1/appl $2/
-cp -r $1/dis $2/
-cp -r $1/doc $2/
-cp -r $1/fonts $2/
-cp -r $1/icons $2/
-cp -r $1/keydb $2/
-cp -r $1/lib $2/
-cp -r $1/locale $2/
-cp -r $1/man $2/
-cp -r $1/module $2/
-cp -r $1/services $2/
-cp -r $1/usr $2/