You've already forked thehub-aur
Make this actually compile and install Flowee.
This is a 'git' build.
This commit is contained in:
@@ -1,11 +1,27 @@
|
||||
pkgbase = flowee
|
||||
pkgdesc = flowee
|
||||
pkgver = 1.0
|
||||
pkgdesc = Flowee the Hub
|
||||
pkgver = 0.1
|
||||
pkgrel = 1
|
||||
url = https://flowee.org/
|
||||
url = http://flowee.org/
|
||||
install = flowee.install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = GPLv3
|
||||
license = GPL
|
||||
makedepends = boost
|
||||
makedepends = cmake
|
||||
depends = boost-libs
|
||||
depends = libevent
|
||||
depends = openssl
|
||||
depends = miniupnpc
|
||||
depends = zeromq
|
||||
provides = flowee-hub
|
||||
backup = etc/flowee/flowee.conf
|
||||
source = git+https://github.com/floweethehub/hub.git#branch=master
|
||||
source = flowee.logrotate
|
||||
source = flowee.conf
|
||||
sha256sums = SKIP
|
||||
sha256sums = d09fe561ed2b5fa0abf40bb5bfce0d6294b3747f97b94b473d040bda7b212985
|
||||
sha256sums = f10260c2c4453f07850a7e02dd8d859e65fcaf54ce93f5b69d18e757454fda45
|
||||
|
||||
pkgname = flowee
|
||||
|
||||
|
||||
@@ -1,15 +1,52 @@
|
||||
# Maintainer: Tom Zander
|
||||
|
||||
pkgname=flowee
|
||||
pkgver=ecc0613f
|
||||
pkgrel=1
|
||||
pkgver=1.0
|
||||
pkgdesc='flowee'
|
||||
pkgdesc="Flowee the Hub"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://flowee.org/"
|
||||
license=('GPLv3')
|
||||
url="http://flowee.org/"
|
||||
license=('GPL')
|
||||
depends=('boost-libs' 'libevent' 'openssl')
|
||||
makedepends=('boost' 'cmake')
|
||||
provides=('flowee-hub')
|
||||
backup=("etc/flowee/flowee.conf")
|
||||
install=flowee.install
|
||||
source=("git+https://github.com/floweethehub/hub.git#branch=master"
|
||||
"flowee.logrotate"
|
||||
"flowee.conf"
|
||||
"logs.conf")
|
||||
|
||||
sha256sums=('SKIP'
|
||||
"d09fe561ed2b5fa0abf40bb5bfce0d6294b3747f97b94b473d040bda7b212985"
|
||||
"bc14acf0d1b4064553756a1e81c0b943e842296f2a2af6442e480b846392e6bc"
|
||||
"635bf93ae346f7a8f4baf61d2d8316aa24647e87d23847876302330cb1e1191b")
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/hub"
|
||||
git rev-parse --short HEAD
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake -Dmark_release=true -Dbuild_tests=true -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=$pkgdir/usr/ ../hub
|
||||
make -j1 univalue
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
./build/testing/test/test_hub
|
||||
}
|
||||
|
||||
package() {
|
||||
echo "Soon"
|
||||
exit 1
|
||||
cd build
|
||||
make install
|
||||
cd "$pkgdir"
|
||||
mv usr/etc .
|
||||
chmod 775 etc/flowee
|
||||
mv etc/flowee/flowee.conf etc/flowee/flowee-example.conf
|
||||
install -Dm 664 "$srcdir/flowee.conf" -t "$pkgdir/etc/flowee"
|
||||
install -Dm 664 "$srcdir/logs.conf" -t "$pkgdir/etc/flowee"
|
||||
install -Dm 644 "$srcdir/hub/support/thehub.service" -t "$pkgdir/usr/lib/systemd/system"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# Defaults that are also passed in by systemd
|
||||
datadir=/var/lib/flowee
|
||||
pid=/var/lib/flowee/hub.pid
|
||||
|
||||
# make the cookie go to /etc/flowee
|
||||
rpccookiefile=/etc/flowee/.cookie
|
||||
@@ -0,0 +1,49 @@
|
||||
_bc_user=flowee
|
||||
_bc_group=flowee
|
||||
|
||||
post_install() {
|
||||
_mkuser
|
||||
_dir="/var/lib/flowee"
|
||||
_log="/var/log/flowee"
|
||||
_cnf="/etc/flowee"
|
||||
if test ! -d "$_dir"; then
|
||||
mkdir -m 750 "$_dir"
|
||||
# disable Copy-On-Write (btrfs directories only)
|
||||
# This avoids lots of known db-corruption issues
|
||||
_is_btrfs "$_dir" && chattr +C "$_dir"
|
||||
fi
|
||||
mkdir -p -m 770 "$_log"
|
||||
chown -R $_bc_user:$_bc_group "$_dir" "$_cnf" "$_log"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
_mkuser
|
||||
}
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# helper functions for creating flowee user / group
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
_mkuser() {
|
||||
getent passwd $_bc_user &>/dev/null || {
|
||||
echo -n "Creating flowee user... "
|
||||
grep -E "^$_bc_group:" /etc/group >/dev/null || groupadd $_bc_group
|
||||
useradd -m -d /etc/flowee -g $_bc_group -s /usr/bin/nologin $_bc_user 2>/dev/null
|
||||
echo "done"
|
||||
}
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# helper functions for disabling btrfs Copy-On-Write (CoW)
|
||||
# https://wiki.archlinux.org/index.php/Btrfs#Copy-On-Write_.28CoW.29
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# check if dir is btrfs
|
||||
_is_btrfs() {
|
||||
if [[ $(findmnt --target $1 --output FSTYPE --noheadings) == 'btrfs' ]]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/var/lib/flowee/debug.log
|
||||
{
|
||||
rotate 5
|
||||
copytruncate
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
# Flowee the Hub log config.
|
||||
# See for more details http://flowee.org/hub/log-config/
|
||||
|
||||
channel file
|
||||
# timestamp option takes [time, millisecond, date]. Any combination allowed. None of these 3 for no timestamps
|
||||
option timestamp time millisecond
|
||||
option path /var/log/flowee/hub.log
|
||||
|
||||
# this makes the log go to the journal.
|
||||
channel console
|
||||
|
||||
##### Set the verbosity of the logging per log-section
|
||||
# See for more details http://flowee.org/hub/log-sections/
|
||||
|
||||
# silent only shows fatal
|
||||
# quiet only shows critical and fatal
|
||||
# info shows warning, info, critical and fatal
|
||||
# debug shows everything.
|
||||
|
||||
ALL quiet
|
||||
Reference in New Issue
Block a user