Description
John Simmonds (overfuse)
2009-03-09 19:47:09 UTC
Created attachment 184482 [details]
pam-face-authentication-0.2.ebuild
Created attachment 184484 [details]
Manifest for sys-auth/pam-face-authentication
I didn't know if I needed to include this as well..
(In reply to comment #2) > Created an attachment (id=184484) [edit] > Manifest for sys-auth/pam-face-authentication > > I didn't know if I needed to include this as well.. Who told you this? You don't have to add the Manifest file. The devs generate this file on their own when adding new ebuilds or change existing ones. Reassigning to maintainer-wanted, CCing pam herd. The src_compile function is superfluous since that's the default. Also the COPYING file should not be installed (nor should INSTALL if it's the standard boilerplate file). Does it really work only with Linux-PAM or is it supposed to work with OpenPAM too (hint: if it works on FreeBSD, it's OpenPAM-compatible). (In reply to comment #3) > (In reply to comment #2) > > Created an attachment (id=184484) [edit] > > Manifest for sys-auth/pam-face-authentication > > > > I didn't know if I needed to include this as well.. > > Who told you this? You don't have to add the Manifest file. The devs generate > this file on their own when adding new ebuilds or change existing ones. > > Reassigning to maintainer-wanted, CCing pam herd. > No one told me to include the Manifest, I apologize. Now I know I won't in the future. Thanks for correcting my understanding on this matter. Created attachment 186996 [details]
Improved a little: pam-face-authentication-0.2.ebuild
Undertook the changed advised.
I have not yet tested under FreeBSD as the developer states that libpam-devel (>= 0.99.8) is a required component. Not sure if this is LinuxPAM specific or also part of OpenPAM.
I have written to the developers to verify if this module is OpenPAM compatible. Awaiting reply. Created attachment 188291 [details]
Live SVN ebuild (also works for 0.2-r1)
Updated the 0.2 ebuild to work as either live or packaged - rename this to 0.2-r1 to build the 0.2-r1 release. This is my first ebuild, so it may not be done exactly the right way, but it compiles fine for me as either live or packaged version. I also added ~amd64 as it compiles fine for me (working is a different question, but I assume that's not the ebuild's fault)
Created attachment 188497 [details]
Live SVN ebuild updated with GStreamer dep
Also works for 0.2-r1 (but gstreamer dep is unnecessary for 0.2)
Running amd64 here and the 0.2-r1 ebuild installs fine (no clue if it works yet), the 9999 ebuild seems to work but the SVN source code is currently broken. I tried to fix the errors in the configuration files but I wind up with a Makefile which complains about a missing seperator. emerge --info: Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.0 Timestamp of tree: Tue, 12 May 2009 11:00:01 +0000 app-shells/bash: 4.0_p17-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2, 2.6.2 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /usr/share/xbmc/userdata /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-detect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en_GB nl" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/kde-testing /usr/local/portage/layman/vmware /usr/local/portage/mijn-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 amd64codecs apache2 archive avahi berkdb bluetooth bzip2 cdr cli clucene cracklib crypt cups curl dbus dga dri dts dvd dvdrencode fbcondecor fbsplash ffmpeg firefox flac fortran ftp fuse gdbm gestreamer gif gimpprint gpm gtk gtk2 hal iconv icq imap ipv6 isdnlog java javascript jpeg kde kdeenablefinal kdeprefix mad matroska midi mmx mp3 mp4 mplayer msn mudflap multilib mysql ncurses networkmanager nls nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp openvpn pam pcre pdf perl php plasma png pppd pptp python qt3support qt4 quicktime rdesktop readline reflection samba sdl session slang spell spl sse sse2 ssl svg sysfs taglib tcpd theora truetype unicode usb v4l v4l2 vorbis wacom winbind x264 xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="wacom evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text g15" LINGUAS="en_GB nl" USERLAND="GNU" VIDEO_CARDS="apm nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Output from the 9999 ebuild (the current SVN build and future 0.3 branch): *svn snip* Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.0.0 Timestamp of tree: Tue, 12 May 2009 11:00:01 +0000 app-shells/bash: 4.0_p17-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2, 2.6.2 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /usr/share/xbmc/userdata /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-detect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en_GB nl" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/kde-testing /usr/local/portage/layman/vmware /usr/local/portage/mijn-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 amd64codecs apache2 archive avahi berkdb bluetooth bzip2 cdr cli clucene cracklib crypt cups curl dbus dga dri dts dvd dvdrencode fbcondecor fbsplash ffmpeg firefox flac fortran ftp fuse gdbm gestreamer gif gimpprint gpm gtk gtk2 hal iconv icq imap ipv6 isdnlog java javascript jpeg kde kdeenablefinal kdeprefix mad matroska midi mmx mp3 mp4 mplayer msn mudflap multilib mysql ncurses networkmanager nls nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp openvpn pam pcre pdf perl php plasma png pppd pptp python qt3support qt4 quicktime rdesktop readline reflection samba sdl session slang spell spl sse sse2 ssl svg sysfs taglib tcpd theora truetype unicode usb v4l v4l2 vorbis wacom winbind x264 xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="wacom evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text g15" LINGUAS="en_GB nl" USERLAND="GNU" VIDEO_CARDS="apm nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS *snip* I just compiled the latest SVN build on x86_64 with no problems (I can't test that it runs because I'm having trouble recompiling my webcam's drivers). I suggest reporting an issue at http://code.google.com/p/pam-face-authentication/issues/list - the author is usually quite responsive. Created attachment 202839 [details]
New live SVN ebuild updated for SoC 2009 work (rename to -0.3 for 0.3 release)
Updated for modifications made during Summer of Code 2009 - the latest ebuild will work either from the current SVN version or from the 0.3 release. It works for me on amd64 with gdm 2.20.9-r1. What needs to be done to get this into the tree? (Someone, please change the summary of this bug to reflect that it's not for 0.2 anymore) I bumped the ebuilt to 0.3 and wrote a new one for kdm plugin. I was able to get an option to choose user+face authentication but choosing it causes only user beeing displayed but nothing more happens! The camera does work. I was able to authenticate with su however. Any help? (In reply to comment #14) > I bumped the ebuilt to 0.3 and wrote a new one for kdm plugin. > > I was able to get an option to choose user+face authentication but choosing it > causes only user beeing displayed but nothing more happens! The camera does > work. > Using kde-faceauthenticate instead of kde4-faceauthenticate fixes the problem. Created attachment 237407 [details]
0.3 ebuild
Created attachment 237409 [details]
kdm plugin ebuild
(In reply to comment #16) > Created an attachment (id=237407) [details] > 0.3 ebuild > Very bad ebuild: 1) cmake && pam eclass not used,does not depend on cmake but uses it 2) Stable amd64 keywordsemake 3) emake CC="$(tc-getCC)" - use multilib && toolchain eclasses If you help ebuild write - contacted #gentoo-sunrise IRC channel http://www.gentoo.org/proj/en/sunrise/ (In reply to comment #18) ... > Very bad ebuild: There are a few more things. Better place for desktop file. /etc/pam.d/kde-faceauthenticate Change of /etc/pam.d/su Change of /usr/share/config/kdm/kdmrc Better place for /usr/kde/4/bin/xwindowFaceAuth I almost only bumped the previous ebuild. *DO NOT* touch /etc/pam.d/su . If you ever do, do not even commit this to Sunrise! The /etc/pam.d files that are there are sacred and should *not* be fiddled with, ever. Without GTK use-flag for opencv, qt-facetrainer (program from pam-face-authentication) crashes (it says something like "You need to build OpenCV with Windows, GTK+ or Carbon support"). So I think it must be added to DEPEND in ebuild. -- Found Qt-Version 4.7.2 (using /usr/bin/qmake) -- Checking GNUCXX version 3/4 to determine OpenCV /opt/net/ path CMake Error at cmake/modules/FindOpenCV.cmake:239 (MESSAGE): OpenCV required but some headers or libs not found. Please specify it's location with OpenCV_ROOT_DIR env. variable. Call Stack (most recent call first): CMakeLists.txt:75 (FIND_PACKAGE) Created attachment 280453 [details]
build.log version 0.3
using media-libs/opencv-2.2.0
This has been in the kde overlay for some time. I'd say noone from KDE team probably wants to be responsible for placing this in the main tree, since messing with PAM requires you to be a wizard of at least level 18. Then again, if someone from pam team is interested, give us a shout. Created attachment 363858 [details]
pam-face-authentication-0.3.ebuild
latest version from kde overlay
Created attachment 363860 [details, diff]
pam-face-authentication-0.3-cmake.patch
Created attachment 363862 [details, diff]
pam-face-authentication-0.3-opencv.patch
Created attachment 363864 [details]
kdm-plugin-pam-face-authentication-0.2.ebuild
latest version from kde overlay
Removed from kde overlay. Feel free to maintain this. kde herd is out of the game. http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=5038be0ae196c754a09e318135b99e7ea9b2ff44 http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=bb4fe8feb05cef8dca8d7eab4dcaa87381a3ab50 |