commit: 5f58f13cc30513963d7936a6a50245b6543d897e Author: Ruven Pillay <someone <AT> users <DOT> sourceforge <DOT> net> AuthorDate: Thu May 29 21:49:09 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Thu May 29 21:49:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5f58f13c
net-misc/iipsrv: add 1.3 Signed-off-by: Ruven Pillay <someone <AT> users.sourceforge.net> net-misc/iipsrv/Manifest | 1 + net-misc/iipsrv/iipsrv-1.3.ebuild | 76 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/net-misc/iipsrv/Manifest b/net-misc/iipsrv/Manifest index 345b1c5a52..91e9ed4d5c 100644 --- a/net-misc/iipsrv/Manifest +++ b/net-misc/iipsrv/Manifest @@ -1 +1,2 @@ DIST iipsrv-1.2.tar.bz2 719024 BLAKE2B be1afb93f6367f58fd68c71b6e80c53601160b21cf90c76b42fef722d428555a2f0389864824c85db298112eef97f1ff6b3a5e345491a0096df11e123945872c SHA512 76d7dee476384e24dc13c8e37ed14999c8c584742303456cbc893eb11b2e5e6effe01f208f84830cefb48694290252908826550bf89d0fb1a8c6c82f1bc30fcd +DIST iipsrv-1.3.tar.bz2 3222581 BLAKE2B 16841e1f9e0a953e9a53a5f8530a57a44e931662f032af393f4e7f3e8e0d8ec1523c4e5613cc41598b5c4a9160db7c93df651f4ba52e59587411283d18172196 SHA512 91d23a9890f7d45d98065ae6b25f8292bb5c06bbc40dad494f0cdfb5dfede1f3e5b30cf76c504718bf0bf898503e12ca08899a34503da54617a79dedd8c5f682 diff --git a/net-misc/iipsrv/iipsrv-1.3.ebuild b/net-misc/iipsrv/iipsrv-1.3.ebuild new file mode 100644 index 0000000000..c947852462 --- /dev/null +++ b/net-misc/iipsrv/iipsrv-1.3.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 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="https://downloads.sourceforge.net/iipimage/IIP%20Server/${P}/${P}.tar.bz2" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +IUSE="png webp avif 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 ) + avif? ( media-libs/libavif ) + 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}" + +src_configure() { + econf \ + $(use_enable memcached libmemcached) \ + $(use_enable jpeg2k openjpeg) \ + $(use_enable png) \ + $(use_enable webp) \ + $(use_enable avif) +} + +src_install() { + + emake DESTDIR="${D}" install + + # 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 scripts/openrc/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 + +}
