This commit is contained in:
Jörg Deckert 2021-04-13 19:05:46 +02:00
parent a5c53c544c
commit 54e91d02ac
2 changed files with 147 additions and 0 deletions

View File

@ -4,4 +4,5 @@ DIST privacyidea-FreeRADIUS-3.2.tar.gz 14519 BLAKE2B 6388b239aaed3299a5caa829963
DIST privacyidea-FreeRADIUS-3.4.tar.gz 15222 BLAKE2B 2058f1be8a8f5e7ba41f8f166f9ae1846947c16c0518729a8edf02791c47d1572a5715facd839e3dc66e290d3e5dd352e9804ebe5e34d889c932daa9559834c3 SHA512 6e22b82b5ad7d99fae68a435ba3249a6c127b9d2c49925005ac289873916f18837d9814153667b1085c59e3ce31bfc3bc3a8bb2c2ce927589bf3aa5b47976bc7 DIST privacyidea-FreeRADIUS-3.4.tar.gz 15222 BLAKE2B 2058f1be8a8f5e7ba41f8f166f9ae1846947c16c0518729a8edf02791c47d1572a5715facd839e3dc66e290d3e5dd352e9804ebe5e34d889c932daa9559834c3 SHA512 6e22b82b5ad7d99fae68a435ba3249a6c127b9d2c49925005ac289873916f18837d9814153667b1085c59e3ce31bfc3bc3a8bb2c2ce927589bf3aa5b47976bc7
DIST v0.1.0.tar.gz 17714 BLAKE2B d08cad8597a87f4a3ad77d33f06df77acf3902d95ca2f40c272270505350462e3ff30709a93e1595af73f3370e9e2bf2ac66c41f7e0214894a59a6a6f4d35e98 SHA512 0bcd69c8bc9bec35d965ef4c4638bad7ad15c91b115743a4546df2f2661202249df9cee47483a400c257d293033703bcaa7c29e83e05f901aa2cf78cd5ee1755 DIST v0.1.0.tar.gz 17714 BLAKE2B d08cad8597a87f4a3ad77d33f06df77acf3902d95ca2f40c272270505350462e3ff30709a93e1595af73f3370e9e2bf2ac66c41f7e0214894a59a6a6f4d35e98 SHA512 0bcd69c8bc9bec35d965ef4c4638bad7ad15c91b115743a4546df2f2661202249df9cee47483a400c257d293033703bcaa7c29e83e05f901aa2cf78cd5ee1755
EBUILD privacyidea-3.2.2.ebuild 3759 BLAKE2B ee9663ed9cc963a44687f6802ee611d66365810778b4471af10e36eea66f323e00c4c011634e41e9656326d00e5c78e5579913d32e2439ec7bd1927f8bf4d36f SHA512 cd0186b0bbf50d86723948a3683f2ceb5af43571b69ba208753a438c197b89067529100854ad809876fa4bbe0777143df0354b6bf88ca2555d2dc82a519b37c3 EBUILD privacyidea-3.2.2.ebuild 3759 BLAKE2B ee9663ed9cc963a44687f6802ee611d66365810778b4471af10e36eea66f323e00c4c011634e41e9656326d00e5c78e5579913d32e2439ec7bd1927f8bf4d36f SHA512 cd0186b0bbf50d86723948a3683f2ceb5af43571b69ba208753a438c197b89067529100854ad809876fa4bbe0777143df0354b6bf88ca2555d2dc82a519b37c3
EBUILD privacyidea-3.4-r1.ebuild 4624 BLAKE2B 12b0fb5122059f19469c9630db1731b442252c559a59f0caf186a5596b0a88bb123af9c1df723efaec5c7f9be533c603d5c78ac27fe3ef029feb218c4507db1b SHA512 ee09d817e552776517db0ed31b244f342bf21da35883cedbd74ff6c3b538f13cfa9f6a934b28741dd8eecda1bdb27198a7db870f1683b755e8b1cc699d469b2d
EBUILD privacyidea-3.4.ebuild 4325 BLAKE2B 6649a2e7436513d677bf2193b9c56ad56f82be1d4d3ce226dc8217e3797952f0e8059c6c63d8f6c746d2598624fd9531523e260d63bb82afc483fe43a4a925e0 SHA512 fd268e721c96575e264b3570adac953d6ca753a262206824898add1b1160ab1694c00b21993142bb647421d3e89fc42a6d54f00ab265b6e91c4eb530b2819944 EBUILD privacyidea-3.4.ebuild 4325 BLAKE2B 6649a2e7436513d677bf2193b9c56ad56f82be1d4d3ce226dc8217e3797952f0e8059c6c63d8f6c746d2598624fd9531523e260d63bb82afc483fe43a4a925e0 SHA512 fd268e721c96575e264b3570adac953d6ca753a262206824898add1b1160ab1694c00b21993142bb647421d3e89fc42a6d54f00ab265b6e91c4eb530b2819944

