Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 273479 Details for
Bug 291437
new ebuild: net-im/spectrum (xmpp transport system)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
spectrum-9999.ebuild
spectrum-9999.ebuild (text/plain), 3.63 KB, created by
Marcel Pennewiß
on 2011-05-16 19:19:20 UTC
(
hide
)
Description:
spectrum-9999.ebuild
Filename:
MIME Type:
Creator:
Marcel Pennewiß
Created:
2011-05-16 19:19:20 UTC
Size:
3.63 KB
patch
obsolete
># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ >EAPI=2 > >inherit cmake-utils git > >DESCRIPTION="Spectrum is an XMPP transport/gateway" >HOMEPAGE="http://spectrum.im" > >EGIT_REPO_URI="http://github.com/hanzz/spectrum.git" >#EGIT_COMMIT="master" >#EGIT_BRANCH="${EGIT_COMMIT}" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~amd64 ~x86" > >IUSE="mysql sqlite symlinks tools staticport" > >RDEPEND=">=dev-libs/poco-1.3.3[mysql?,sqlite?] > media-gfx/imagemagick[cxx] > >=net-im/pidgin-2.6.0 > >=net-libs/gloox-1.0 > dev-python/xmpppy > dev-libs/libev" >DEPEND="${RDEPEND} > sys-devel/gettext > dev-util/cmake" > >PROTOCOL_LIST="aim facebook gg icq irc msn msn_pecan myspace qq simple sipe twitter xmpp yahoo" > >pkg_setup() { > if ! ( use sqlite || use mysql ); then > ewarn "No database use flag set!" > ewarn "You need to enable the mysql or sqlite use flag!" > die > fi >} > >src_unpack() { > git_src_unpack > git_submodules init > git_submodules update >} > >src_install () { > cmake-utils_src_install > > # Install transports with seperate config files (default). > # If USE="symlinks" is set, install one config file with symlinks to all transports. > > port=5347 > > # prepare config for mysql or just copy > cp "${FILESDIR}/spectrum.cfg" "${WORKDIR}/spectrum.cfg" > > if use mysql ; then > sed -e 's,^\(type\)=sqlite$,\1=mysql,' \ > -e 's,^#\(host=localhost\)$,\1,' \ > -e 's,^#\(user=user\)$,\1,' \ > -e 's,^#\(password=password\)$,\1,' \ > -e 's,^\(database=.*\),#\1,' \ > -e 's,^#\(prefix=.*\),\1,' \ > -i "${WORKDIR}/spectrum.cfg" || die > fi > > # install shared-config when using symlinks > if use symlinks; then > insinto /etc/spectrum > newins "${WORKDIR}"/spectrum.cfg spectrum-shared-conf || die > fi > > # install protocol-specific configs or symlinks > insinto /etc/spectrum > for protocol in ${PROTOCOL_LIST}; do > if use symlinks; then > dosym spectrum-shared-conf "/etc/spectrum/${protocol}:${port}.cfg" || die > sed -e 's,PROTOCOL,'${protocol}:${port}',g' \ > "${FILESDIR}"/spectrum.confd > "${WORKDIR}"/spectrum.confd > else > sed -e 's,\$filename:protocol,'${protocol}',g' \ > -e 's,\$filename:port,'${port}',g' \ > "${WORKDIR}"/spectrum.cfg > "${WORKDIR}/${protocol}.cfg" || die > sed -e 's,PROTOCOL,'${protocol}',g' \ > "${FILESDIR}"/spectrum.confd > "${WORKDIR}"/spectrum.confd > doins "${WORKDIR}/${protocol}.cfg" || die > fi > > # install prepared confd > newconfd "${WORKDIR}"/spectrum.confd spectrum.${protocol} || die > > if ! use staticport; then > port=$[${port}+1] > fi > done > > # Install init files > newinitd "${FILESDIR}"/spectrum.initd spectrum || die > for protocol in ${PROTOCOL_LIST}; do > dosym spectrum /etc/init.d/spectrum."${protocol}" > done > > # Directories > dodir "/var/lib/spectrum" || die > dodir "/var/log/spectrum" || die > dodir "/var/run/spectrum" || die > > # Directories for each transport > for protocol in ${PROTOCOL_LIST}; do > dodir "/var/lib/spectrum/$protocol/database" || die > dodir "/var/lib/spectrum/$protocol/userdir" || die > dodir "/var/lib/spectrum/$protocol/filetransfer_cache" || die > done > > # Install mysql schema > if use mysql; then > insinto "/usr/share/spectrum/schemas" > doins schemas/* || die > fi > > # Install misc tools > if use tools; then > insinto "/usr/share/spectrum/tools" > doins tools/* || die > fi >} > >pkg_postinst() { > # Set correct rights > chown jabber:jabber -R "/etc/spectrum" || die > chown jabber:jabber -R "/var/lib/spectrum" || die > chown jabber:jabber -R "/var/log/spectrum" || die > chown jabber:jabber -R "/var/run/spectrum" || die > chmod 750 "/etc/spectrum" || die > chmod 750 "/var/lib/spectrum" || die > chmod 750 "/var/log/spectrum" || die > chmod 750 "/var/run/spectrum" || die >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 291437
:
208961
|
208984
|
208985
|
208986
|
209125
|
212809
|
212911
|
217077
|
225245
|
228411
|
228413
|
244171
|
244173
|
244209
|
244211
|
244213
|
244215
|
244549
|
251281
|
252359
|
255489
|
255491
|
255493
|
255495
|
255497
|
255499
|
255957
|
255959
|
258324
|
258563
|
259538
|
261173
|
261180
|
267675
|
267677
| 273479 |
276647
|
280513
|
307613
|
307723
|
308523
|
308525
|
311029
|
311031
|
311041
|
311343
|
326774
|
326776