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