Browse Source

sys-apps/calculate-server: обновление

* исправлены ошибки с декодированием
idziubenko 2693
idziubenko 2 months ago
parent
commit
430417d100
  1. 1
      sys-apps/calculate-server/Manifest
  2. 191
      sys-apps/calculate-server/calculate-server-2.3.8.ebuild

1
sys-apps/calculate-server/Manifest

@ -5,3 +5,4 @@ DIST calculate-server-2.3.4.tar.bz2 238318 BLAKE2B 302b00475f3a6ff3edc2f188a2fea
DIST calculate-server-2.3.5.tar.bz2 238118 BLAKE2B 859254831388dcf1e3f354801a9cc10e46e3aae179640b55be38efc16078819c445fa1db3a4b8d177674a747176d658fa0d424f50b136fe0393fce89690798de SHA512 a1d6aca2c8f86c22b31309a7c2dd959485a39fade05c927720aa439c03a0d092953680753c1df5ede9952d3cdce7a48c9e4955dbea4d4078b28867dd33085e36
DIST calculate-server-2.3.6.tar.bz2 238163 BLAKE2B bf8d37cf6d639efcae8354fbd2745273694ad9885b1a7dcd0cb7b30647290a29c8f2688929c5af48d9524f6041ec8ca46a7624b5110af20b7954d19a5889913c SHA512 d6de8b5977f161d0656b4b21e6ed8ed97713b1724f6ba6689348b04b2f1ccf1abffa3ba12ac923dc436514b7c798fa5e6eff9abe203ce92eca24b01c35098129
DIST calculate-server-2.3.7.tar.bz2 238191 BLAKE2B 0d31473ebdca8255924ffbe3f132a13ac45739cdd638abc6e812900b5f7d6c80b622b273d2bf2492ca10d8506b20f9d120cfe6cab53f60360d0186b530c74b64 SHA512 c8b3b5d76ca0320eac2b416e21c8a11b9094f9437a71372a0382066181e2e2b836d31bd837dee87a9c8c4492d547aff870f4b26115ae766b17d67391e7766c4c
DIST calculate-server-2.3.8.tar.bz2 238546 BLAKE2B ef2e07b2967406dbae66422650f3d60ff8b233bd302622670dc7933cf158ffa28cecab6080d2cedee9a13eea008d2032f36a615b98ebd24c0d8cf88bc86fcdc9 SHA512 6434263139651e68ab0d2869cbafeed31f1bb4bb595806509d5b45fa283f59665c2a3fe7b7ad7a5f7eb22c2e7dfa756eda45faefe3e87e999632852df0645e2b

191
sys-apps/calculate-server/calculate-server-2.3.8.ebuild

