net-misc/fileshelter: add 6.3.0

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
This commit is contained in:
Nicolas PARLANT
2025-09-21 07:30:58 +02:00
parent 92f2f53528
commit 6233d15c11
3 changed files with 78 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST fileshelter-6.2.0.tar.gz 66406 BLAKE2B bb510331c84f0321e21a87a7cd25886c7c391666504833c5acb8db724322cb2bf8919e8ef281cbe4453aacf7e1c0f93447200f60a79c429a595c8678b7e4bdb8 SHA512 5563fd04a1c97064f443d7081e897e3473d5937d43410d48d32dbb610c90d0eb8df2fb0b642aaf7af9c5fdad30f53d7f3a797021121fc9a3dbd35b2e64fdae6c
DIST fileshelter-6.3.0.tar.gz 67194 BLAKE2B 716f72b7ab3f22074593008f63e8c3a66ecc45b3d833195c165a78904449606eb5f6b6f3a1e11c438ac6e7efcfa92d8ad77a3c071ccd6b07f8860c22ee01909f SHA512 c73c4a3787976535164a0238602043e4b7561d56b134b628de3f80a7daed2c84ec45286b36ea19d4286cdb98dc1f56abbba9ac4aa831abf3e24f9a2254cb06e7

View File

@@ -0,0 +1,29 @@
#!/sbin/openrc-run
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: ${FILESHELTER_GROUP:=fileshelter}
: ${FILESHELTER_USER:=fileshelter}
: ${FILESHELTER_BINDIR:=/var/lib/fileshelter}
: ${FILESHELTER_PIDFILE:=/run/fileshelter.pid}
command="/usr/bin/fileshelter"
command_user="${FILESHELTER_USER}:${FILESHELTER_GROUP}"
command_background=true
directory="${FILESHELTER_BINDIR}"
pidfile="${FILESHELTER_PIDFILE}"
extra_started_commands="reload"
depend() {
use net
}
start_pre() {
checkpath -d -m 0750 -o "${FILESHELTER_USER}:${FILESHELTER_GROUP}" ${FILESHELTER_BINDIR}
}
reload () {
ebegin "Reloading configuration and re-opening log files"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}

View File

@@ -0,0 +1,48 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake systemd
DESCRIPTION="FileShelter is a “one-click” file sharing web application "
HOMEPAGE="https://fileshelter-demo.poupon.dev https://github.com/epoupon/fileshelter"
SRC_URI="https://github.com/epoupon/fileshelter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
acct-user/fileshelter
app-arch/libarchive:=
dev-cpp/wt:=
dev-libs/boost:=
dev-libs/libconfig:=[cxx]
"
RDEPEND="${DEPEND}"
DOCS=( INSTALL.md README.md )
PATCHES="
${FILESDIR}/${PN}-6.2.0-hierarchy.patch
"
src_install() {
cmake_src_install
systemd_newunit conf/systemd/default.service fileshelter.service
newinitd "${FILESDIR}"/fileshelter.init-r1 fileshelter
keepdir /var/log/fileshelter
fowners -R fileshelter:fileshelter /var/log/fileshelter
mv "${ED}"/usr/share/fileshelter/fileshelter.conf "${ED}"/etc/fileshelter.conf || die
rm "${ED}"/usr/share/fileshelter/default.service || die
keepdir /var/lib/fileshelter
fowners fileshelter:fileshelter /var/lib/fileshelter
find "${ED}" -name '*.a' -delete || die
}