www-apps/privacyidea: Perl module dependencies

This commit is contained in:
Joerg Deckert 2019-03-07 13:38:25 +01:00
parent 0f301a5733
commit e46119b90c
2 changed files with 135 additions and 0 deletions

View File

@ -9,4 +9,5 @@ DIST privacyidea-FreeRADIUS-2.23.5.tar.gz 13317 BLAKE2B f7201dbdaa0219317ee7ec14
EBUILD privacyidea-2.17.ebuild 2865 BLAKE2B 8dd7859fc8e339e7df065e06b1af804eac6d63a18677c76285850cdb60ea1d7d62ad3b1a011b14430706938d4675ba5d98ffa58f3d43ea973289ee4db2349c73 SHA512 b363f96ed46cc0c9af7445fad201e9834b61930431dd2fb53d25e6a69daffaa3858b25f7c87ddab43dd000dbf15bb13e8de6f7ee2f2190efeb609f8b96a3a362
EBUILD privacyidea-2.19.ebuild 3010 BLAKE2B 8248028c762b0cec3053149091a450b309e1e73f81a8e1328d1334626ef95e3ddb637e91bbf6da9a9a44a26213c5457e91260e7a9d54431099f764110d56233e SHA512 27b6293dcd4edc4686f2c900c35355b46e4aed7cff2c710125a59b1df8ac6756d0480e2d10af771994f0ba9b85011476e0eccc395e80a430e186fafebc76b25a
EBUILD privacyidea-2.23.2.ebuild 3068 BLAKE2B 58e4a3dc762bf0f552081489313fcdf023606873281544c14a908240c764f63e1d170371d658d2bcfb98cc5529f16d910082aac477ab3c28889ab7b405360cd7 SHA512 7177e2c6ffb8d8de6ca39ab66fa67d334070e1766d014ebee37326d6273b00fbe8c90f0d43c8da5bbb7b270194361afcd8d30a57fc7762fac93d1412e1ce5762
EBUILD privacyidea-2.23.5-r1.ebuild 3112 BLAKE2B 3dccbaa14248368c7e3a53e891bc861e7cf7a09d41d9f00005fc3899fa1e318606f9346ba789d6d9059c02b4323a9f1bcf112583ff1f9b0c156cb6eba6143103 SHA512 4d901ce5e5994354cdaef390927cf0ffacb3d048264375236aeab65a2accf77ae805efc3833a4d013a9f58824365da5667334b4fa826e8526ca9b1c959322bee
EBUILD privacyidea-2.23.5.ebuild 3068 BLAKE2B 58e4a3dc762bf0f552081489313fcdf023606873281544c14a908240c764f63e1d170371d658d2bcfb98cc5529f16d910082aac477ab3c28889ab7b405360cd7 SHA512 7177e2c6ffb8d8de6ca39ab66fa67d334070e1766d014ebee37326d6273b00fbe8c90f0d43c8da5bbb7b270194361afcd8d30a57fc7762fac93d1412e1ce5762

View File

@ -0,0 +1,134 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 user
VRADIUS="81513be16e6db775effac9ed39ab10dc381be66d"
DESCRIPTION="privacyIDEA is a modular authentication system"
HOMEPAGE="https://www.privacyidea.org/"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/${PN}/FreeRADIUS/archive/${VRADIUS}.tar.gz -> ${PN}-FreeRADIUS-${PV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+mysql postgres sqlite -translation"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
translation? ( net-libs/nodejs[npm]
app-i18n/poedit )"
RDEPEND="
mysql? ( dev-python/mysql-python
dev-python/pymysql
>=virtual/mysql-5.0 )
postgres? ( dev-python/psycopg )
sqlite? ( dev-python/sqlalchemy[sqlite] )
dev-perl/Config-IniFiles
dev-perl/Crypt-SSLeay
dev-perl/Data-Dump
dev-perl/JSON
dev-perl/Net-SSLeay
dev-perl/Try-Tiny
dev-perl/libwww-perl
dev-python/alembic
dev-python/bcrypt
dev-python/beautifulsoup:4
dev-python/configobj
dev-python/cookies
dev-python/cov-core
dev-python/coverage
dev-python/croniter
dev-python/defusedxml
dev-python/ecdsa
dev-python/flask
dev-python/flask-babel
dev-python/flask-migrate
dev-python/flask-script
dev-python/flask-sqlalchemy
dev-python/funcparserlib
dev-python/imagesize
dev-python/itsdangerous
dev-python/ldap3
dev-python/lxml
dev-python/mako
dev-python/matplotlib
dev-python/mock
dev-python/netaddr
dev-python/nose
dev-python/numpy
dev-python/pandas
dev-python/passlib
dev-python/pillow
dev-python/pycrypto
dev-python/pyjwt
dev-python/pyparsing
dev-python/pytest
dev-python/pytest-cov
dev-python/pytest-runner
dev-python/python-dateutil
dev-python/python-gnupg
dev-python/pyusb
dev-python/pyyaml
dev-python/qrcode
dev-python/requests
dev-python/responses
dev-python/sphinx
dev-python/sphinxcontrib-httpdomain
dev-python/sqlalchemy
dev-python/werkzeug
dev-python/pyrad
dev-python/redis-py
dev-python/sqlsoup
www-apache/mod_wsgi
www-servers/gunicorn
"
REQUIRED_USE="|| ( mysql postgres sqlite )"
python_prepare_all() {
rm -rf tests
rmdir authmodules/FreeRADIUS
ln -s ../../FreeRADIUS-${VRADIUS} authmodules/FreeRADIUS
if use translation; then
npm install grunt --save-dev
npm install grunt-angular-gettext --save-dev
make translate
fi
distutils-r1_python_prepare_all
}
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 -1 /var/lib/${PN}/home ${PN}
}
python_install_all() {
distutils-r1_python_install_all
mv ${D}/usr/etc ${D}/etc
insinto /etc/privacyidea
doins deploy/debian/pi.cfg
doins deploy/privacyidea/NetKnights.pem
doins authmodules/FreeRADIUS/rlm_perl.ini
insinto /etc/privacyidea/CA
doins deploy/debian/openssl.cnf
fowners -R ${PN}:root /etc/privacyidea
fperms 600 /etc/privacyidea/enckey \
/etc/privacyidea/private.pem
## insinto /etc/logrotate.d
## newins "${FILESDIR}/${PN}.logrotate" ${PN}
diropts -o privacyidea -g root
keepdir /var/log/privacyidea
}