@ -0,0 +1,191 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="7"
PYTHON_COMPAT=(python3_9)
inherit distutils-r1
SRC_URI="ftp://ftp.calculate-linux.org/calculate/source/calculate2/${PN}/${P}.tar.bz2
http://mirror.yandex.ru/calculate/source/calculate2/${PN}/${P}.tar.bz2"
DESCRIPTION="Configuration utility for Linux services"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
IUSE="calculate_nomail
calculate_nodhcp
calculate_noftp
calculate_nojabber
calculate_nonamed
calculate_nosamba
calculate_noproxy"
DEPEND="!sys-apps/calculate-lib
acct-group/ldap
acct-user/ldap
>=net-nds/openldap-2.3[-minimal]
>=sys-auth/pam_ldap-180[ssl]
>=sys-auth/nss_ldap-239
!<sys-apps/calculate-utils-3.5.0_alpha44
!calculate_nosamba? (
|| (
<net-fs/samba-4[acl,client,cups,ldap,netapi,pam,server,smbclient]
>=net-fs/samba-4[acl,client,cups,ldap,pam]
)
)
!calculate_nomail? (
|| ( <net-mail/dovecot-1.2.0[pop3d,ldap,pam,ssl]
>=net-mail/dovecot-1.2.0[ldap,pam,ssl(+)]
)
>=mail-filter/procmail-3.22
dev-python/pymilter[python_targets_python3_9]
>=mail-mta/postfix-2.2[ldap,pam,ssl,sasl,dovecot-sasl]
)
!calculate_noftp? (
|| ( <net-ftp/proftpd-1.3.3[-acl,ldap,ncurses,nls,pam,ssl,tcpd]
>=net-ftp/proftpd-1.3.3[-acl,ident,ldap,ncurses,nls,pam,ssl,tcpd]
)
)
!calculate_nojabber? (
|| ( >=net-im/ejabberd-2.1.8[mod_pubsub,ldap]
>=net-im/ejabberd-16.04-r1[ldap] )
|| ( media-gfx/imagemagick
media-gfx/graphicsmagick )
)
!calculate_nonamed? ( >=net-dns/bind-9.6.1_p1[sdb-ldap] )
!calculate_noproxy? ( >=net-proxy/squid-3.0.14[ldap,pam,ssl] )
!calculate_nodhcp? ( >=net-misc/dhcp-3.1.2_p1 )
dev-python/python-ldap[ssl,python_targets_python3_9]
dev-python/lxml[python_targets_python3_9]
"
RDEPEND="${DEPEND}"
pkg_postinst() {
if [ -d /var/calculate/server-data/mail/imap ] || \
[ -d /var/calculate/server-data/samba/win/profiles ] || \
[ -d /var/calculate/server-data/samba/unix/profiles ] || \
[ -d /var/calculate/server-data/samba/win/netlogon ];
then
ewarn "Data found in directories of previous version calculate-server"
fi
if [ -d /var/calculate/server-data/mail/imap ];
then
if ! [ -d /var/calculate/server-data/mail~ ];
then
if mv /var/calculate/server-data/mail/imap \
/var/calculate/server-data/mail~ && \
rmdir /var/calculate/server-data/mail && \
mv /var/calculate/server-data/mail~ \
/var/calculate/server-data/mail;
then
ewarn
ewarn "Data from /var/calculate/server-data/mail/imap"
ewarn "was moved to /var/calculate/server-data/mail"
MAILUPDATE="TRUE"
fi
fi
if ! [ "${MAILUPDATE}" == "TRUE" ];
then
eerror "Cannot move /var/calculate/server-data/mail/imap"
eerror "Please manualy move /var/calculate/server-data/mail/imap"
eerror "to /var/calculate/server-data/mail"
fi
fi
if [ -d /var/calculate/server-data/samba/win/profiles ];
then
SAMBAUPDATE=""
if ! [ -d /var/calculate/server-data/samba/profiles/win ];
then
if mkdir -p /var/calculate/server-data/samba/profiles && \
mv /var/calculate/server-data/samba/win/profiles \
/var/calculate/server-data/samba/profiles/win;
then
ewarn
ewarn "Data from /var/calculate/server-data/samba/win/profiles"
ewarn "was moved to /var/calculate/server-data/samba/profiles/win"
SAMBAUPDATE="TRUE"
fi
fi
if ! [ "${SAMBAUPDATE}" == "TRUE" ];
then
eerror "Cannot move /var/calculate/server-data/samba/win/profiles"
eerror "Please manualy move "
eerror "/var/calculate/server-data/samba/win/profiles"
eerror "to /var/calculate/server-data/samba/profiles/win"
fi
fi
if [ -d /var/calculate/server-data/samba/unix/profiles ]; \
then
SAMBAUPDATE=""
if ! [ -d /var/calculate/server-data/samba/profiles/unix ];
then
if mkdir -p /var/calculate/server-data/samba/profiles && \
mv -f /var/calculate/server-data/samba/unix/profiles \
/var/calculate/server-data/samba/profiles/unix;
then
rmdir /var/calculate/server-data/samba/unix
ewarn
ewarn "Data from /var/calculate/server-data/samba/unix/profiles"
ewarn "was moved to /var/calculate/server-data/samba/profiles/unix"
SAMBAUPDATE="TRUE"
fi
fi
if ! [ "${SAMBAUPDATE}" == "TRUE" ];
then
eerror "Cannot move /var/calculate/server-data/samba/unix/profiles"
eerror "Please manualy move "
eerror "/var/calculate/server-data/samba/unix/profiles"
eerror "to /var/calculate/server-data/samba/profiles/unix"
fi
fi
if [ -d /var/calculate/server-data/samba/win/netlogon ];
then
SAMBAUPDATE=""
if ! [ -d /var/calculate/server-data/samba/netlogon ];
then
if mv -f /var/calculate/server-data/samba/win/netlogon \
/var/calculate/server-data/samba/netlogon;
then
rmdir /var/calculate/server-data/samba/win
ewarn
ewarn "Data form /var/calculate/server-data/samba/win/netlogon"
ewarn "was moved to /var/calculate/server-data/samba/netlogon"
SAMBAUPDATE="TRUE"
fi
fi
if ! [ "${SAMBAUPDATE}" == "TRUE" ];
then
eerror "Cannot move /var/calculate/server-data/samba/win/netlogon"
eerror "Please manualy move "
eerror "/var/calculate/server-data/samba/win/netlogon"
eerror "/var/calculate/server-data/samba/netlogon"
fi
fi
if [ "${MAILUPDATE}" == "TRUE" ];
then
ewarn
ewarn "Please update mail service by the command:"
ewarn "\tcl-update mail"
fi
if [ "${SAMBAUPDATE}" == "TRUE" ];
then
ewarn
ewarn "Please update samba service by the command:"
ewarn "\tcl-update samba"
fi
ewarn
ewarn "WARNING!!! If you have the samba service, then update it by the command:"
ewarn "\tcl-update samba"
}
Loading…
Cancel
Save