Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/mydns: metadata.xml ChangeLog mydns-1.2.8.27.ebuild
Date: Fri, 05 Nov 2010 12:20:38
Message-Id: 20101105122035.3A97320051@flycatcher.gentoo.org
1 matsuu 10/11/05 12:20:35
2
3 Modified: metadata.xml ChangeLog
4 Added: mydns-1.2.8.27.ebuild
5 Log:
6 Version bumped, bug #267587.
7
8 (Portage version: 2.1.9.22/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 net-dns/mydns/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/metadata.xml?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/metadata.xml?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/metadata.xml?r1=1.2&r2=1.3
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/mydns/metadata.xml,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- metadata.xml 15 May 2007 13:55:25 -0000 1.2
24 +++ metadata.xml 5 Nov 2010 12:20:35 -0000 1.3
25 @@ -6,4 +6,8 @@
26 <email>matsuu@g.o</email>
27 <name>MATSUU Takuto</name>
28 </maintainer>
29 +<use>
30 + <flag name='alias'>Enable David Phillips aliasing</flag>
31 + <flag name='status'>Enable the STATUS opcode to check server status</flag>
32 +</use>
33 </pkgmetadata>
34
35
36
37 1.35 net-dns/mydns/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/ChangeLog?rev=1.35&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/ChangeLog?rev=1.35&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/ChangeLog?r1=1.34&r2=1.35
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v
46 retrieving revision 1.34
47 retrieving revision 1.35
48 diff -u -r1.34 -r1.35
49 --- ChangeLog 17 Jun 2010 21:47:22 -0000 1.34
50 +++ ChangeLog 5 Nov 2010 12:20:35 -0000 1.35
51 @@ -1,6 +1,11 @@
52 # ChangeLog for net-dns/mydns
53 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.34 2010/06/17 21:47:22 patrick Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.35 2010/11/05 12:20:35 matsuu Exp $
56 +
57 +*mydns-1.2.8.27 (04 Nov 2010)
58 +
59 + 04 Nov 2010; MATSUU Takuto <matsuu@g.o> +mydns-1.2.8.27.ebuild:
60 + Version bumped, bug #267587.
61
62 17 Jun 2010; Patrick Lauer <patrick@g.o> mydns-1.1.0-r1.ebuild,
63 mydns-1.1.0-r2.ebuild:
64
65
66
67 1.1 net-dns/mydns/mydns-1.2.8.27.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/mydns-1.2.8.27.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/mydns/mydns-1.2.8.27.ebuild?rev=1.1&content-type=text/plain
71
72 Index: mydns-1.2.8.27.ebuild
73 ===================================================================
74 # Copyright 1999-2010 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-1.2.8.27.ebuild,v 1.1 2010/11/05 12:20:35 matsuu Exp $
77
78 EAPI="3"
79 inherit autotools confutils eutils
80
81 DESCRIPTION="A DNS-Server which gets its data from a MySQL-/PostgreSQL-database"
82 HOMEPAGE="http://www.mydns.pl/"
83 SRC_URI="mirror://sourceforge/mydns-ng/${P}.tar.gz"
84
85 LICENSE="GPL-2"
86 SLOT="0"
87 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
88 IUSE="alias debug nls mysql postgres ssl static status zlib"
89
90 RDEPEND="mysql? ( virtual/mysql )
91 nls? ( virtual/libintl )
92 postgres? ( dev-db/postgresql-base )
93 ssl? ( dev-libs/openssl )
94 zlib? ( sys-libs/zlib )
95 virtual/libiconv"
96 DEPEND="${RDEPEND}
97 nls? ( sys-devel/gettext )
98 sys-devel/bison"
99
100 S="${WORKDIR}/${P%.*}"
101
102 pkg_setup() {
103 confutils_require_one mysql postgres
104 }
105
106 src_prepare() {
107 epatch \
108 "${FILESDIR}/${PN}-1.1.0-m4.patch" \
109 "${FILESDIR}/04-update-smash-fix.dpatch" \
110 "${FILESDIR}/${PN}-1.1.0-gentoo.patch"
111 eautoreconf
112 }
113
114 src_configure() {
115 econf \
116 $(use_enable alias) \
117 $(use_enable nls) \
118 $(use_enable debug) \
119 $(use_with mysql) \
120 $(use_with postgres pgsql) \
121 $(use_enable static) \
122 $(use_enable static static-build) \
123 $(use_enable status) \
124 $(use_with ssl openssl) \
125 $(use_with zlib) \
126 --without-included-gettext || die
127 }
128
129 src_install() {
130 emake DESTDIR="${D}" install || die
131
132 dodoc AUTHORS BUGS ChangeLog NEWS README TODO contrib/admin.php contrib/stats.php contrib/create_domain.pl contrib/fix_rr_serial.pl contrib/MyDNS.pm contrib/README || die
133
134 if use postgres; then
135 sed -e 's/__db__/postgresql/g' "${FILESDIR}/mydns.rc6" > "${T}/mydns.rc6" || die
136 dodoc QUICKSTART.postgres || die
137 fi
138 if use mysql; then
139 sed -e 's/__db__/mysql/g' "${FILESDIR}/mydns.rc6" > "${T}/mydns.rc6" || die
140 dodoc QUICKSTART.mysql README.mysql || die
141 fi
142 newinitd "${T}/mydns.rc6" mydns || die
143
144 ## Avoid file collision
145 rm -f "${ED}/usr/share/locale/locale.alias"
146
147 # Install config file
148 insinto /etc
149 newins mydns.conf mydns.conf || die
150 fowners root:root /etc/mydns.conf || die
151 fperms 0600 /etc/mydns.conf || die
152 }
153
154 pkg_postinst() {
155 if use postgres; then
156 elog "# createdb mydns"
157 elog "# /usr/sbin/mydns --create-tables | psql mydns"
158 elog
159 elog "to create the tables in the PostgreSQL-Database."
160 elog "For more info see QUICKSTART.postgres."
161 fi
162 if use mysql; then
163 elog "# mysqladmin -u <useruname> -p create mydns"
164 elog "# /usr/sbin/mydns --create-tables | mysql -u <username> -p mydns"
165 elog
166 elog "to create the tables in the MySQL-Database."
167 elog "For more info see QUICKSTART.mysql."
168 fi
169 elog
170 }