Commit 4d0a54ea authored by Kay Thomas's avatar Kay Thomas Committed by Leo
Browse files

testing/fileshelter: new aport

https://github.com/epoupon/fileshelter
One-click file sharing web application
parent 43247930
# Contributor: Kevin Thomas <me@kevinthomas.dev>
# Maintainer: Kevin Thomas <me@kevinthomas.dev>
pkgname=fileshelter
pkgver=4.2.0
pkgrel=0
pkgdesc="One-click file sharing web application"
url="https://github.com/epoupon/fileshelter"
arch="all"
license="GPL-3.0-or-later"
makedepends="autoconf automake boost-dev libconfig-dev libzip-dev wt-dev"
subpackages="$pkgname-openrc"
pkgusers="fileshelter"
pkggroups="fileshelter"
install="$pkgname.pre-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/epoupon/fileshelter/archive/v$pkgver.tar.gz
fileshelter.initd
"
options="!check" # No testsuite
prepare() {
default_prepare
# https://github.com/epoupon/fileshelter/issues/40
sed -i '21 a #include <vector>' src/utils/Config.hpp
autoreconf -vfi
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr
make
}
package() {
make DESTDIR="$pkgdir" install
install -dm755 -o fileshelter -g fileshelter \
"$pkgdir"/var/fileshelter
install -Dm644 conf/fileshelter.conf \
"$pkgdir"/etc/fileshelter.conf
rm "$pkgdir"/usr/share/fileshelter/fileshelter.service
install -Dm755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
}
sha512sums="
fcd6c5acd3a715b93cc89dd352ed963f6e5d7f8057a92f90b65df32c0f8c5d0d0b6bc635b4cd4ddd36cfd0f6dcd6c6e593d2f552f93ec9bb927338720b55eca7 fileshelter-4.2.0.tar.gz
56051559c91d5c269f8e945445aab3e48de7f3593b7321e6556aee87c458091cfaf14a220a0a8bbb5aa8f682fe1ebd289cfb8dd21b0f3eeb881268f28d84c115 fileshelter.initd
"
#!/sbin/openrc-run
supervisor=supervise-daemon
name="fileshelter"
command="/usr/bin/fileshelter"
command_user="fileshelter:fileshelter"
command_background=true
pidfile="/run/fileshelter.pid"
depend() {
need net localmount
after firewall
}
#!/bin/sh
addgroup -S fileshelter 2>/dev/null
adduser -S -D -H -s /sbin/nologin -G fileshelter -g fileshelter fileshelter 2>/dev/null
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment