2013-07-08 13:58:50 +02:00
|
|
|
# Created by: gahr
|
2010-11-02 10:51:12 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pam_mount
|
2011-11-28 14:05:41 +01:00
|
|
|
PORTVERSION= 2.12
|
2010-11-02 10:51:12 +01:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= SF/${PORTNAME:S/_/-/}/${PORTNAME}/${PORTVERSION}/
|
|
|
|
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
|
|
COMMENT= A PAM that can mount volumes for a user session
|
|
|
|
|
2013-07-08 13:58:50 +02:00
|
|
|
LIB_DEPENDS= HX:${PORTSDIR}/lang/libhx
|
2010-11-02 10:51:12 +01:00
|
|
|
|
2013-08-31 01:57:36 +02:00
|
|
|
USES= pkgconfig perl5
|
|
|
|
USE_GNOME= libxml2
|
2010-11-08 10:11:19 +01:00
|
|
|
USE_XZ= yes
|
2010-11-02 16:51:57 +01:00
|
|
|
|
2010-11-02 10:51:12 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= libcrypto_LIBS="-L/usr/lib -lcrypto" \
|
|
|
|
libcrypto_CFLAGS="-I/usr/include"
|
2011-09-07 12:06:25 +02:00
|
|
|
CONFIGURE_ARGS+=--localstatedir=/var \
|
|
|
|
--without-cryptsetup \
|
|
|
|
--with-ssbindir=${PREFIX}/sbin
|
2010-11-02 10:51:12 +01:00
|
|
|
|
2013-09-21 01:05:58 +02:00
|
|
|
NO_STAGE= yes
|
2010-11-02 10:51:12 +01:00
|
|
|
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
|
2013-07-08 13:58:50 +02:00
|
|
|
${FIND} ${WRKSRC} -name "*.c" -exec ${REINPLACE_CMD} -e 's|HXformat2_aprintf|HXformat_aprintf|g' {} \;
|
2010-11-02 10:51:12 +01:00
|
|
|
|
|
|
|
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>
|