aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pefs-kmod/Makefile
blob: 7da33e54d40f089bee76642cc7b9c2f730def7f0 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
# Created by: Gleb Kurtsou <gleb@FreeBSD.org>
# $FreeBSD$

PORTNAME=   pefs
DISTVERSION=    2017-02-19
CATEGORIES= sysutils
MASTER_SITES=   LOCAL/gleb
PKGNAMESUFFIX=  -kmod

MAINTAINER= gleb@FreeBSD.org
COMMENT=    PEFS kernel level stacked cryptographic filesystem

LICENSE=    BSD2CLAUSE

MAKE_JOBS_UNSAFE=yes
MAKE_ENV=   BINDIR="${PREFIX}/sbin" MANDIR="${MANPREFIX}/man/man" \
        NO_MANCOMPRESS=

ONLY_FOR_ARCHS= i386 amd64 armv6
ONLY_FOR_ARCHS_REASON= untested on any other arch

BROKEN_DragonFly=   does not build: don't know how to make vnode_if.h

USES=       kmod uidfix

OPTIONS_DEFINE= AESNI
OPTIONS_DEFAULT=
AESNI_DESC= Enable AES-NI hardware acceleration

PLIST_FILES=    sbin/pefs \
        lib/pam_pefs.so \
        man/man8/pam_pefs.8.gz \
        man/man8/pefs.8.gz \
        ${KMODDIR}/pefs.ko

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MAESNI}
MAKE_ENV+=  PEFS_AESNI=yes
.endif

.if ${OPSYS} == FreeBSD
. if ${OSVERSION} >= 1100117
PLIST_FILES+=   lib/pam_pefs.so.6
. else
PLIST_FILES+=   lib/pam_pefs.so.5
. endif
.endif

.include <bsd.port.mk>