Ebuild calculate-server-2.0.6

git-svn-id: http://svn.calculate.ru/overlay@824 c91db197-33c1-4113-bf15-f8a5c547ca64
atratsevskiy
mhiretskiy 16 years ago
parent 6fe9f848bd
commit 86fd2a91aa

@ -9,5 +9,5 @@ EBUILD calculate-server-0.0.2.ebuild 939 RMD160 d5123ad072aedbcac57fd07969b08faf
EBUILD calculate-server-0.0.3.ebuild 968 RMD160 30d3bc23ad5311d58c703e4b77134aa81ab07998 SHA1 6c079e03db00fa11a9466b38173eb0661ef8d875 SHA256 6d652371631ba6ca1fa4debee0497771dc76b6945378ce187e08474d63d3fd7b
EBUILD calculate-server-0.0.4-r1.ebuild 892 RMD160 9b78392c3cb61074e0b1ee7a79e37bef3710f722 SHA1 1743d80e3b8629c842b3c28b7dafb05aed035ffc SHA256 2706b4903cc2767b2deced650d36970c8c77d90225191067f6f66893fa073f3c
EBUILD calculate-server-2.0.5.ebuild 853 RMD160 3aab034156e448837c14c230334263fb68e8ed15 SHA1 6f934595494d92f293449bf20c5b3a1e6339f127 SHA256 37fce3bc1950bb3c3e62375561888613f55064be559394cfd2fce4620f9ccb6c
EBUILD calculate-server-2.0.6.ebuild 3388 RMD160 b50f379754e8db4b153a48212029697a284145ca SHA1 a0981ddf49a895630d1821a2f13dc801f8617fa0 SHA256 24a0befd4863ead8e1a021da35b62b81ee4eef16273582dd3b64103addd6815b
EBUILD calculate-server-2.0.6.ebuild 4592 RMD160 b59629f5f940cfe19dea07146bc98c4bd5a0afe8 SHA1 ce86369b7efa1993b7c9c38bb6841ea5b322e89d SHA256 3c49a6b6fdaae025a5645810239ed1694e968f2065bafb462747d65bf20e1aba
EBUILD calculate-server-9999.ebuild 951 RMD160 7b03c54fdf831429796ca7422842097becaf71f4 SHA1 b43de3f35cf84ad28a1eafa9d88d479d1beb73f6 SHA256 012a8322e69f4b40c354bec1bc27e91d5fa426d089f1045ef56a90d7d47ae243

@ -0,0 +1,145 @@
# Copyright 2008 Calculate Pack, http://www.calculate-linux.ru
# Distributed under the terms of the GNU General Public License v2
EAPI="2"
inherit distutils
SRC_URI="ftp://ftp.local.calculate.ru/pub/calculate2/${PN}/${P}.tar.bz2"
DESCRIPTION="The program for configuring services Linux"
HOMEPAGE="http://www.calculate-linux.ru/Calculate_2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="=sys-apps/calculate-lib-2.0.8
>=net-nds/openldap-2.3
>=sys-auth/pam_ldap-180[ssl]
>=sys-auth/nss_ldap-239
>=net-fs/samba-3.0[acl,cups,kernel_linux,ldap,pam]
>=net-mail/dovecot-1.0[pop3d,ldap,pam,ssl]
>=net-im/calculate-ejabberd-2.0.2[ldap,pam,ssl,zlib]
>=mail-mta/postfix-2.2[ldap,pam,ssl]
>=net-ftp/proftpd-1.3.1[ldap,ncurses,nls,pam,radius,ssl,tcpd]
>=mail-filter/procmail-3.22"
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
}
Loading…
Cancel
Save