Ahojte,
už roky používám tento e-build na aktualizaci flexibee:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=6
inherit eutils java-pkg-2
DESCRIPTION="Czech Economic System."
SRC_URI="http://download.flexibee.eu/download/$(ver_cut 1-2)/$(ver_cut 1-4)/${P}.tar.gz"
HOMEPAGE="http://www.winstrom.cz/"
#LICENSE="WinStorm"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="logrotate server"
RESTRICT="nomirror"
DEPEND="|| (
>=virtual/jre-1.6
>=virtual/jdk-1.6
)"
RDEPEND="server? ( >=dev-db/postgresql-server-8.3[tcl] )
logrotate? ( app-admin/logrotate )
!app-office/winstrom"
S="${WORKDIR}/${P}"
LANGS="cs de en sk"
FONT_PATH=/usr/share/fonts
FONT_SUFFIX="ttf"
FONT_S=${S}${FONT_PATH}/truetype
FONT_PN=${PN}
pkg_setup() {
# user under which the winstrom server is running
enewuser flexibee 120 -1 /tmp nobody
}
src_unpack() {
# convert deb to tar.gz and unpack it
unpack ${A}
# change the postgres port
sed -i 's/5435/5432/' ${S}/etc/${PN}/${PN}-server.xml || die
# move winstrom jars into the temp dir, delete the rest and move it back
# link all system libraries
}
src_compile() {
:;
}
src_install() {
if use server; then
# configuration
insinto /etc/${PN}
doins etc/${PN}/${PN}-server.xml
fowners ${PN}:root /etc/${PN}/${PN}-server.xml
fperms 600 /etc/${PN}/${PN}-server.xml
# config script
newconfd ${FILESDIR}/${PN}-server.conf ${PN}-server
# init script
newinitd ${FILESDIR}/${PN}-server.init ${PN}-server
fi
# logrotate script
if use logrotate ; then
insinto /etc/logrotate.d
doins etc/logrotate.d/${PN}
fi
# splash screen
insinto /usr/share/${PN}
doins usr/share/${PN}/${PN}-logo-small.png
doins usr/share/${PN}/${PN}-splash.png
# libraries
java-pkg_dojar usr/share/${PN}/lib/*.jar
# launcher, server, client and VERSION
insinto /usr/share/${PN}/lib
doins usr/share/${PN}/lib/*.txt
# fonts
insinto ${FONT_PATH}/${FONT_PN}
doins ${FONT_S}/*.${FONT_SUFFIX}
# I don't know how to use the following command with the EAPI="7"
#font_src_install
# icon
doicon usr/share/pixmaps/${PN}.png
# doc
dodoc usr/share/doc/${PN}/* || die
# create wrapper script for the server
java-pkg_dolauncher ${PN}-server --main cz.winstrom.net.server.WinStromServer --pkg_args "-c /etc/${PN}/${PN}-server.xml --daemon" --java_args "-Xmx200m -server -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=10 -Djava.awt.headless=true -XX:CompileThreshold=16384 -XX:-OmitStackTraceInFastThrow"
dodir /usr/sbin
mv ${D}/usr/bin/${PN}-server ${D}/usr/sbin || die
# install mime types
insinto /usr/share/mimelnk/application/
doins usr/share/mimelnk/application/*
insinto /usr/share/mime/packages/
doins usr/share/mime/packages/*
# default file
dodir /etc/default
head -n6 etc/default/${PN} | tail -n2 > ${D}/etc/default/${PN}
# create wrapper script for the client
java-pkg_dolauncher ${PN} --main org.codehaus.classworlds.Launcher --java_args "-cp /usr/share/flexibee/lib/classworlds-1.1.jar -splash:/usr/share/${PN}/${PN}.png -Xmx512m -client -XX:MaxPermSize=128m -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:-OmitStackTraceInFastThrow -Dwinstromdir=/usr/share/${PN}/lib -Dclassworlds.conf=/usr/share/${PN}/lib/launcher.txt"
# desktop entry
make_desktop_entry ${PN} "FlexiBee" /usr/share/pixmaps/${PN}.png "Office"
}
pkg_postinst() {
elog
if use server ;then
elog "To make FlexiBee working, you have to start up the PostgreSQL server first."
elog "Then, you have to create FlexiBee DB admin (with password '7971'):"
elog "$ createuser -a -d -P -E -U postgres -W dba"
elog
elog "Use the /etc/init.d/${PN}-server script to start up the FlexiBee server."
elog
fi
elog "You can start up the FlexiBee application by /usr/bin/${PN}."
elog
elog "Fist time you start the FlexiBee application, go into the 'Advanced settings',"
elog "click on 'Data source management' button and 'Add' new 'Data source' with"
elog "'Server address' 127.0.0.1 and 'Server port' 5434."
elog
}
teď když jsem si chtěl aktualizovat ebuild, tak dostávám hlášku:
localhost /usr/local/portage/app-office/flexibee # ebuild flexibee-2023.4.4.ebuild digest
!!! getFetchMap(): 'app-office/flexibee-2023.4.4' has unsupported EAPI: '9'
Co se
změnilo v ebuildech?
Předem děkuji za odpověď.