summaryrefslogtreecommitdiff
path: root/security/pam_howdy/Makefile
blob: 86c7be83a41249195f85822f3f295949a15fbc71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PORTNAME=	pam_howdy
PORTVERSION=	3.0.0.b.20230306
PORTREVISION=	1
CATEGORIES=	security

MAINTAINER=	arrowd@FreeBSD.org
COMMENT=	PAM module for Howdy Face Recognition
WWW=		https://github.com/boltgolt/howdy

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/../../../LICENSE

BUILD_DEPENDS=	${LOCALBASE}/include/linux/input.h:devel/evdev-proto
LIB_DEPENDS=	libevdev.so:devel/libevdev \
		libinih.so:devel/inih \
		libINIReader.so:devel/inih \
		libepoll-shim.so:devel/libepoll-shim
RUN_DEPENDS=	${HOWDY_CMD}:security/howdy

USES=		gettext-runtime localbase:ldflags pkgconfig python:env meson ninja

USE_GITHUB=	yes
GH_ACCOUNT=	boltgolt
GH_PROJECT=	howdy
GH_TAGNAME=	30728a6d36

WRKSRC_SUBDIR=	howdy/src/pam
PLIST_FILES=	lib/pam_howdy.so

HOWDY_CMD=	${LOCALBASE}/libexec/howdy/compare.py

post-patch:
	${REINPLACE_CMD} \
		-e 's|/lib/security|${LOCALBASE}/lib|' \
		${WRKSRC}/meson.build
	${REINPLACE_CMD} \
		-e 's|"python3"|"${PYTHON_CMD}"|' \
		-e 's|"/lib/security/howdy/compare.py"|"${HOWDY_CMD}"|' \
		${WRKSRC}/main.cc

.include <bsd.port.mk>