Сравнение calculate-server-2.1.19-r15 с calculate-server-2.1.9999

/var/lib/layman/calculate/sys-apps/calculate-server/calculate-server-2.1.9999.ebuild 2020-09-24 12:43:15.000000000 +0300
1
# Copyright 1999-2012 Gentoo Foundation
1
# Copyright 1999-2011 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3
# $Header: $
4 4

  
5 5
EAPI="5"
6
PYTHON_COMPAT=(python{2_6,2_7})
6
PYTHON_COMPAT=(python2_7)
7 7

  
8
inherit distutils-r1 eutils
8
inherit distutils-r1 git-r3
9 9

  
10
SRC_URI="ftp://ftp.calculate-linux.org/calculate/source/calculate2/${PN}/${P}.tar.bz2
11
	http://mirror.yandex.ru/calculate/source/calculate2/${PN}/${P}.tar.bz2"
10
EGIT_REPO_URI="git://git.calculate-linux.org/calculate-2.1/calculate-server.git"
12 11

  
13 12
DESCRIPTION="Configuration utility for Linux services"
14 13
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
15 14
LICENSE="Apache-2.0"
16 15
SLOT="0"
17
KEYWORDS="amd64 x86"
16
KEYWORDS=""
18 17

  
19
IUSE="calculate_nomail
20
calculate_nodhcp
21
calculate_noftp
22
calculate_nojabber
23
calculate_nonamed
24
calculate_nosamba
25
calculate_noproxy"
18
IUSE=""
26 19

  
27
DEPEND="=sys-apps/calculate-lib-2.1.12-r5
20
DEPEND="=sys-apps/calculate-lib-9999
28 21
	>=net-nds/openldap-2.3[-minimal]
29 22
	>=sys-auth/pam_ldap-180[ssl]
30 23
	>=sys-auth/nss_ldap-239
31
	!<sys-apps/calculate-utils-3.5.0_alpha44