View File

@ -0,0 +1,146 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{5,6,7,8,9} )
inherit distutils-r1 user
VRADIUS="3.4"
VWEBAUTHN="0.1.0"
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}/webauthn-client/archive/v${VWEBAUTHN}.tar.gz
https://github.com/${PN}/FreeRADIUS/archive/v${VRADIUS}.tar.gz -> ${PN}-FreeRADIUS-${VRADIUS}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+mysql postgres sqlite -translation -hightokencount"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
translation? ( net-libs/nodejs[npm]
app-i18n/poedit )"
RDEPEND="
mysql? ( dev-python/mysqlclient[${PYTHON_USEDEP}] )
postgres? ( dev-python/psycopg[${PYTHON_USEDEP}] )
sqlite? ( dev-python/sqlalchemy[${PYTHON_USEDEP}] )
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/bcrypt[${PYTHON_USEDEP}]
dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
dev-python/cbor2[${PYTHON_USEDEP}]
dev-python/configobj[${PYTHON_USEDEP}]
dev-python/croniter[${PYTHON_USEDEP}]
dev-python/defusedxml[${PYTHON_USEDEP}]
dev-python/docutils[${PYTHON_USEDEP}]
dev-python/ecdsa[${PYTHON_USEDEP}]
dev-python/flask-babel[${PYTHON_USEDEP}]
dev-python/flask-migrate[${PYTHON_USEDEP}]
dev-python/flask-script[${PYTHON_USEDEP}]
dev-python/flask-versioned[${PYTHON_USEDEP}]
dev-python/funcparserlib[${PYTHON_USEDEP}]
dev-python/huey[${PYTHON_USEDEP}]
dev-python/itsdangerous[${PYTHON_USEDEP}]
dev-python/ldap3[${PYTHON_USEDEP}]
dev-python/netaddr[${PYTHON_USEDEP}]
dev-python/oauth2client[${PYTHON_USEDEP}]
dev-python/passlib[${PYTHON_USEDEP}]
dev-python/pyjwt[${PYTHON_USEDEP}]
dev-python/pyrad[${PYTHON_USEDEP}]
dev-python/python-gnupg[${PYTHON_USEDEP}]
dev-python/pyusb[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/qrcode[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/smpplib[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-htmlhelp[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-httpdomain[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
dev-python/sqlsoup[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
dev-python/werkzeug[${PYTHON_USEDEP}]
www-apache/mod_wsgi
www-servers/gunicorn
"
REQUIRED_USE="|| ( mysql postgres sqlite )"
python_prepare_all() {
rm -rf tests
cp ${WORKDIR}/webauthn-client-${VWEBAUTHN}/pi-webauthn.js ${WORKDIR}/${P}/privacyidea/static/contrib/js/webauthn-client/
if use translation; then
npm install grunt --save-dev
npm install grunt-angular-gettext --save-dev
make translate
fi
if use hightokencount; then
sed -e "s/\"privacyidea\": 50/\"privacyidea\": 5000/" \
-e "s/\"privacyidea\", 50/\"privacyidea\", 5000/" \
-i "${WORKDIR}/${P}/privacyidea/lib/subscriptions.py" \
|| die 'failed to set higher token count for the subscription reminder'
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/pi.cfg
doins deploy/logging.cfg
doins deploy/privacyidea/NetKnights.pem
doins deploy/privacyidea/enckey
doins deploy/privacyidea/private.pem
doins deploy/privacyidea/public.pem
doins ../FreeRADIUS-${VRADIUS}/rlm_perl.ini
doins ../FreeRADIUS-${VRADIUS}/dictionary.netknights
insinto /etc/privacyidea/freeradius2
doins ../FreeRADIUS-${VRADIUS}/config/freeradius2/mods-perl-privacyidea
doins ../FreeRADIUS-${VRADIUS}/config/freeradius2/privacyidea
insinto /etc/privacyidea/freeradius3
doins ../FreeRADIUS-${VRADIUS}/config/freeradius3/mods-perl-privacyidea
doins ../FreeRADIUS-${VRADIUS}/config/freeradius3/privacyidea
insinto /usr/share/privacyidea/freeradius
doins ../FreeRADIUS-${VRADIUS}/privacyidea_radius.pm
## 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
diropts -o privacyidea -g privacyidea
keepdir /var/lib/privacyidea/home
}