Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LinOTP und Gentoo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1924
Location: Schweiz

PostPosted: Thu Aug 17, 2017 1:06 pm    Post subject: LinOTP und Gentoo Reply with quote

Seit kurzem liegt ein kleineres OpenVPN-Projekt auf meinem Tisch und eigentlich funktioniert es bereits einwandfrei, aber weil VPN schon entsprechend abgesichert sein sollte bin ich deshalb auf der Suche nach einer guten 2FA-Lösung. Jedoch das einzige was ich bis jetzt gefunden habe und auf die schnelle auch einbauen konnte war der Google Authenticator, viel lieber würde ich aber so etwas wie LinOTP zusammen mit ihrer App verwenden.

Nur wie man einen LinOTP-Server unter Gentoo am besten aufsetzt ist mir nicht ganz klar weil sich die Anleitung eher auf Redhat und Debian bezieht.
Hat hier eventuell bereits jemand erste Erfahrung damit?

EDIT:
Habe nun mal versucht dafür ein ebuild zu schreiben aber das endet leider mit einem sanbox error.
Code:
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="The open source solution for two factor authentication"
HOMEPAGE="https://www.linotp.org/"
SRC_URI="https://github.com/LinOTP/LinOTP/archive/release/${PV}.zip"

LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DEPEND="dev-python/virtualenv
    dev-python/pillow
    dev-python/m2crypto
    dev-python/mysql-python"
RDEPEND="${DEPEND}"
S=${WORKDIR}/LinOTP-release-${PV}

src_unpack() {
    if [ "${A}" != "" ]; then
        unpack ${A}
    fi
}

src_compile() {
    emake
}

src_install() {
    emake DESTDIR="${D}" install
}

_________________
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Back to top
View user's profile Send private message
arfe
Apprentice
Apprentice


Joined: 24 Aug 2005
Posts: 298
Location: Essen

PostPosted: Fri Aug 18, 2017 12:59 pm    Post subject: Reply with quote

Ich vermute mal, dass wir jetzt alle raten sollen, welche Fehlermeldung Dein ebuild produziert.
Back to top
View user's profile Send private message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1924
Location: Schweiz

PostPosted: Fri Aug 18, 2017 1:46 pm    Post subject: Reply with quote

Code:
 * Package:    sys-auth/linotp-2.9.3
 * Repository: schmidicom
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking 2.9.3.zip to /var/tmp/portage/sys-auth/linotp-2.9.3/work
>>> Source unpacked in /var/tmp/portage/sys-auth/linotp-2.9.3/work
>>> Preparing source in /var/tmp/portage/sys-auth/linotp-2.9.3/work/LinOTP-release-2.9.3 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-auth/linotp-2.9.3/work/LinOTP-release-2.9.3 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-auth/linotp-2.9.3/work/LinOTP-release-2.9.3 ...
make -j5
# Invoke makefile target in subdirectory/src
make -C smsprovider/src install
make[1]: Entering directory '/var/tmp/portage/sys-auth/linotp-2.9.3/work/LinOTP-release-2.9.3/smsprovider/src'
`which python` setup.py install --root /
running install
running build
running build_py
creating build
creating build/lib                                                                                                                             
creating build/lib/smsprovider                                                                                                                 
copying smsprovider/__init__.py -> build/lib/smsprovider                                                                                       
copying smsprovider/TestSMSProvider.py -> build/lib/smsprovider
copying smsprovider/SmtpSMSProvider.py -> build/lib/smsprovider
copying smsprovider/SMSProvider.py -> build/lib/smsprovider
copying smsprovider/SMPPSMSProvider.py -> build/lib/smsprovider
copying smsprovider/HttpSMSProvider.py -> build/lib/smsprovider
copying smsprovider/FileSMSProvider.py -> build/lib/smsprovider
copying smsprovider/DeviceSMSProvider.py -> build/lib/smsprovider
warning: build_py: byte-compiling is disabled, skipping.

running install_lib
creating /usr/lib64/python3.4/site-packages/smsprovider
 * ACCESS DENIED:  mkdir:        /usr/lib64/python3.4/site-packages/smsprovider
error: could not create '/usr/lib64/python3.4/site-packages/smsprovider': Permission denied
make[1]: *** [Makefile:50: install] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-auth/linotp-2.9.3/work/LinOTP-release-2.9.3/smsprovider/src'
make: *** [Makefile:74: smsprovider.install] Error 2
 * ERROR: sys-auth/linotp-2.9.3::schmidicom failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-auth/linotp-2.9.3::schmidicom'`,
 * the complete build log and the output of `emerge -pqv '=sys-auth/linotp-2.9.3::schmidicom'`.
 * The complete build log is located at '/var/tmp/portage/sys-auth/linotp-2.9.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-auth/linotp-2.9.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-auth/linotp-2.9.3/work/LinOTP-release-2.9.3'
 * S: '/var/tmp/portage/sys-auth/linotp-2.9.3/work/LinOTP-release-2.9.3'
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-9365.log"
 *
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: /usr/lib64/python3.4/site-packages/smsprovider
A: /usr/lib64/python3.4/site-packages/smsprovider
R: /usr/lib64/python3.4/site-packages/smsprovider
C: /usr/lib/python-exec/python3.4/python setup.py install --root /
 * --------------------------------------------------------------------------------

_________________
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Back to top
View user's profile Send private message
arfe
Apprentice
Apprentice


Joined: 24 Aug 2005
Posts: 298
Location: Essen

PostPosted: Fri Aug 18, 2017 2:07 pm    Post subject: Reply with quote

Code:
* ACCESS DENIED:  mkdir:        /usr/lib64/python3.4/site-packages/smsprovider


Das ist die Ursache!
Back to top
View user's profile Send private message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1924
Location: Schweiz

PostPosted: Fri Aug 18, 2017 2:16 pm    Post subject: Reply with quote

arfe wrote:
Code:
* ACCESS DENIED:  mkdir:        /usr/lib64/python3.4/site-packages/smsprovider


Das ist die Ursache!

Ja das wusste ich auch schon...
Das buildscript von dem Paket steckt seine Nase in Ordner wo es zu diesem Zeitpunkt schlicht nichts verloren hat und das kann ich nicht Patchen. Deswegen habe ich den Versuch mit der Installation über ein ebuild an dieser Stelle abgebrochen und die Fehlermeldung nicht gepostet.
_________________
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum