mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
net-misc/iipsrv: new package
Merge request for new net-misc/iipsrv package with user and group accounts (both set to -1) for the server process in acct-user/iipsrv and acct--group/iipsrv. net-misc/iipsrv includes both OpenRC and Systemd files and configuration.
iipsrv is an image server and transcoder for high resolution and scientific images that supports the IIP, IIIF, Deepzoom and Zoomify APIs (https://iipimage.sourceforge.io)
Signed-off-by: Ruven Pillay <someone@users.sourceforge.net>
This commit is contained in:
77
net-misc/iipsrv/iipsrv-1.2.ebuild
Normal file
77
net-misc/iipsrv/iipsrv-1.2.ebuild
Normal file
@@ -0,0 +1,77 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="High performance image server for high resolution and scientific images"
|
||||
HOMEPAGE="https://iipimage.sourceforge.io"
|
||||
SRC_URI="mirror://sourceforge/iipimage/IIP%20Server/${P}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
IUSE="zlib png webp jpeg2k memcached lighttpd apache2"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/fcgi
|
||||
media-libs/libjpeg-turbo
|
||||
media-libs/tiff
|
||||
memcached? ( dev-libs/libmemcached-awesome )
|
||||
png? ( media-libs/libpng )
|
||||
webp? ( media-libs/libwebp )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
apache2? ( www-servers/apache[apache2_modules_proxy,apache2_modules_proxy_fcgi] )
|
||||
lighttpd? ( www-servers/lighttpd )"
|
||||
|
||||
RDEPEND="
|
||||
acct-user/iipsrv
|
||||
acct-group/iipsrv
|
||||
${DEPEND}"
|
||||
|
||||
BDEPEND="${DEPEND}"
|
||||
|
||||
# Skip autoconf m4 macro warning
|
||||
QA_CONFIG_IMPL_DECL_SKIP=( TIFFGetVersion )
|
||||
|
||||
# Patches to add missing include to RawTile class and remove bundled libfcgi sources
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-rawtile.patch"
|
||||
"${FILESDIR}/${P}-make.patch"
|
||||
)
|
||||
|
||||
src_install() {
|
||||
|
||||
# Rename and install our binary
|
||||
newsbin src/iipsrv.fcgi iipsrv
|
||||
doman man/iipsrv.8
|
||||
|
||||
# Install systemd service
|
||||
systemd_newunit "${FILESDIR}"/${PN}.systemd.service iipsrv.service
|
||||
# Install systemd environment file
|
||||
insinto /etc/default/
|
||||
newins "${FILESDIR}"/${PN}.systemd.conf iipsrv
|
||||
|
||||
# Install OpenRC script and config
|
||||
newinitd "${FILESDIR}"/iipsrv.initd iipsrv
|
||||
newconfd "${FILESDIR}"/iipsrv.confd iipsrv
|
||||
|
||||
# Install Lighttpd configuration
|
||||
if use lighttpd ; then
|
||||
elog "Installing Lighttpd configuration ..."
|
||||
elog "Add line 'include \"iipsrv.conf\"' to /etc/lighttpd/lighttpd.conf and (re)start Lighttpd"
|
||||
insinto /etc/lighttpd/
|
||||
newins "${FILESDIR}"/iipsrv.lighttpd.conf iipsrv.conf
|
||||
fi
|
||||
|
||||
# Install Apache configuration
|
||||
if use apache2 ; then
|
||||
elog "Installing Apache configuration ..."
|
||||
elog "Define PROXY in /etc/conf.d/apache2 and (re)start Apache"
|
||||
insinto /etc/apache2/modules.d/
|
||||
newins "${FILESDIR}"/iipsrv.apache2.conf 20_iipsrv.conf
|
||||
fi
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user