1 |
commit: 17bd69229c5aefcc8c9cd03c3b562f22c8cba865 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Thu Jan 7 10:13:56 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 7 10:13:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17bd6922 |
7 |
|
8 |
net-mail/dbmail: Remove old |
9 |
|
10 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
net-mail/dbmail/dbmail-3.2.3-r1.ebuild | 136 --------------------------------- |
14 |
1 file changed, 136 deletions(-) |
15 |
|
16 |
diff --git a/net-mail/dbmail/dbmail-3.2.3-r1.ebuild b/net-mail/dbmail/dbmail-3.2.3-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 9ac49a99e82..00000000000 |
19 |
--- a/net-mail/dbmail/dbmail-3.2.3-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,136 +0,0 @@ |
22 |
-# Copyright 1999-2018 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit versionator user |
28 |
- |
29 |
-DESCRIPTION="Enables storage of mail messages in a relational database" |
30 |
-HOMEPAGE="http://www.dbmail.org/" |
31 |
-SRC_URI="http://www.dbmail.org/download/$(get_version_component_range 1-2)/${P}.tar.gz" |
32 |
- |
33 |
-LICENSE="GPL-2" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="amd64 x86" |
36 |
-IUSE="ldap libressl sieve ssl static" |
37 |
- |
38 |
-DEPEND="dev-db/libzdb |
39 |
- sieve? ( >=mail-filter/libsieve-2.2.1 ) |
40 |
- ldap? ( >=net-nds/openldap-2.3.33 ) |
41 |
- app-text/asciidoc |
42 |
- app-text/xmlto |
43 |
- app-crypt/mhash |
44 |
- sys-libs/zlib |
45 |
- dev-libs/gmime:2.6 |
46 |
- >=dev-libs/glib-2.16 |
47 |
- dev-libs/libevent |
48 |
- ssl? ( |
49 |
- !libressl? ( dev-libs/openssl:0= ) |
50 |
- libressl? ( dev-libs/libressl:0= ) |
51 |
- )" |
52 |
-RDEPEND="${DEPEND}" |
53 |
- |
54 |
-DOCS="AUTHORS README.md INSTALL THANKS UPGRADING" |
55 |
- |
56 |
-pkg_setup() { |
57 |
- enewgroup dbmail |
58 |
- enewuser dbmail -1 -1 /var/lib/dbmail dbmail |
59 |
-} |
60 |
- |
61 |
-src_configure() { |
62 |
- econf \ |
63 |
- --enable-manpages \ |
64 |
- --sysconfdir=/etc/dbmail \ |
65 |
- $(use_enable static) \ |
66 |
- $(use_with sieve) \ |
67 |
- $(use_with ldap auth-ldap) |
68 |
-} |
69 |
- |
70 |
-src_install() { |
71 |
- default |
72 |
- |
73 |
- docompress -x /usr/share/doc/${PF}/sql |
74 |
- dodoc -r sql |
75 |
- dodoc -r test-scripts |
76 |
- dodoc -r contrib |
77 |
- ## TODO: install other contrib stuff |
78 |
- |
79 |
- sed -i -e "s:nobody:dbmail:" dbmail.conf || die |
80 |
- sed -i -e "s:nogroup:dbmail:" dbmail.conf || die |
81 |
- sed -i -e "s:/var/run:/run/dbmail:" dbmail.conf || die |
82 |
- |
83 |
- insinto /etc/dbmail |
84 |
- newins dbmail.conf dbmail.conf.dist |
85 |
- |
86 |
- # change config path to our default and use the conf.d and init.d files from the contrib dir |
87 |
- sed -i -e "s:/etc/dbmail.conf:/etc/dbmail/dbmail.conf:" contrib/startup-scripts/gentoo/init.d-dbmail || die |
88 |
- #sed -i -e "s:exit 0:return 1:" contrib/startup-scripts/gentoo/init.d-dbmail || die |
89 |
- #sed -i -e "s:/var/run:/var/run/dbmail:" contrib/startup-scripts/gentoo/init.d-dbmail || die |
90 |
- #newconfd contrib/startup-scripts/gentoo/conf.d-dbmail dbmail |
91 |
- #newinitd contrib/startup-scripts/gentoo/init.d-dbmail dbmail |
92 |
- # use custom init scripts until updated in upstream contrib |
93 |
- newinitd "${FILESDIR}/dbmail-imapd.initd" dbmail-imapd |
94 |
- newinitd "${FILESDIR}/dbmail-lmtpd.initd" dbmail-lmtpd |
95 |
- newinitd "${FILESDIR}/dbmail-pop3d.initd" dbmail-pop3d |
96 |
- newinitd "${FILESDIR}/dbmail-timsieved.initd" dbmail-timsieved |
97 |
- sed -i -e "s:/var/run:/run:" "${D}"/etc/init.d/dbmail-* || die |
98 |
- |
99 |
- dobin contrib/mailbox2dbmail/mailbox2dbmail |
100 |
- doman contrib/mailbox2dbmail/mailbox2dbmail.1 |
101 |
- |
102 |
- # ldap schema |
103 |
- if use ldap; then |
104 |
- insinto /etc/openldap/schema |
105 |
- doins "${S}/dbmail.schema" |
106 |
- fi |
107 |
- |
108 |
- keepdir /var/lib/dbmail |
109 |
- fperms 750 /var/lib/dbmail |
110 |
- fowners dbmail:dbmail /var/lib/dbmail |
111 |
- # create this through init-scripts instead of at install time (bug #455002) |
112 |
- #keepdir /run/dbmail |
113 |
- #fowners dbmail:dbmail /run/dbmail |
114 |
-} |
115 |
- |
116 |
-pkg_postinst() { |
117 |
- elog "Please read the INSTALL file in /usr/share/doc/${PF}/" |
118 |
- elog "for remaining instructions on setting up dbmail users and " |
119 |
- elog "for finishing configuration to connect to your MTA and " |
120 |
- elog "to connect to your db." |
121 |
- echo |
122 |
- elog "DBMail requires either SQLite, PostgreSQL or MySQL." |
123 |
- elog "Database schemes can be found in /usr/share/doc/${PF}/" |
124 |
- elog "You will also want to follow the installation instructions" |
125 |
- elog "on setting up the maintenance program to delete old messages." |
126 |
- elog "Don't forget to edit /etc/dbmail/dbmail.conf as well." |
127 |
- echo |
128 |
- elog "For regular maintenance, add this to crontab:" |
129 |
- elog "0 3 * * * /usr/bin/dbmail-util -cpdy >/dev/null 2>&1" |
130 |
- echo |
131 |
- elog "Please make sure to run etc-update." |
132 |
- elog "If you get an error message about plugins not found" |
133 |
- elog "please add the library_directory configuration switch to" |
134 |
- elog "dbmail.conf and set it to the correct path" |
135 |
- elog "(usually /usr/lib/dbmail or /usr/lib64/dbmail on amd64)" |
136 |
- elog "A sample can be found in dbmail.conf.dist after etc-update." |
137 |
- echo |
138 |
- elog "We are now using the init script from upstream." |
139 |
- elog "Please edit /etc/conf.d/dbmail to set which services to start" |
140 |
- elog "and delete /etc/init.d/dbmail-* when you are done. (don't" |
141 |
- elog "forget to rc-update del dbmail-* first)" |
142 |
- echo |
143 |
- elog "Changed pid directory to /run/dbmail (see" |
144 |
- elog "http://www.dbmail.org/mantis/view.php?id=949 for details)" |
145 |
- echo |
146 |
- ewarn "The database config has changed to support libzdb db URI" |
147 |
- ewarn "Please check the documentation (or Bug #479664)" |
148 |
- echo |
149 |
- ewarn "The database schema has changed since 3.0.x make sure" |
150 |
- ewarn "to run the migration script" |
151 |
- echo |
152 |
- ewarn "Please be aware, that the single init-script for all services" |
153 |
- ewarn "has been replaced with seperate init scripts for the individual services." |
154 |
- ewarn "Make sure to add dbmail-(imapd|lmtpd|pop3d|timsieved) using rc-update" |
155 |
- ewarn "and remove dbmail if you want to take advantage of this change." |
156 |
- echo |
157 |
-} |