1 |
commit: 9d5eb87d92006e1d63a8e72da5996e59e1eb5ee8 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 5 20:31:25 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 5 20:32:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d5eb87d |
7 |
|
8 |
net-dns/mydns: Revbump for dependencies |
9 |
|
10 |
Bug: https://bugs.gentoo.org/665966 |
11 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
12 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
13 |
|
14 |
net-dns/mydns/mydns-1.2.8.31-r2.ebuild | 88 ++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 88 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/mydns/mydns-1.2.8.31-r2.ebuild b/net-dns/mydns/mydns-1.2.8.31-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..5f6aeb01f0c |
20 |
--- /dev/null |
21 |
+++ b/net-dns/mydns/mydns-1.2.8.31-r2.ebuild |
22 |
@@ -0,0 +1,88 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit autotools |
29 |
+ |
30 |
+DESCRIPTION="A DNS-Server which gets its data from a MySQL-/PostgreSQL-database" |
31 |
+HOMEPAGE="http://www.mydns.pl/" |
32 |
+SRC_URI="mirror://sourceforge/mydns-ng/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86" |
37 |
+IUSE="alias debug nls mysql postgres ssl static status" |
38 |
+ |
39 |
+RDEPEND="mysql? ( dev-db/mysql-connector-c:= ) |
40 |
+ nls? ( virtual/libintl ) |
41 |
+ postgres? ( dev-db/postgresql ) |
42 |
+ ssl? ( dev-libs/openssl:0= ) |
43 |
+ virtual/libiconv" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ nls? ( >=sys-devel/gettext-0.12 ) |
46 |
+ sys-devel/bison" |
47 |
+ |
48 |
+REQUIRED_USE="^^ ( mysql postgres )" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}/${PN}-1.2.8.27-m4.patch" |
52 |
+ "${FILESDIR}/${P}-texinfo.patch" |
53 |
+) |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ eautoreconf |
58 |
+} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ econf \ |
62 |
+ $(use_enable alias) \ |
63 |
+ $(use_enable nls) \ |
64 |
+ $(use_enable debug) \ |
65 |
+ $(use_with mysql) \ |
66 |
+ $(use_with postgres pgsql) \ |
67 |
+ $(use_enable static) \ |
68 |
+ $(use_enable static static-build) \ |
69 |
+ $(use_enable status) \ |
70 |
+ $(use_with ssl openssl) \ |
71 |
+ --without-included-gettext |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ default |
76 |
+ |
77 |
+ dodoc AUTHORS BUGS ChangeLog QUICKSTART* NEWS README* TODO |
78 |
+ docinto contrib |
79 |
+ dodoc contrib/*.php contrib/*.pl contrib/*.pm contrib/README* |
80 |
+ |
81 |
+ newinitd "${FILESDIR}/mydns.initd" mydns |
82 |
+ newconfd "${FILESDIR}/mydns.confd" mydns |
83 |
+ |
84 |
+ ## Avoid file collision |
85 |
+ rm -f "${ED}/usr/share/locale/locale.alias" |
86 |
+ |
87 |
+ # Install config file |
88 |
+ insinto /etc |
89 |
+ newins mydns.conf mydns.conf |
90 |
+ fowners root:root /etc/mydns.conf |
91 |
+ fperms 0600 /etc/mydns.conf |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ if use postgres; then |
96 |
+ elog "# createdb mydns" |
97 |
+ elog "# /usr/sbin/mydns --create-tables | psql mydns" |
98 |
+ elog |
99 |
+ elog "to create the tables in the PostgreSQL-Database." |
100 |
+ elog "For more info see QUICKSTART.postgres." |
101 |
+ fi |
102 |
+ if use mysql; then |
103 |
+ elog "# mysqladmin -u <useruname> -p create mydns" |
104 |
+ elog "# /usr/sbin/mydns --create-tables | mysql -u <username> -p mydns" |
105 |
+ elog |
106 |
+ elog "to create the tables in the MySQL-Database." |
107 |
+ elog "For more info see QUICKSTART.mysql." |
108 |
+ fi |
109 |
+ elog |
110 |
+} |