View | Details | Raw Unified | Return to bug 161225
Collapse All | Expand All

(-)/usr/ports/security/pam_fprint/Makefile (-4 / +11 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME=	pam_fprint
8
PORTNAME=	pam_fprint
9
PORTVERSION=	0.2
9
PORTVERSION=	20080330
10
PORTREVISION=	4
11
CATEGORIES=	security
10
CATEGORIES=	security
12
MASTER_SITES=	SF/fprint/${PORTNAME}/v${PORTVERSION}
11
MASTER_SITES=	${MASTER_SITE_DEBIAN}
12
MASTER_SITE_SUBDIR=	pool/main/p/${PORTNAME:C/_/-/}
13
DISTNAME=	${PORTNAME:C/_/-/}_${PORTVERSION}+git.orig
13
14
14
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	PAM module offering finger print authentication using libfprint
16
COMMENT=	PAM module offering finger print authentication using libfprint
16
17
17
LIB_DEPENDS=	fprint:${PORTSDIR}/security/libfprint
18
LIB_DEPENDS=	fprint:${PORTSDIR}/security/libfprint
18
19
20
USE_AUTOTOOLS=	autoconf automake
21
AUTOMAKE_ARGS=	-a
19
CONFIGURE_ENV+=	FPRINT_CFLAGS=-I${LOCALBASE}/include
22
CONFIGURE_ENV+=	FPRINT_CFLAGS=-I${LOCALBASE}/include
20
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
21
24
22
USE_BZIP2=	yes
23
USE_GNOME=	pkgconfig
25
USE_GNOME=	pkgconfig
24
26
27
WRKSRC=	${WRKDIR}
28
25
PLIST_FILES+=	bin/pam_fprint_enroll \
29
PLIST_FILES+=	bin/pam_fprint_enroll \
26
		lib/pam_fprint.so
30
		lib/pam_fprint.so
27
31
28
SUB_FILES=	pkg-message
32
SUB_FILES=	pkg-message
29
PKGMESSAGE=	${WRKDIR}/pkg-message
33
PKGMESSAGE=	${WRKDIR}/pkg-message
30
34
35
pre-configure:
36
	cd ${WRKDIR} && aclocal
37
31
post-install:
38
post-install:
32
	@${ECHO}
39
	@${ECHO}
33
	@${ECHO} =========================================================================
40
	@${ECHO} =========================================================================
(-)/usr/ports/security/pam_fprint/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pam_fprint-0.2.tar.bz2) = 57cba8a951d4127e5be4c3b2ced0c1c6fac0201a08c833f1644f0ea2e3fa8a72
1
SHA256 (pam-fprint_20080330+git.orig.tar.gz) = c8204f47f49d0d931bef8226c8d3c6b7c72c31e20bbf59039c4e2ec7660805f3
2
SIZE (pam_fprint-0.2.tar.bz2) = 72781
2
SIZE (pam-fprint_20080330+git.orig.tar.gz) = 16000
(-)/usr/ports/security/pam_fprint/files/patch-src_Makefile.am (+11 lines)
Line 0 Link Here
1
--- src/Makefile.am~	2009-01-08 15:31:21.000000000 -0600
2
+++ src/Makefile.am	2011-10-02 01:51:52.845401986 -0500
3
@@ -1,7 +1,6 @@
4
-noinst_PROGRAMS = pamtest
5
 bin_PROGRAMS = pam_fprint_enroll
6
 pammod_PROGRAMS = pam_fprint.so
7
-pammoddir=/lib/security
8
+pammoddir=$(PREFIX)/lib
9
 
10
 pam_fprint_so_SOURCES = pam_fprint.c
11
 pam_fprint_so_CFLAGS = -fPIC $(FPRINT_CFLAGS)
