Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-vcs/monotone: ChangeLog monotone-0.99.ebuild
Date: Fri, 29 Oct 2010 07:58:19
Message-Id: 20101029075813.21D7520051@flycatcher.gentoo.org
1 pva 10/10/29 07:58:13
2
3 Modified: ChangeLog
4 Added: monotone-0.99.ebuild
5 Log:
6 Version bump, fixes security bug #342705 thank Tim Sammut for report.
7
8 (Portage version: 2.1.9.22/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.8 dev-vcs/monotone/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/monotone/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 19 Oct 2010 18:12:20 -0000 1.7
24 +++ ChangeLog 29 Oct 2010 07:58:13 -0000 1.8
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-vcs/monotone
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/ChangeLog,v 1.7 2010/10/19 18:12:20 ranger Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/ChangeLog,v 1.8 2010/10/29 07:58:13 pva Exp $
30 +
31 +*monotone-0.99 (29 Oct 2010)
32 +
33 + 29 Oct 2010; Peter Volkov <pva@g.o> +monotone-0.99.ebuild:
34 + Version bump, fixes security bug #342705 thank Tim Sammut for report.
35
36 19 Oct 2010; Brent Baude <ranger@g.o> monotone-0.48.ebuild:
37 stable ppc, bug 338345
38
39
40
41 1.1 dev-vcs/monotone/monotone-0.99.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/monotone-0.99.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/monotone/monotone-0.99.ebuild?rev=1.1&content-type=text/plain
45
46 Index: monotone-0.99.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/monotone/monotone-0.99.ebuild,v 1.1 2010/10/29 07:58:13 pva Exp $
51
52 EAPI=2
53 inherit bash-completion elisp-common eutils toolchain-funcs
54
55 DESCRIPTION="Monotone Distributed Version Control System"
56 HOMEPAGE="http://monotone.ca"
57 SRC_URI="http://monotone.ca/downloads/${PV}/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="1"
61 KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
62 IUSE="doc emacs ipv6 nls"
63
64 RDEPEND="sys-libs/zlib
65 emacs? ( virtual/emacs )
66 >=dev-libs/libpcre-7.6
67 >=dev-libs/botan-1.8.0
68 >=dev-db/sqlite-3.3.8
69 >=dev-lang/lua-5.1
70 net-dns/libidn"
71 DEPEND="${RDEPEND}
72 >=dev-libs/boost-1.33.1
73 nls? ( >=sys-devel/gettext-0.11.5 )
74 doc? ( sys-apps/texinfo )"
75
76 pkg_setup() {
77 enewgroup monotone
78 enewuser monotone -1 -1 /var/lib/monotone monotone
79 }
80
81 src_prepare() {
82 if [[ $(gcc-major-version) -lt "3" ||
83 ( $(gcc-major-version) -eq "3" && $(gcc-minor-version) -le 3 ) ]]; then
84 die 'requires >=gcc-3.4'
85 fi
86 }
87
88 src_configure() {
89 econf \
90 --disable-dependency-tracking \
91 $(use_enable nls) \
92 $(use_enable ipv6)
93 }
94
95 src_compile() {
96 emake || die
97
98 if use doc; then
99 emake html || die
100 fi
101
102 if use emacs; then
103 cd contrib
104 elisp-compile *.el || die
105 fi
106 }
107
108 src_test() {
109 if [ ${UID} != 0 ]; then
110 emake check || die "emake check failed"
111 else
112 ewarn "Tests will fail if ran as root, skipping."
113 fi
114 }
115
116 src_install() {
117 emake DESTDIR="${D}" install || die
118
119 mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF} || die
120
121 dobashcompletion contrib/monotone.bash_completion
122
123 if use doc; then
124 dohtml -r html/*
125 dohtml -r figures
126 fi
127
128 if use emacs; then
129 elisp-install ${PN} contrib/*.{el,elc} || die "elisp-install failed"
130 elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el \
131 || die
132 fi
133
134 dodoc AUTHORS NEWS README* UPGRADE || die
135 docinto contrib
136 dodoc contrib/*
137 newconfd "${FILESDIR}"/monotone.confd monotone || die
138 newinitd "${FILESDIR}"/${PN}-0.36.initd monotone || die
139
140 insinto /etc/monotone
141 newins "${FILESDIR}"/hooks.lua hooks.lua || die
142 newins "${FILESDIR}"/read-permissions read-permissions || die
143 newins "${FILESDIR}"/write-permissions write-permissions || die
144
145 keepdir /var/lib/monotone/keys/ /var/{log,run}/monotone
146 fowners monotone:monotone /var/lib/monotone{,/keys} /var/{log,run}/monotone
147 }
148
149 pkg_postinst() {
150 use emacs && elisp-site-regen
151 bash-completion_pkg_postinst
152
153 elog
154 elog "For details and instructions to upgrade from previous versions,"
155 elog "please read /usr/share/doc/${PF}/UPGRADE.bz2"
156 elog
157 elog " 1. edit /etc/conf.d/monotone"
158 elog " 2. import the first keys to enable access with"
159 elog " env HOME=\${homedir} mtn pubkey me@×××××××.net | /etc/init.d/monotone import"
160 elog " Thereafter, those with write permission can add other keys via"
161 elog " netsync with 'monotone push --key-to-push=IDENT' and then IDENT"
162 elog " can be used in the read-permission and write-permission files."
163 elog " 3. adjust permisions in /etc/monotone/read-permissions"
164 elog " and /etc/monotone/write-permissions"
165 elog " 4. start the daemon: /etc/init.d/monotone start"
166 elog " 5. make persistent: rc-update add monotone default"
167 elog
168 }
169
170 pkg_postrm() {
171 use emacs && elisp-site-regen
172 }