forked from tastytea/overlay
net-im/spectrum: Added 2.0.7
Package-Manager: Portage-2.3.40, Repoman-2.3.9 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
parent
792a26a3ed
commit
37248c4ccd
15
net-im/spectrum/Manifest
Normal file
15
net-im/spectrum/Manifest
Normal file
|
@ -0,0 +1,15 @@
|
|||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX spectrum.confd 157 BLAKE2B 89464687195a1b63595199d8bea81cccc3855187be60ae598bdd8125dcba524ccbfd93b1895f283d951673790acac4abcd15e44ed2fd35b0c6421f7c7fa6b22f SHA512 511213a0bb4d91b22d3c9ac8e90978248076a9697cbeaa5bfd53eaac3ce1850f78739768dc88f2443519b64dc61f278be32ed408f0c7b2f64f29c01f94fc5fee
|
||||
AUX spectrum.initd 552 BLAKE2B 4cd5d0584cdc4731cb8be96ef1f4b7d3747f08c7d8e3d73ad506808ff0688806c2448030f99cfc7163a232c3453658e8e41781f891ac636256898b9acfd979c2 SHA512 ba9b9e690b3e89b879de03ad92e3e02cfe548227d64bc0cb1ed05900d9442b8c874e78dd83f3a982763c77349c3699de69eafd301577b1e3f11546518d804887
|
||||
DIST spectrum-2.0.7.tar.gz 840649 BLAKE2B a76417800ccefa43799eede6d4c6c72c45fc52c7f4b53bdac0b768ac454531add626cc184596af840941ada41bf8eeb6b104d99837c3a36bdf00191806dcca29 SHA512 2b2bc753fb8feba1fbb01dba6256732789a8870644cf7dd70b956e9d7a9489ede46b4acd26796096698c8dba28e126fb2182834dfe337ce78bd949a59188eef4
|
||||
EBUILD spectrum-2.0.7.ebuild 2389 BLAKE2B 70ab4061cfa80b51aa355faee4f719b8bf913a8e36ed052f854625d80a22bd259a5172cf291332f2d5db491c0566c1db2504344ae5235a702494d2917def40b0 SHA512 56f763af91c6106e1bf6e89f1bb319c8f7576e406f91ba895bb89be814466911492ef07f5a4a06f463d4d7400139fcf259070aa76c9cb9d292745a245ede5a46
|
||||
MISC metadata.xml 690 BLAKE2B 61d7805c99f4c8d414ba1dc76a04ef6b4f1d2f00f9005ca128d3c0bf517e97dfd3d5e73a422550f6eb692e0678e0c063a6b144a1f853fbf933a48bff1722b22e SHA512 753f1141261c73e1dd407a572a612ad52edba0f5160a44a65f64a154c10ed4be18dedec90f81185b470563c948c0b178fe907779c956376e6d24876c06045860
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCW5CHLgAKCRDPw5SX8bJu
|
||||
B6uwAP9QZyvXZ+PK6NJ1knEe6gMDrfBYLgGvtfd0OsyylhuGDgD/UMEdGUWaTtoL
|
||||
av1uOTBBSb0cD5kMDsOGLmj/q34Ll9o=
|
||||
=2ckB
|
||||
-----END PGP SIGNATURE-----
|
7
net-im/spectrum/files/spectrum.confd
Normal file
7
net-im/spectrum/files/spectrum.confd
Normal file
|
@ -0,0 +1,7 @@
|
|||
# /etc/conf.d/spectrum.S2P: config file for spectrum S2P transport
|
||||
|
||||
# Configfile
|
||||
CONFFILE="/etc/spectrum/S2P.cfg"
|
||||
|
||||
# PID
|
||||
PIDFILE="/var/run/spectrum/S2P.pid"
|
22
net-im/spectrum/files/spectrum.initd
Normal file
22
net-im/spectrum/files/spectrum.initd
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use jabber-server
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting SPECTRUMGEN2PROTOCOL XMPP/Spectrum Transport"
|
||||
start-stop-daemon --start --pidfile ${PIDFILE} \
|
||||
--chuid jabber:jabber --exec /usr/bin/spectrum -- ${CONFFILE}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping SPECTRUMGEN2PROTOCOL XMPP/Spectrum Transport"
|
||||
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
|
||||
eend $?
|
||||
}
|
17
net-im/spectrum/metadata.xml
Normal file
17
net-im/spectrum/metadata.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>tastytea</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="libev">Enable dev-libs/libev support</flag>
|
||||
<flag name="frotz">Enable frotz support</flag>
|
||||
<flag name="irc">Enable Internet Relay Chat support</flag>
|
||||
<flag name="purple">Enable support for protocols supported by libpurple</flag>
|
||||
<flag name="sms">Enable SMS support</flag>
|
||||
<flag name="twitter">Enable Twitter protocol support</flag>
|
||||
<flag name="whatsapp">Enable Whatsapp support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
88
net-im/spectrum/spectrum-2.0.7.ebuild
Normal file
88
net-im/spectrum/spectrum-2.0.7.ebuild
Normal file
|
@ -0,0 +1,88 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit cmake-utils versionator
|
||||
|
||||
DESCRIPTION="Spectrum is a XMPP transport/gateway"
|
||||
HOMEPAGE="http://spectrum.im"
|
||||
SRC_URI="https://github.com/hanzz/spectrum2/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}2-${PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE_PLUGINS="frotz irc xmpp purple sms twitter whatsapp"
|
||||
IUSE="debug doc libev mysql postgres sqlite test ${IUSE_PLUGINS}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
>=dev-libs/libev-4.23
|
||||
>=dev-libs/log4cxx-0.10.0-r1
|
||||
>=dev-libs/openssl-1.0.2o-r6
|
||||
>=dev-libs/popt-1.16-r2
|
||||
>=dev-libs/protobuf-3.5.2
|
||||
>=net-im/swift-4.0.2[idn,ssl]
|
||||
mysql? ( >=virtual/mysql-5.6-r12 )
|
||||
postgres? ( >=dev-libs/libpqxx-6.0.0 )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
irc? ( >=net-im/libcommuni-3.5.0 )
|
||||
purple? ( >=net-im/pidgin-2.11.0
|
||||
libev? ( >=dev-libs/libev-4.23 )
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/cmake-3.9.6
|
||||
>=sys-devel/gettext-0.19.8.1
|
||||
doc? ( >=app-doc/doxygen-1.8.14-r1 )
|
||||
test? ( >=dev-util/cppunit-1.14.0 )
|
||||
"
|
||||
|
||||
REQUIRED_USE="|| ( sqlite mysql postgres )"
|
||||
|
||||
pkg_setup() {
|
||||
CMAKE_IN_SOURCE_BUILD=1
|
||||
use debug && CMAKE_BUILD_TYPE=Debug
|
||||
MYCMAKEARGS="-DLIB_INSTALL_DIR=$(get_libdir)"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
$(cmake-utils_use_enable mysql MYSQL)
|
||||
$(cmake-utils_use_enable postgres PQXX)
|
||||
$(cmake-utils_use_enable sqlite SQLITE3)
|
||||
$(cmake-utils_use_enable doc DOCS)
|
||||
$(cmake-utils_use_enable frotz FROTZ)
|
||||
$(cmake-utils_use_enable irc IRC)
|
||||
$(cmake-utils_use_enable xmpp SWIFTEN)
|
||||
$(cmake-utils_use_enable purple PURPLE)
|
||||
$(cmake-utils_use_enable sms SMSTOOLS3)
|
||||
$(cmake-utils_use_enable twitter TWITTER)
|
||||
$(cmake-utils_use_enable whatsapp WHATSAPP)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
newinitd "${FILESDIR}"/spectrum2.initd spectrum2
|
||||
keepdir "${EPREFIX}"/var/lib/spectrum2
|
||||
keepdir "${EPREFIX}"/var/log/spectrum2
|
||||
keepdir "${EPREFIX}"/var/run/spectrum2
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Create jabber-user
|
||||
enewgroup jabber
|
||||
enewuser jabber -1 -1 -1 jabber
|
||||
|
||||
# Set correct rights
|
||||
chown jabber:jabber -R "/etc/spectrum2" || die
|
||||
chown jabber:jabber -R "${EPREFIX}/var/log/spectrum2" || die
|
||||
chown jabber:jabber -R "${EPREFIX}/var/run/spectrum2" || die
|
||||
chmod 750 "/etc/spectrum2" || die
|
||||
chmod 750 "${EPREFIX}/var/log/spectrum2" || die
|
||||
chmod 750 "${EPREFIX}/var/run/spectrum2" || die
|
||||
}
|
Loading…
Reference in New Issue
Block a user