Gentoo Archives: gentoo-commits

From: "Joerg Bornkessel (hd_brummy)" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-www/xxv: ChangeLog xxv-1.0.1.ebuild
Date: Sun, 02 Dec 2007 16:46:04
Message-Id: E1Iyrx9-0005zy-Q7@stork.gentoo.org
1 hd_brummy 07/12/02 16:45:59
2
3 Modified: ChangeLog
4 Added: xxv-1.0.1.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.2 net-www/xxv/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/xxv/ChangeLog?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/xxv/ChangeLog?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/xxv/ChangeLog?r1=1.1&r2=1.2
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-www/xxv/ChangeLog,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- ChangeLog 11 Nov 2007 13:46:30 -0000 1.1
23 +++ ChangeLog 2 Dec 2007 16:45:59 -0000 1.2
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-www/xxv
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-www/xxv/ChangeLog,v 1.1 2007/11/11 13:46:30 hd_brummy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-www/xxv/ChangeLog,v 1.2 2007/12/02 16:45:59 hd_brummy Exp $
29 +
30 +*xxv-1.0.1 (02 Dec 2007)
31 +
32 + 02 Dec 2007; Joerg Bornkessel <hd_brummy@g.o> +xxv-1.0.1.ebuild:
33 + version bump
34
35 *xxv-1.0 (11 Nov 2007)
36
37
38
39
40 1.1 net-www/xxv/xxv-1.0.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/xxv/xxv-1.0.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/xxv/xxv-1.0.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: xxv-1.0.1.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-www/xxv/xxv-1.0.1.ebuild,v 1.1 2007/12/02 16:45:59 hd_brummy Exp $
50
51 inherit eutils
52
53 DESCRIPTION="WWW Admin for the VDR (Video Disk Recorder)"
54 HOMEPAGE="http://xxv.berlios.de/content/view/37/1/"
55 SRC_URI="http://download.berlios.de/${PN}/${P}.tgz"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~x86 ~amd64"
60 IUSE="mplayer"
61
62 RDEPEND=">=media-video/vdr-1.2.6
63 perl-core/Test-Simple
64 perl-core/MIME-Base64
65 perl-core/Time-HiRes
66 dev-perl/DBI
67 dev-perl/Event
68 dev-perl/URI
69 dev-perl/Locale-gettext
70 dev-perl/DBD-mysql
71 dev-db/mysql
72 dev-perl/Locale-gettext
73 dev-perl/WWW-Mechanize
74 dev-perl/GD
75 dev-perl/GDGraph
76 dev-perl/GD-Graph3d
77 dev-perl/Proc-ProcessTable
78 dev-perl/WWW-Mechanize-FormFiller
79 dev-perl/XML-RSS
80 dev-perl/Net-XMPP
81 dev-perl/Term-ReadLine-Perl
82 dev-perl/Term-ReadLine-Gnu
83 dev-perl/TimeDate
84 dev-perl/Template-Toolkit
85 dev-perl/Log-Log4perl
86 dev-perl/SOAP-Lite
87 dev-perl/Net-IP
88 dev-perl/Data-Random
89 dev-perl/Net-Amazon
90 dev-perl/JSON
91 dev-perl/Net-Telnet
92 dev-perl/Socket6
93 dev-perl/IO-Socket-INET6
94 dev-perl/Config-Tiny
95 media-video/vdr2jpeg
96 media-fonts/ttf-bitstream-vera"
97
98 PDEPEND="mplayer? ( media-video/mplayer )"
99
100 SHAREDIR="/usr/share/${PN}"
101 LIBDIR="/usr/lib/${PN}"
102
103 DB_VERS="25"
104
105 pkg_setup() {
106
107 if ! built_with_use dev-perl/GD png gif ; then
108 echo
109 eerror "Please recompile dev-perl/GD with"
110 eerror "USE=\"png gif\""
111 die "dev-perl/GD need png and gif support"
112 fi
113
114 if ! has_version "net-www/${PN}"; then
115 echo
116 einfo "Before you install xxv at first time you should read"
117 einfo "http://www.vdr-wiki.de/wiki/index.php/Xxv German only available"
118 echo
119 fi
120 }
121
122 src_unpack() {
123 unpack ${A}
124 cd "${S}"
125
126 sed -i "${S}"/bin/xxvd \
127 -e "s:debian:Gentoo:" \
128 -e "s:/var/log/xxvd.log:/var/log/xxv/xxvd.log:" \
129 -e "s:/var/run/xxvd.pid:/var/run/xxv/xxvd.pid:" \
130 -e "s:\$RealBin/../lib:${LIBDIR}:" \
131 -e "s:\$RealBin/../locale:${SHAREDIR}/locale:" \
132 -e "s:\$RealBin/../lib/XXV/MODULES:${LIBDIR}/XXV/MODULES:" \
133 -e "s:\$RealBin/../etc/xxvd.cfg:/etc/xxv/xxvd.cfg:" \
134 -e "s:\$RealBin/../doc:/usr/share/doc/${P}:" \
135 -e "s:HTMLDIR => \"\$RealBin/../:HTMLDIR => \"${SHAREDIR}/skins:" \
136 -e "s:\$RealBin/../share/vtx:${SHAREDIR}/vtx:" \
137 -e "s:\$RealBin/../lib/XXV/OUTPUT:${LIBDIR}/XXV/OUTPUT:" \
138 -e "s:\$RealBin/../share/news:${SHAREDIR}/news:" \
139 -e "s:\$RealBin/../contrib:${SHAREDIR}/contrib:" \
140 -e "s:\$RealBin/../share/fonts/:/usr/share/fonts/:"
141
142 sed -i "s:\$RealBin/../lib:${LIBDIR}:" ./locale/xgettext.pl
143
144 # epatch "${FILESDIR}"/"${P}"-logerror.patch
145 }
146
147 src_compile() {
148 :
149 }
150
151 src_install() {
152
153 doinitd "${FILESDIR}"/xxv
154
155 dobin bin/xxvd
156
157 insinto /etc/"${PN}"
158 newins "${FILESDIR}"/xxvd-1.0.cfg xxvd.cfg
159
160 insinto /etc/logrotate.d
161 newins "${FILESDIR}"/xxvd-logrotate xxvd
162
163 diropts -m755 -ovdr -gvdr
164 keepdir /var/cache/xxv
165 keepdir /var/run/xxv
166 keepdir /var/log/xxv
167
168 insinto "${LIBDIR}"
169 doins -r "${S}"/lib/*
170
171 insinto "${SHAREDIR}"
172 doins -r "${S}"/share/{news,vtx}
173
174 insinto "${SHAREDIR}"/locale
175 doins -r "${S}"/locale/*
176 fperms 0755 "${SHAREDIR}"/locale/xgettext.pl
177
178 insinto "${SHAREDIR}"/contrib
179 doins -r "${S}"/contrib/*
180 fperms 0755 "${SHAREDIR}"/contrib/update-xxv
181
182 insinto "${SHAREDIR}"/skins
183 doins -r "${S}"/{html,wml}
184 doins "${S}"/doc/docu.tmpl
185
186 cd "${S}"/doc
187 insinto /usr/share/doc/"${P}"
188 doins docu.tmpl CHANGELOG COPYING LIESMICH NEWS README TODO TUTORIAL.txt.gz
189 fowners vdr:vdr /usr/share/doc/"${P}"
190
191 doman xxvd.1
192 }
193
194 pkg_postinst() {
195
196 if has_version "net-www/${PN}"; then
197 if has_version "=<net-www/${PN}-0.91_pre1002" ; then
198 echo
199 einfo "An update of XXV Database is needed"
200 echo
201 einfo "emerge --config ${PN}"
202 echo
203 einfo "will update your XXV Database"
204 fi
205 else
206 einfo "You have to create a empty DB for XXV"
207 einfo "do this by:"
208 einfo "cd ${SHAREDIR}/contrib"
209 eerror "read the README"
210 einfo "edit create-database.sql and run"
211 einfo "emerge --config ${PN}"
212 echo
213 einfo "Set your own language in"
214 einfo "${SHAREDIR}/locale"
215 echo
216 einfo "For First Time Login in Browser use:"
217 einfo "Pass:Login = xxv:xxv"
218 echo
219 eerror "edit /etc/xxv/xxvd.cfg !"
220 fi
221 }
222
223 pkg_config() {
224
225 if has_version "=<net-www/${PN}-0.91_pre1002"; then
226 cd "${ROOT}"/"${SHAREDIR}"/contrib
227 ./update-xxv
228 else
229 cd "${ROOT}"/"${SHAREDIR}"
230 cat ./contrib/create-database.sql | mysql -u root -p
231 fi
232 }
233
234 pkg_postrm() {
235
236 einfo "Cleanup for old "${P}" files"
237 rm -r /usr/share/doc/"${P}"
238 }
239
240
241
242 --
243 gentoo-commits@g.o mailing list