mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-misc/fileshelter: add 6.4.0
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST fileshelter-6.3.0.tar.gz 67194 BLAKE2B 716f72b7ab3f22074593008f63e8c3a66ecc45b3d833195c165a78904449606eb5f6b6f3a1e11c438ac6e7efcfa92d8ad77a3c071ccd6b07f8860c22ee01909f SHA512 c73c4a3787976535164a0238602043e4b7561d56b134b628de3f80a7daed2c84ec45286b36ea19d4286cdb98dc1f56abbba9ac4aa831abf3e24f9a2254cb06e7
|
||||
DIST fileshelter-6.4.0.tar.gz 65927 BLAKE2B aff2d3816aa2fb416545b52d0fd482a6d14139e0748b0fbc975f3789116b9327a02c4e9e818a79280463193004364b145b4525a603b72cab169e8ef6189b1a1b SHA512 9d8a95e3a1526b61974234f752d68b7016a437f492f32b10e64573e72be2b3f47dc0b5b9db84096ab5ae55edc5152838a4d2e310d21df8d3ee0e5057ea8b7441
|
||||
|
||||
24
net-misc/fileshelter/files/fileshelter.init
Normal file
24
net-misc/fileshelter/files/fileshelter.init
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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}
|
||||
|
||||
command="/usr/bin/fileshelter"
|
||||
command_user="${FILESHELTER_USER}:${FILESHELTER_GROUP}"
|
||||
command_background=true
|
||||
directory="${FILESHELTER_BINDIR}"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
extra_started_commands="reload"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
reload () {
|
||||
ebegin "Reloading configuration and re-opening log files"
|
||||
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
||||
58
net-misc/fileshelter/fileshelter-6.4.0.ebuild
Normal file
58
net-misc/fileshelter/fileshelter-6.4.0.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# 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_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
sed -e '/WorkingDirectory=/s:=.*:=/var/lib/fileshelter:' \
|
||||
-i conf/systemd/default.service || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
systemd_newunit conf/systemd/default.service fileshelter.service
|
||||
rm "${ED}"/usr/share/fileshelter/default.service || die
|
||||
|
||||
newinitd "${FILESDIR}"/fileshelter.init fileshelter
|
||||
|
||||
keepdir /var/log/fileshelter
|
||||
fowners -R fileshelter /var/log/fileshelter
|
||||
|
||||
insinto /etc
|
||||
# it may contain passwords
|
||||
insopts -m 0640 -o fileshelter
|
||||
doins conf/fileshelter.conf
|
||||
|
||||
keepdir /var/lib/fileshelter
|
||||
fowners fileshelter:fileshelter /var/lib/fileshelter
|
||||
|
||||
find "${ED}" -name '*.a' -delete || die
|
||||
}
|
||||
Reference in New Issue
Block a user