Сравнение dbmail-3.2.3-r5 с dbmail-3.2.5-r2

/usr/portage/net-mail/dbmail/dbmail-3.2.5-r2.ebuild 2023-10-09 14:52:34.608368479 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
inherit readme.gentoo-r1 systemd
6
inherit systemd readme.gentoo-r1
7 7

  
8 8
DESCRIPTION="Fast and scalable sql based email services"
9 9
HOMEPAGE="https://www.dbmail.org/"
......
11 11

  
12 12
LICENSE="GPL-2"
13 13
SLOT="0"
14
KEYWORDS="amd64 x86"
15
IUSE="ldap sieve ssl"
14
KEYWORDS="~amd64 ~x86"
15
IUSE="+doc jemalloc ldap sieve ssl static systemd"
16 16

  
17
RDEPEND="
18
	acct-group/dbmail
19
	acct-user/dbmail
17
DEPEND="dev-db/libzdb
18
	sieve? ( >=mail-filter/libsieve-2.2.1 )
19
	ldap? ( >=net-nds/openldap-2.3.33:= )
20
	jemalloc? ( dev-libs/jemalloc:= )
21
	elibc_musl? ( sys-libs/queue-standalone )
20 22
	app-text/asciidoc
21
	app-crypt/mhash
22 23
	app-text/xmlto
23
	dev-db/libzdb
24
	>=dev-libs/glib-2.16
24
	app-crypt/mhash
25
	sys-libs/zlib
25 26
	dev-libs/gmime:2.6
27
	>=dev-libs/glib-2.16
26 28
	dev-libs/libevent:=
27
	sys-libs/zlib
28 29
	virtual/libcrypt:=
29
	ldap? ( >=net-nds/openldap-2.3.33:= )
30
	sieve? ( >=mail-filter/libsieve-2.2.1 )
31 30
	ssl? (
32 31
		dev-libs/openssl:=
33 32
	)"
34
DEPEND="${RDEPEND}
35
	elibc_musl? ( sys-libs/queue-standalone )"
36
BDEPEND="virtual/pkgconfig"
37

  
38
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
39

  
40
DOC_CONTENTS="Please read the INSTALL file in /usr/share/doc/${PF}/
41
for remaining instructions on setting up dbmail users and
42
for finishing configuration to connect to your MTA and
43
to connect to your db.
44
DBMail requires either SQLite, PostgreSQL or MySQL.
45
Database schemes can be found in /usr/share/doc/${PF}/
46
You will also want to follow the installation instructions
47
on setting up the maintenance program to delete old messages.
48
Don't forget to edit /etc/dbmail/dbmail.conf as well.
49
For regular maintenance, add this to crontab:
50
0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1
51
Please make sure to run etc-update.
52
If you get an error message about plugins not found
53
please add the library_directory configuration switch to
54
dbmail.conf and set it to the correct path
55
(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)
56
A sample can be found in dbmail.conf.dist after etc-update.
57
We are now using the init script from upstream.
58
Please edit /etc/conf.d/dbmail to set which services to start
59
and delete /etc/init.d/dbmail-* when you are done. (don't
60
forget to rc-update del dbmail-* first)
61
Changed pid directory to /run/dbmail (see
62
http://www.dbmail.org/mantis/view.php?id=949 for details)
63
The database config has changed to support libzdb db URI
64
Please check the documentation (or Bug #479664)
65
The database schema has changed since 3.0.x make sure
66
to run the migration script
67
Please be aware, that the single init-script for all services
68
has been replaced with seperate init scripts for the individual services.
69
Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update
70
and remove dbmail if you want to take advantage of this change."
33
RDEPEND="${DEPEND}
34
	acct-group/dbmail
35
	acct-user/dbmail"
36
DEPEND+=" elibc_musl? ( sys-libs/queue-standalone )"
37
DOCS=( AUTHORS README.md INSTALL THANKS UPGRADING )
71 38

  
72
src_prepare() {
73
	default
39
README_GENTOO_SUFFIX=""
74 40

  
41
src_prepare() {
42
	sed -i -e "s:nobody:dbmail: ; s:nogroup:dbmail: ; s:/var/run:/run/dbmail:" dbmail.conf || die
75 43
	# change config path to our default and use the conf.d and init.d files from the contrib dir
76 44
	sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail || die
77 45

  
78
	sed -i \
79
		-e "s:nobody:dbmail:" \
80
		-e "s:nogroup:dbmail:" \
81
		-e "s:/var/run:/run/dbmail:" \
82
		dbmail.conf || die
46
	default
83 47
}
84 48

  
85 49
src_configure() {
86 50
	econf \
87 51
		--enable-manpages \
88
		--enable-systemd \
89 52
		--sysconfdir=/etc/dbmail \
90
		--disable-static \
53
		$(use_enable doc manpages) \
54
		$(use_enable static) \
55
		$(use_enable systemd) \
56
		$(use_with jemalloc) \
91 57
		$(use_with sieve) \
92 58
		$(use_with ldap auth-ldap)
93 59
}
......
95 61
src_install() {
96 62
	emake DESTDIR="${D}" SYSTEMD_UNIT_DIR="$(systemd_get_systemunitdir)" install
97 63
	einstalldocs
98
	dodoc UPGRADING
99 64

  
100 65
	docompress -x /usr/share/doc/${PF}/sql
101 66
	dodoc -r sql
102 67
	dodoc -r test-scripts
103 68
	dodoc -r contrib
69
	## TODO: install other contrib stuff
104 70

  
105 71
	insinto /etc/dbmail
106 72
	newins dbmail.conf dbmail.conf.dist
......
117 83
	# ldap schema
118 84
	if use ldap; then
119 85
		insinto /etc/openldap/schema
120
		doins dbmail.schema
86
		doins "${S}/dbmail.schema"
121 87
	fi
122 88

  
123 89
	keepdir /var/lib/dbmail
......
125 91
	fowners dbmail:dbmail /var/lib/dbmail
126 92

  
127 93
	readme.gentoo_create_doc
128

  
129
	find "${ED}" -name '*.la' -delete || die
130 94
}
131 95

  
132 96
pkg_postinst() {
Спасибо!