diff options
author | 2018-10-13 16:44:11 +0100 | |
---|---|---|
committer | 2018-10-13 16:44:11 +0100 | |
commit | 5325d31bbfc6b5f1afaa518f0ad76e8769d0446c (patch) | |
tree | 5ec0dccd6aac8ea9de84268a140d3049e27f0012 /app-admin | |
parent | add py3 support - py2.7 still works (diff) | |
download | lmiphay-5325d31bbfc6b5f1afaa518f0ad76e8769d0446c.tar.gz lmiphay-5325d31bbfc6b5f1afaa518f0ad76e8769d0446c.tar.bz2 lmiphay-5325d31bbfc6b5f1afaa518f0ad76e8769d0446c.zip |
add module version for python 2.7 + 3.6
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/syslog-summary/Manifest | 2 | ||||
-rw-r--r-- | app-admin/syslog-summary/files/syslog-summary-setup.py | 10 | ||||
-rw-r--r-- | app-admin/syslog-summary/syslog-summary-1.14-r4.ebuild | 52 |
3 files changed, 64 insertions, 0 deletions
diff --git a/app-admin/syslog-summary/Manifest b/app-admin/syslog-summary/Manifest index 9c8ec11..af02829 100644 --- a/app-admin/syslog-summary/Manifest +++ b/app-admin/syslog-summary/Manifest @@ -1,4 +1,6 @@ AUX syslog-summary-py3.diff 4330 BLAKE2B 83629cdffad502676aa2eb484d9346277b176001572cdc6e6ab5f0814976de5b70b3a48cbed97b3d092d2997e55ed691f5f20808b0443ca3a5b4b98507861843 SHA512 0603f63b71234df41474c6ffc21bf0c4c9ca892a511d40d2b8c41af9715f4fe0bac2922686b57ac380b20db77302231ec700cc3ff69e140c2451f29beb3d2281 +AUX syslog-summary-setup.py 258 BLAKE2B 76eec41c144f9e41beeab5a95be1f0448ea5031bc1d87fac9c6a4409c505afb983a0f0c196dca4482c7deb5341fcf88252102abfc5b14991056567a2d4e5250c SHA512 9b5b1a8c630a6635591e8be235668ae5cf88497b3dbf98c2f5e8c816c8f499aba2ec6e5b05c8888dec2bafc26867324d2cfa24fc8875d1f83ff5f072aca53a6a DIST syslog-summary-1.14.tar.gz 7278 BLAKE2B 609e506c099b734be87ba6d6e21f70283d4654ab5c6d3794da71099f3e590d178348c13ab271ddb84682220091adfd702c107bf2dee792419de3ce14d2a9c9db SHA512 db1f0660ad435eea26fc3ec4cd475f5f1b98bb629495707741077e52aef88fe8bff4a318bb5b0821e57ccfa0646454c6825a5a4fc1fb4b73ea67cbd4defef277 EBUILD syslog-summary-1.14-r2.ebuild 930 BLAKE2B 8253f395d101d43955e82de62a921e200acfbc04004f01505bb77a54f3bb502810fda597df948119d3b81a2673a7c693cf312da7b5b81e2b317ebc69b6266b79 SHA512 9ab12cc09868794e316dd25ac570c5897c76cc3db1c6ea1e39bd6bacb0075f21294983712e7f7b4a5c9e6441ab84df3502c8986706d8437e2e1ebf0f0b23ac3e EBUILD syslog-summary-1.14-r3.ebuild 968 BLAKE2B 4465fb11199dd65c37c399addc3f0242ee21d48def49dcc5b92beedb3364333bb4019a0d2e407d6c49549b15547ab60ba49d5e9f25a63e52da0eb710e03c9c03 SHA512 0d0baa91daae2741ee942476b63ff2a70743f7f5590a2077d729b604f74c028cad7965ba9edfa7d69853d29a27981d55798ddbb26befcb34172758b8d9ba0cde +EBUILD syslog-summary-1.14-r4.ebuild 1146 BLAKE2B add9020437ddf51fa61dea7a70ce4fc604dfaf4ba6ef531c6f4de997fb38208e1e905c39b7d2e3770c54a0252a3fb02614c780e510c20afe386410432c5fe7e8 SHA512 623f7abfcc31a581fc5b33a4dec36f3a01e34e0a69da34048a40a9e6172ab235a18b0a6ae9b886417975063a21fa118e778bc09cf653004f3cdf8b89b42322ec diff --git a/app-admin/syslog-summary/files/syslog-summary-setup.py b/app-admin/syslog-summary/files/syslog-summary-setup.py new file mode 100644 index 0000000..b9ea48f --- /dev/null +++ b/app-admin/syslog-summary/files/syslog-summary-setup.py @@ -0,0 +1,10 @@ +#from distutils.core import setup +from setuptools import setup + +setup(name = 'syslogsummary', + version = '1.14', + py_modules = ['syslogsummary'], + entry_points = { + 'console_scripts': [ 'syslog-summary = syslogsummary:main' ] + } +) diff --git a/app-admin/syslog-summary/syslog-summary-1.14-r4.ebuild b/app-admin/syslog-summary/syslog-summary-1.14-r4.ebuild new file mode 100644 index 0000000..ab476c6 --- /dev/null +++ b/app-admin/syslog-summary/syslog-summary-1.14-r4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="Summarizes the contents of a syslog log file" +HOMEPAGE="https://github.com/dpaleino/syslog-summary" +SRC_URI="mirror://github/dpaleino/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="" +RDEPEND="${PYTHON_DEPS}" + +python_prepare_all() { + eapply "${FILESDIR}/${PN}-py3.diff" + + cp "${FILESDIR}/${PN}-setup.py" setup.py || die "Copying of setup.py failed" + + sed -i -e 's:python-magic:sys-apps/file[python]:' "syslog-summary" || die + + # Sadly, the makefile is useless for us. + rm Makefile || die + + mv syslog-summary syslogsummary.py + distutils-r1_python_prepare_all +} + +python_install_all() { + einstalldocs + doman syslog-summary.1 + + insinto /etc/syslog-summary + doins ignore.rules + + distutils-r1_python_install_all +} + +pkg_postinst() { + elog "install sys-apps/file[python] to enable processing" + elog "of gzip compressed logfiles" +} |