summaryrefslogtreecommitdiff
path: root/sysutils/pam_mount/Makefile
blob: 5f06e8c5939931732dc0fc0cf1ab9afcf9f84456 (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
# Created by: gahr
# $FreeBSD$

PORTNAME=	pam_mount
PORTVERSION=	2.12
CATEGORIES=	sysutils
MASTER_SITES=	SF/${PORTNAME:S/_/-/}/${PORTNAME}/${PORTVERSION}/

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	A PAM that can mount volumes for a user session

LIB_DEPENDS=	HX:${PORTSDIR}/lang/libhx

USES=		pkgconfig perl5
USE_GNOME=	libxml2
USE_XZ=		yes

GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	libcrypto_LIBS="-L/usr/lib -lcrypto" \
		libcrypto_CFLAGS="-I/usr/include"
CONFIGURE_ARGS+=--localstatedir=/var \
		--without-cryptsetup \
		--with-ssbindir=${PREFIX}/sbin

NO_STAGE=	yes
post-patch:
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/pam_mount.c
	${REINPLACE_CMD} -e '/dist_security_DATA/s|\.xml$$|.xml.sample|' \
	   ${WRKSRC}/config/Makefile.am ${WRKSRC}/config/Makefile.in
	${MV} ${WRKSRC}/config/pam_mount.conf.xml ${WRKSRC}/config/pam_mount.conf.xml.sample
	${FIND} ${WRKSRC} -name "*.c" -exec ${REINPLACE_CMD} -e 's|HXformat2_aprintf|HXformat_aprintf|g' {} \;

MAN5=	pam_mount.conf.5
MAN8=	mount.crypt.8 mount.crypt_LUKS.8 mount.crypto_LUKS.8 \
	pmvarrun.8 pmt-ehd.8 umount.crypt.8 umount.crypt_LUKS.8 \
	umount.crypto_LUKS.8 pam_mount.8

.include <bsd.port.mk>