32
	!calculate_nosamba? (
33
		|| ( 
34
			<net-fs/samba-4[acl,client,cups,ldap,netapi,pam,server,smbclient]
35
			>=net-fs/samba-4[acl,client,cups,ldap,pam]
36
		)
24
	>=net-fs/samba-3.4.6[acl,client,cups,ldap,netapi,pam,server,smbclient]
25
	<net-fs/samba-4.0.0
26
	|| (
27
			<net-mail/dovecot-1.2.0[pop3d,ldap,pam,ssl]
28
			>=net-mail/dovecot-1.2.0[ldap,pam,ssl]
37 29
	)
38
	!calculate_nomail? ( 
39
		|| ( <net-mail/dovecot-1.2.0[pop3d,ldap,pam,ssl]
40
			>=net-mail/dovecot-1.2.0[ldap,pam,ssl(+)]
41
		)
42
		>=mail-filter/procmail-3.22
43
		dev-python/pymilter-python2
44
		>=mail-mta/postfix-2.2[ldap,pam,ssl,sasl,dovecot-sasl]
45
	)
46
	!calculate_noftp? (
47
		|| ( <net-ftp/proftpd-1.3.3[-acl,ldap,ncurses,nls,pam,ssl,tcpd]
48
			>=net-ftp/proftpd-1.3.3[-acl,ident,ldap,ncurses,nls,pam,ssl,tcpd]
49
		)
50
	)
51
	!calculate_nojabber? (
52
		|| ( >=net-im/ejabberd-2.1.8[mod_pubsub,ldap]
53
			>=net-im/ejabberd-16.04-r1[ldap] )
54
		|| ( media-gfx/imagemagick
55
			media-gfx/graphicsmagick )
56
	)
57
	!calculate_nonamed? ( >=net-dns/bind-9.6.1_p1[sdb-ldap] )
58
	!calculate_noproxy? ( >=net-proxy/squid-3.0.14[ldap,pam,ssl] )
59
	!calculate_nodhcp? ( >=net-misc/dhcp-3.1.2_p1 )"
30
	>=mail-mta/postfix-2.2[ldap,pam,ssl]
31
	>=net-ftp/proftpd-1.3.1[-acl,ldap,ncurses,nls,pam,radius,ssl,tcpd]
32
	>=mail-filter/procmail-3.22
33
	>=net-dns/bind-9.6.1_p1[sdb-ldap]
34
	>=net-proxy/squid-3.0.14[ldap,pam,ssl]
35
	>=net-misc/dhcp-3.1.2_p1
36
	|| ( media-gfx/imagemagick
37
		media-gfx/graphicsmagick )
38
	dev-python/pymilter-python2"
60 39

  
61 40
RDEPEND="${DEPEND}"
62

  
63
PATCHES=(
64
		"${FILESDIR}"/calculate-server-2.1.19-fix_sortmilter.patch
65
		"${FILESDIR}"/calculate-server-2.1.19-fix_mailservice.patch
66
		"${FILESDIR}"/calculate-server-2.1.19-fix_certgen.patch
67
		"${FILESDIR}"/calculate-server-2.1.19-fix_jabber.patch
68
		"${FILESDIR}"/calculate-server-2.1.19-fix_gendh.patch
69
		"${FILESDIR}"/calculate-server-2.1.19-fix_samba4.11.patch
70
)
71

  
72
pkg_postinst() {
73
	if [ -d /var/calculate/server-data/mail/imap ] || \
74
		[ -d /var/calculate/server-data/samba/win/profiles ] || \
75
		[ -d /var/calculate/server-data/samba/unix/profiles ] || \
76
		[ -d /var/calculate/server-data/samba/win/netlogon ];
77
	then
78
		ewarn "Data found in directories of previous version calculate-server"
79
	fi
80

  
81
	if [ -d /var/calculate/server-data/mail/imap ];
82
	then
83
		if ! [ -d /var/calculate/server-data/mail~ ];
84
		then
85
			if mv /var/calculate/server-data/mail/imap \
86
				/var/calculate/server-data/mail~ && \
87
				rmdir /var/calculate/server-data/mail && \
88
				mv /var/calculate/server-data/mail~ \
89
					/var/calculate/server-data/mail;
90
			then
91
				ewarn
92
				ewarn "Data from /var/calculate/server-data/mail/imap"
93
				ewarn "was moved to /var/calculate/server-data/mail"
94
				MAILUPDATE="TRUE"
95
			fi
96
		fi
97
		if ! [ "${MAILUPDATE}" == "TRUE" ];
98
		then
99
			eerror "Cannot move /var/calculate/server-data/mail/imap"
100
			eerror "Please manualy move /var/calculate/server-data/mail/imap"
101
			eerror "to /var/calculate/server-data/mail"
102
		fi
103
	fi
104

  
105
	if [ -d /var/calculate/server-data/samba/win/profiles ];
106
	then
107
		SAMBAUPDATE=""
108
		if ! [ -d /var/calculate/server-data/samba/profiles/win ];
109
		then
110
			if mkdir -p /var/calculate/server-data/samba/profiles && \
111
				mv  /var/calculate/server-data/samba/win/profiles \
112
					/var/calculate/server-data/samba/profiles/win;
113
			then
114
				ewarn
115
				ewarn "Data from /var/calculate/server-data/samba/win/profiles"
116
				ewarn "was moved to /var/calculate/server-data/samba/profiles/win"
117
				SAMBAUPDATE="TRUE"
118
			fi
119
		fi
120
		if ! [ "${SAMBAUPDATE}" == "TRUE" ];
121
		then
122
			eerror "Cannot move /var/calculate/server-data/samba/win/profiles"
123
			eerror "Please manualy move "
124
			eerror "/var/calculate/server-data/samba/win/profiles"
125
			eerror "to /var/calculate/server-data/samba/profiles/win"
126
		fi
127
	fi
128

  
129
	if [ -d /var/calculate/server-data/samba/unix/profiles ]; \
130
	then
131
		SAMBAUPDATE=""
132
		if ! [ -d /var/calculate/server-data/samba/profiles/unix ];
133
		then
134
			if mkdir -p /var/calculate/server-data/samba/profiles && \
135
				mv -f /var/calculate/server-data/samba/unix/profiles \
136
					/var/calculate/server-data/samba/profiles/unix;
137
			then
138
				rmdir /var/calculate/server-data/samba/unix
139
				ewarn
140
				ewarn "Data from /var/calculate/server-data/samba/unix/profiles"
141
				ewarn "was moved to /var/calculate/server-data/samba/profiles/unix"
142
				SAMBAUPDATE="TRUE"
143
			fi
144
		fi
145
		if ! [ "${SAMBAUPDATE}" == "TRUE" ];
146
		then
147
			eerror "Cannot move /var/calculate/server-data/samba/unix/profiles"
148
			eerror "Please manualy move "
149
			eerror "/var/calculate/server-data/samba/unix/profiles"
150
			eerror "to /var/calculate/server-data/samba/profiles/unix"
151
		fi
152
	fi
153

  
154
	if [ -d /var/calculate/server-data/samba/win/netlogon ];
155
	then
156
		SAMBAUPDATE=""
157
		if ! [ -d /var/calculate/server-data/samba/netlogon ];
158
		then
159
			if mv -f /var/calculate/server-data/samba/win/netlogon \
160
				/var/calculate/server-data/samba/netlogon;
161
			then
162
				rmdir /var/calculate/server-data/samba/win
163
				ewarn
164
				ewarn "Data form /var/calculate/server-data/samba/win/netlogon"
165
				ewarn "was moved to /var/calculate/server-data/samba/netlogon"
166
				SAMBAUPDATE="TRUE"
167
			fi
168
		fi
169
		if ! [ "${SAMBAUPDATE}" == "TRUE" ];
170
		then
171
			eerror "Cannot move /var/calculate/server-data/samba/win/netlogon"
172
			eerror "Please manualy move "
173
			eerror "/var/calculate/server-data/samba/win/netlogon"
174
			eerror "/var/calculate/server-data/samba/netlogon"
175
		fi
176
	fi
177

  
178
	if [ "${MAILUPDATE}" == "TRUE" ];
179
	then
180
	    ewarn
181
		ewarn "Please update mail service by the command:"
182
		ewarn "\tcl-update mail"
183
	fi
184
	if [ "${SAMBAUPDATE}" == "TRUE" ];
185
	then
186
	    ewarn
187
		ewarn "Please update samba service by the command:"
188
		ewarn "\tcl-update samba"
189
	fi
190

  
191
	ewarn
192
	ewarn "WARNING!!! If you have the samba service, then update it by the command:"
193
	ewarn "\tcl-update samba"
194
}
Спасибо!