43 lines
846 B
Bash
43 lines
846 B
Bash
#
|
|
#
|
|
#
|
|
|
|
EAPI=8
|
|
|
|
inherit cargo systemd
|
|
|
|
DESCRIPTION="Reverse proxy for realtime web services"
|
|
HOMEPAGE="https://pushpin.org/"
|
|
SRC_URI="https://github.com/fastly/pushpin/releases/download/v${PV}/${P}.tar.bz2"
|
|
|
|
KEYWORDS="~amd64"
|
|
SLOT="0"
|
|
|
|
RDEPEND="
|
|
acct-group/pushpin
|
|
acct-user/pushpin
|
|
dev-qt/qtcore:5
|
|
dev-qt/qtnetwork:5
|
|
net-libs/zeromq
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_install() {
|
|
cargo_src_install
|
|
dodoc README.md CHANGELOG.md SECURITY.md LICENSE
|
|
dodoc examples/config/pushpin.conf
|
|
|
|
newinitd "${FILESDIR}/pushpin.initd" pushpin
|
|
newconfd "${FILESDIR}/pushpin.initd" pushpin
|
|
|
|
systemd_dounit "${FILESDIR}/pushpin.service"
|
|
|
|
diropts -m 0750 -o pushpin -g pushpin
|
|
insinto /etc/pushpin
|
|
newins examples/config/pushpin.conf pushpin.conf
|
|
|
|
keepdir /var/lib/pushpin
|
|
keepdir /var/log/pushpin
|
|
}
|
|
|