mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
50 lines
1.2 KiB
Bash
50 lines
1.2 KiB
Bash
# 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
|
|
${FILESDIR}/${PN}-6.3.0-boost_1.89.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
|
|
}
|