(-)/usr/ports/security/pam_fprint/files/patch-src_Makefile.in (-20 lines)
Lines 1-20 Link Here
1
--- src/Makefile.in.orig	2007-11-19 20:15:11.000000000 +0100
2
+++ src/Makefile.in	2008-04-12 18:44:55.000000000 +0200
3
@@ -30,7 +30,7 @@
4
 NORMAL_UNINSTALL = :
5
 PRE_UNINSTALL = :
6
 POST_UNINSTALL = :
7
-noinst_PROGRAMS = pamtest$(EXEEXT)
8
+noinst_PROGRAMS =
9
 bin_PROGRAMS = pam_fprint_enroll$(EXEEXT)
10
 pammod_PROGRAMS = pam_fprint.so$(EXEEXT)
11
 subdir = src
12
@@ -163,7 +163,7 @@
13
 target_alias = @target_alias@
14
 top_builddir = @top_builddir@
15
 top_srcdir = @top_srcdir@
16
-pammoddir = /lib/security
17
+pammoddir = ${PREFIX}/lib
18
 pam_fprint_so_SOURCES = pam_fprint.c
19
 pam_fprint_so_CFLAGS = -fPIC $(FPRINT_CFLAGS)
20
 pam_fprint_so_LDFLAGS = -shared
(-)/usr/ports/security/pam_fprint/files/pkg-message.in (-22 lines)
Lines 1-25 Link Here
1
In order to enroll new finger prints, you must have r/w access to the
2
usb device node(s) of your finger print reader (i.e., /dev/{ugen, usb*})
3
(tested with UPEK finger print reader as found in Lenovo T61).
4
5
It is recommended to use devfs.rules(5) and a dedicated group to manage
6
access to your finger print reader.
7
8
You can use `usbdevs -v' to see if your sensor is accessible.
9
10
Example configuration:
11
- /etc/rc.conf:
12
devfs_system_ruleset="localrules"
13
14
- /etc/devfs.rules:
15
[localrules=10]
16
add path 'ugen0*' mode 0660 group operator
17
add path 'usb0*' mode 0660 group operator
18
19
# /etc/rc.d/devfs restart
20
21
Read `pam_fprint_enroll --help' to learn about enrolling fingers.
22
23
The security/fprint_demo port contains the graphical `fprint_demo'
1
The security/fprint_demo port contains the graphical `fprint_demo'
24
application that allows you to manage your finger prints in a comfortable
2
application that allows you to manage your finger prints in a comfortable
25
way.
3
way.
(-)/usr/ports/security/pam_fprint/files/pkg-message.in~ (+35 lines)
Line 0 Link Here
1
In order to enroll new finger prints, you must have r/w access to the
2
usb device node(s) of your finger print reader (i.e., /dev/{ugen, usb*})
3
(tested with UPEK finger print reader as found in Lenovo T61).
4
5
It is recommended to use devfs.rules(5) and a dedicated group to manage
6
access to your finger print reader.
7
8
You can use `usbdevs -v' to see if your sensor is accessible.
9
10
Example configuration:
11
- /etc/rc.conf:
12
devfs_system_ruleset="localrules"
13
14
- /etc/devfs.rules:
15
[localrules=10]
16
add path 'ugen0*' mode 0660 group operator
17
add path 'usb0*' mode 0660 group operator
18
19
# /etc/rc.d/devfs restart
20
21
Read `pam_fprint_enroll --help' to learn about enrolling fingers.
22
23
The security/fprint_demo port contains the graphical `fprint_demo'
24
application that allows you to manage your finger prints in a comfortable
25
way.
26
27
After enrolling fingerprints for your user(s), you can enable finger
28
print authentication by adding the following line to the corresponding
29
PAM configuration file(s) (see the PAM documentation and the pam_fprint
30
web site for more information).
31
32
auth            sufficient      %%PREFIX%%/lib/pam_fprint.so
33
34
/etc/pam.d/system is used for system-wide defaults,
35
/etc/pam.d/{gdm, kde} are used by the GDM/KDM login managers.

Return to bug 161225