summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-12-31 13:05:56 +0000
committerPacho Ramos <pacho@gentoo.org>2013-12-31 13:05:56 +0000
commitc0905a4cb22958defff7fe69ea9891589d05086c (patch)
treeffbac08994bfa72f18f06b8f99feda9b4246d8b2 /sci-misc
parentremove angelscript useflag since disabling it breaks runtime (diff)
downloadhistorical-c0905a4cb22958defff7fe69ea9891589d05086c.tar.gz
historical-c0905a4cb22958defff7fe69ea9891589d05086c.tar.bz2
historical-c0905a4cb22958defff7fe69ea9891589d05086c.zip
Add unit file (#496514 by Szymon Jaranowski)
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/boinc/ChangeLog8
-rw-r--r--sci-misc/boinc/Manifest14
-rw-r--r--sci-misc/boinc/boinc-7.2.0-r1.ebuild147
-rw-r--r--sci-misc/boinc/files/boinc.service11
4 files changed, 173 insertions, 7 deletions
diff --git a/sci-misc/boinc/ChangeLog b/sci-misc/boinc/ChangeLog
index b1f57dafcb39..d0e97f7dce3f 100644
--- a/sci-misc/boinc/ChangeLog
+++ b/sci-misc/boinc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-misc/boinc
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.111 2013/06/30 14:52:47 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.112 2013/12/31 13:05:51 pacho Exp $
+
+*boinc-7.2.0-r1 (31 Dec 2013)
+
+ 31 Dec 2013; Pacho Ramos <pacho@gentoo.org> +boinc-7.2.0-r1.ebuild,
+ +files/boinc.service:
+ Add unit file (#496514 by Szymon Jaranowski)
*boinc-7.2.0 (30 Jun 2013)
diff --git a/sci-misc/boinc/Manifest b/sci-misc/boinc/Manifest
index 56ebd1853aca..830ab2bde045 100644
--- a/sci-misc/boinc/Manifest
+++ b/sci-misc/boinc/Manifest
@@ -1,18 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
AUX boinc-7.2.0-fix_subdirs.patch 1967 SHA256 10eda21779b4187687b71f99f02e37906a2d0fd8a2a6b8a3578e20b8de568d1b SHA512 110b9b7d318c0ac95a883e07041f2b1fab892f0ebaacf513e17f2daba66355f468dd97fb416322083d7337345b2afb9df250cbbb9da74f892d11d33e8f069b79 WHIRLPOOL dc1d826f58f08031d97172d6716033be931291691637e43c534605742df2b5ade2c9ac0df8c89862bc8a02aaba459e50150b5058d8757ba22984cf5b1aff0685
AUX boinc.conf 376 SHA256 286f5f11e54a73b41ebf1e35aae1db4c2c3e249a3bfce755ced84c8c1b361cc9 SHA512 5c28de999c4b32c0cdb096dd48d2ee22504c3cb60bacdbdc4a48c4967dac181060427f2912463e45ea109c49f1c6d6a9f9631844ef26687c75521926cf26677a WHIRLPOOL 05cc900fa19722185025df2fb09e0ad4e86c7bae01dc54dc2d43fd1a0d590de4e1bf15f8cf38c8e17f441d17db482ac7390bf35c61e92742cc05dda778656858
AUX boinc.init 2640 SHA256 d15f25a8e53e1d94abd1f30eda1e49be497ebbfcd167facc40b7f46128e01d5c SHA512 481426c8bbb5b481c9298e816a9317bf1351dd59926f3e1a2a20b77aad3971cb8782797892d18459f8b3cab70fefe84a7731da1bdfa3ae0b2bcf120f4fa0b194 WHIRLPOOL fe398384b4b76d7cdb7dc732b8f44501b9433eeb925a3cd98a38ac0b7f0e9065cb0340d5869e1f0476842c76ada8817a6e8b3af56ec28ccf58c7a655f7e746ec
+AUX boinc.service 178 SHA256 3bcd2bdc65f7b6d9f568eeb63f54e7beaa2f0681f34bfd2d486cfd212fced105 SHA512 86a59b9096b19e6472781cb2a7229dd0540569666bcb5bedd83371e6264f1d6bee70e8b47216e1a5b6462726dcd3b54d86ba8de4478faab6c1792071b76abaf9 WHIRLPOOL 1c34aef20a8cdc0cb50a5b25c759cf622488dd2749945317f9f162a1ef1e8189b1f1069ea7be78528d1ee6454945f02f859b02359381e1d27240b796c5c0a85b
AUX generate_tarball.sh 3636 SHA256 45375d54c6fc32586a93e6c86759f5e7f0f5605e67fdcff4056c20655c08b89b SHA512 fbd34c992821157867fb3603ad01af4044b71f31d8712b80ad5ec4f80abeee233a101105dccb21943df1f7f7223205de6fd29d37abadf4392fa6f82cd5d4d9a9 WHIRLPOOL 9e07b28127cb4842069541d5e7a7cf792c31736540bf9730f3f8683a99882d9b8ab4d6b4875ad16126707b061d574076ec7eabe305881dc1a7f8085f277ece92
DIST boinc-7.2.0.tar.xz 25138432 SHA256 714ac3a10bec41afc224e8343f5bc221a488eefca4592dbc9ce4eea2c10cad5e SHA512 4ee360c14117cf4bbc26dfb48682462cdd15ca04b16f40b76562c0f5fa1a4531775762a1ce1f59960b4d0166a5d429af1279199f5140d3e112c72361ad01c46e WHIRLPOOL 3d41bf1f80d04aa9ec576da18bbb6a8078c98060bd6167dcf6a75fa34619fb95831695fb145a8f4400ec0d99a743f42539751667fcbc505fba7c747c0e0bedfd
+EBUILD boinc-7.2.0-r1.ebuild 3679 SHA256 e08f6df5d67273a25c1afb10c6be503a2c3a9a668013713fdc4397b6600994db SHA512 ea2bf30bdca217163a07a4b9dce472cfde06fdf2cd22c622f8ce5a76439259bf9dcd56b7161980a1e7ad6ce87adc15c513259b93839f8330bfbe2559f1a54b7f WHIRLPOOL 9013837b793f25fbcec3f6cc08c8bf3a625c72e9e85cbe4f33948521cf0377ebdd8aa431fb05e5d745a948da2761482c69f809a026c48b9a32effa5527ebd017
EBUILD boinc-7.2.0.ebuild 3623 SHA256 8bed7eff0e8b9cbe25d3abfe5f99b5fc9cd2ef1714a4aa9cf635755d56784c2c SHA512 13da903bfb5cf324ff5079b55db415f85f2c8e9494f84e11cef24deb82d70c3ae99eaf11ff6f4388da3953491d328a70619fc309f80a70d25b66be9b0e8200bd WHIRLPOOL 306d5a8c050cea4e0036f85b5e8418dae8da0912648c2b0bd15e7d29abd2a86ed9c73720acd470db3c06bf057c7394c4a289ee08a27cc2451aa6147dd56c77da
-MISC ChangeLog 20604 SHA256 9e968144188ab86921958110b2a4e9a84e6e6ee17227cd190169b763b4bb66d5 SHA512 7ecb0b682291613d1b7be71ae5aaeba840aef5c2b19d9dc4bfc3550262154ff1a9c67833b30a261a9e620c02677f1ca322dffa4a0a34ee454889f3c1ee3341ad WHIRLPOOL 4c6469df5b0aa91bb8646f6e58561ef1f51190ff0cdabd3b7ee1175a13ef5b6978ba1475625bf311e00aedf1b6a993f409b21276ad022e345836755b5fa0ab7e
+MISC ChangeLog 20778 SHA256 6bb89bd5450324f2fe86c33705d1b485a321220cd599d04a190b748e0d899966 SHA512 512ef77b9ce24c6623d3c795d69a7cd12168b7cbaa7fb5f71439be976b5f81f765eeb242c7329e44e02687cc176d61e5b062f6308605089db5dc836d8b7f0335 WHIRLPOOL d29d1d88281182a78a66937936c7e2c0961e80bf953ce08acf981d3d775305114df213b16e11f45054fa653fc994fc8c0726e9792f5ec925415374d1dc0163b0
MISC metadata.xml 584 SHA256 520545ff296ad2850b9ddf643655864c3a4c0d467bddc062f70842da4afef56d SHA512 39b73667c88c2d3bcf9f70f7c0edcffea23f7aab497fffe456329bd0ab8d33c65e508d1c9d8ad3810b970c51b660d13b38b676b79bb5327333803133dee65ba7 WHIRLPOOL 2d8739a38988de04ee2d5d5740959eb903989d726154e9ae7683a7af824c29af70392752134aa67eb9888603f503d2b8eac2be1e6996ab3993d8f9e3d9096b69
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.20 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREKAAYFAlHQRkAACgkQgAnW8HDreRad0ACghbUR9bMJ5xIxdL54xAbaAaQt
-vOAAnjKmS0QKz9jEi9egowG84eAQuG3j
-=WwTf
+iEYEAREIAAYFAlLCwTEACgkQCaWpQKGI+9QuhQCbB/Lj5VbLH//86X0TtN508TnA
+zSEAn0TOh5qSPMOdTp2qOPWP1DLn9yIt
+=sR6X
-----END PGP SIGNATURE-----
diff --git a/sci-misc/boinc/boinc-7.2.0-r1.ebuild b/sci-misc/boinc/boinc-7.2.0-r1.ebuild
new file mode 100644
index 000000000000..a8f960e90ac6
--- /dev/null
+++ b/sci-misc/boinc/boinc-7.2.0-r1.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-7.2.0-r1.ebuild,v 1.1 2013/12/31 13:05:51 pacho Exp $
+
+EAPI=5
+
+#WANT_AUTOMAKE="1.11"
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils flag-o-matic eutils wxwidgets user systemd
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X cuda static-libs"
+
+RDEPEND="
+ !sci-misc/boinc-bin
+ !app-admin/quickswitch
+ >=app-misc/ca-certificates-20080809
+ dev-libs/openssl
+ net-misc/curl[ssl,-gnutls(-),-nss(-),curl_ssl_openssl(+)]
+ sys-apps/util-linux
+ sys-libs/zlib
+ cuda? (
+ >=dev-util/nvidia-cuda-toolkit-2.1
+ >=x11-drivers/nvidia-drivers-180.22
+ )
+ X? (
+ dev-db/sqlite:3
+ media-libs/freeglut
+ sys-libs/glibc:2.2
+ virtual/jpeg
+ x11-libs/gtk+:2
+ >=x11-libs/libnotify-0.7
+ x11-libs/wxGTK:2.8[X,opengl]
+ )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ app-text/docbook-xml-dtd:4.4
+ app-text/docbook2X
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix_subdirs.patch
+)
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ # prevent bad changes in compile flags, bug 286701
+ sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local wxconf=""
+
+ # add gtk includes
+ append-flags "$(pkg-config --cflags gtk+-2.0)"
+
+ # look for wxGTK
+ if use X; then
+ WX_GTK_VER="2.8"
+ need-wxwidgets unicode
+ wxconf+=" --with-wx-config=${WX_CONFIG}"
+ else
+ wxconf+=" --without-wxdir"
+ fi
+
+ local myeconfargs=(
+ --disable-server
+ --enable-client
+ --enable-dynamic-client-linkage
+ --disable-static
+ --enable-unicode
+ --with-ssl
+ $(use_with X x)
+ $(use_enable X manager)
+ ${wxconf}
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ dodir /var/lib/${PN}/
+ keepdir /var/lib/${PN}/
+
+ if use X; then
+ newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
+ make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
+ fi
+
+ # cleanup cruft
+ rm -rf "${ED}"/etc/
+
+ newinitd "${FILESDIR}"/${PN}.init ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+}
+
+pkg_preinst() {
+ enewgroup ${PN}
+ # note this works only for first install so we have to
+ # elog user about the need of being in video group
+ if use cuda; then
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
+ else
+ enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
+ fi
+}
+
+pkg_postinst() {
+ echo
+ elog "You are using the source compiled version of ${PN}."
+ use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
+ elog
+ elog "You need to attach to a project to do anything useful with ${PN}."
+ elog "You can do this by running /etc/init.d/${PN} attach"
+ elog "The howto for configuration is located at:"
+ elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
+ elog
+ # Add warning about the new password for the client, bug 121896.
+ if use X; then
+ elog "If you need to use the graphical manager the password is in:"
+ elog "/var/lib/${PN}/gui_rpc_auth.cfg"
+ elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
+ elog "/etc/conf.d/${PN}"
+ elog "You should change this password to something more memorable (can be even blank)."
+ elog "Remember to launch init script before using manager. Or changing the password."
+ elog
+ fi
+ if use cuda; then
+ elog "To be able to use CUDA you should add boinc user to video group."
+ elog "Run as root:"
+ elog "gpasswd -a boinc video"
+ fi
+}
diff --git a/sci-misc/boinc/files/boinc.service b/sci-misc/boinc/files/boinc.service
new file mode 100644
index 000000000000..af8edf4d5041
--- /dev/null
+++ b/sci-misc/boinc/files/boinc.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=BOINC Daemon
+
+[Service]
+User=boinc
+Group=boinc
+Nice=19
+ExecStart=/usr/bin/boinc_client --dir /var/lib/boinc --redirectio
+
+[Install]
+WantedBy=multi-user.target