aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscheidell <scheidell@FreeBSD.org>2011-11-29 20:59:55 +0800
committerscheidell <scheidell@FreeBSD.org>2011-11-29 20:59:55 +0800
commit1144b33f7ecbcb22e825ffc341587604b7a62ad8 (patch)
tree7b7737e5da72734450f878225982c080875316af
parent6b452638dee1665d7eb67d8d7c62afce2585fab3 (diff)
downloadfreebsd-ports-gnome-1144b33f7ecbcb22e825ffc341587604b7a62ad8.tar.gz
freebsd-ports-gnome-1144b33f7ecbcb22e825ffc341587604b7a62ad8.tar.zst
freebsd-ports-gnome-1144b33f7ecbcb22e825ffc341587604b7a62ad8.zip
- Submitter is now Maintainer
- There's one more commit after version 0.2 on github. After that, the software discontinued. This version is adopted by Debian - added alocal/automake - Committed with changed (added IGNORE for FreeBSD < 8.x since libusb 1.0 is needed, see libfprint) PR: 161225 Submitted by: Zhihao Yuan <lichray@gmail.com> Approved by: ports (maintainer timeout) gabor (mentor) Feature safe: yes
-rw-r--r--security/fprint_demo/Makefile23
-rw-r--r--security/fprint_demo/distinfo4
-rw-r--r--security/fprint_demo/pkg-message9
-rw-r--r--security/fprint_demo/pkg-plist7
4 files changed, 30 insertions, 13 deletions
diff --git a/security/fprint_demo/Makefile b/security/fprint_demo/Makefile
index 9920877f75b8..f6498757becb 100644
--- a/security/fprint_demo/Makefile
+++ b/security/fprint_demo/Makefile
@@ -6,29 +6,40 @@
#
PORTNAME= fprint_demo
-PORTVERSION= 0.4
-PORTREVISION= 4
+PORTVERSION= 20080303
CATEGORIES= security
-MASTER_SITES= SF/fprint/${PORTNAME}/v${PORTVERSION}
+MASTER_SITES= ${MASTER_SITE_DEBIAN}
+MASTER_SITE_SUBDIR= pool/main/f/${PORTNAME:C/_/-/}
+DISTNAME= ${PORTNAME:C/_/-/}_${PORTVERSION}+git.orig
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= lichray@gmail.com
COMMENT= Demo and test application for libfprint
LIB_DEPENDS= fprint:${PORTSDIR}/security/libfprint
+USE_AUTOTOOLS= autoconf automake
+AUTOMAKE_ARGS= -a
GNU_CONFIGURE= yes
-USE_BZIP2= yes
USE_GNOME= atk glib20 gtk20 pango pkgconfig
+INSTALLS_ICONS= yes
-PLIST_FILES+= bin/fprint_demo
+WRKSRC= ${WRKDIR}
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 800069
+IGNORE= libfprint will not compile on FreeBSD < 8
+.endif
+
CONFIGURE_ENV+= CRYPTO_CFLAGS=-I${OPENSSLINC} \
CRYPTO_LIBS=-lcrypto
CFLAGS+= -DHAVE_MEMMEM
+pre-configure:
+ cd ${WRKDIR} && ${ACLOCAL}
+
post-install:
+ @-update-desktop-database
@${ECHO}
@${ECHO} =========================================================================
@${ECHO}
diff --git a/security/fprint_demo/distinfo b/security/fprint_demo/distinfo
index 114c2aea2cd1..63e6a1b88dce 100644
--- a/security/fprint_demo/distinfo
+++ b/security/fprint_demo/distinfo
@@ -1,2 +1,2 @@
-SHA256 (fprint_demo-0.4.tar.bz2) = f071c0f3ae37365803c074fb5a544fb8cfa9fdd4ca9be9efe0488889ccb41267
-SIZE (fprint_demo-0.4.tar.bz2) = 75986
+SHA256 (fprint-demo_20080303+git.orig.tar.gz) = fcff7f6e8d61b253b88dd87ecf5cdb5418ecf11178ce7cb6ae0e350485045232
+SIZE (fprint-demo_20080303+git.orig.tar.gz) = 77714
diff --git a/security/fprint_demo/pkg-message b/security/fprint_demo/pkg-message
index aa5c8ce097e4..a0d3ed506b25 100644
--- a/security/fprint_demo/pkg-message
+++ b/security/fprint_demo/pkg-message
@@ -1,11 +1,10 @@
In order to enroll new finger prints, you must have r/w access to the
-usb device node(s) of your finger print reader (i.e., /dev/{ugen, usb}*)
-(tested with UPEK finger print reader as found in Lenovo T61).
+usb device node(s) of your finger print reader (i.e., /dev/{ugen, usb}*).
It is recommended to use devfs.rules(5) and a dedicated group to manage
access to your finger print reader.
-You can use `usbdevs -v' to see if your sensor is accessible.
+You can use `usbconfig' to see if your sensor is accessible.
Example configuration:
- /etc/rc.conf:
@@ -13,7 +12,7 @@ devfs_system_ruleset="localrules"
- /etc/devfs.rules:
[localrules=10]
-add path 'ugen0*' mode 0660 group operator
-add path 'usb0*' mode 0660 group operator
+add path 'usb' mode 0770 group operator
+add path 'usb/*' mode 0660 group operator
# /etc/rc.d/devfs restart
diff --git a/security/fprint_demo/pkg-plist b/security/fprint_demo/pkg-plist
new file mode 100644
index 000000000000..5f1b67f2cda2
--- /dev/null
+++ b/security/fprint_demo/pkg-plist
@@ -0,0 +1,7 @@
+bin/fprint_demo
+share/applications/fprint_demo.desktop
+share/icons/hicolor/128x128/apps/fprint_demo.png
+share/icons/hicolor/16x16/apps/fprint_demo.png
+share/icons/hicolor/22x22/apps/fprint_demo.png
+share/icons/hicolor/48x48/apps/fprint_demo.png
+share/icons/hicolor/scalable/apps/fprint_demo.svg