freebsd-ports/sysutils/pam_mount/Makefile
Kubilay Kocak 37e82e1f27 sysutils/pam_mount: Cherrypick upstream for libHX 3.12 support, Enable STAGE
This issue was originally reported on the freebsd-ports mailing list [1]
and has been sitting in my local tree since June. Let's finish it off.

- Backport upstream commit adding libHX 3.12 support [2] and remove
  obsoleted patches (patch-src_mtab.c, patch-src_pmvarrun.c
- QA: Enable STAGE support, remove MAN* macros and pkg-plist accordingly
- QA: Remove indefinite article from COMMENT
- QA: Add LICENSE (LGPL21 GPLv2)
- QA: Use new LIB_DEPENDS shared library convention

[1] http://lists.freebsd.org/pipermail/freebsd-ports/2013-June/084156.html
[2] 33550036cb/

Reviewed by:	gahr (maintainer)
Approved by:	gahr (maintainer)
2013-11-29 09:14:05 +00:00

35 lines
1 KiB
Makefile

# Created by: gahr
# $FreeBSD$
PORTNAME= pam_mount
PORTVERSION= 2.12
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME:S/_/-/}/${PORTNAME}/${PORTVERSION}/
MAINTAINER= gahr@FreeBSD.org
COMMENT= PAM module that can mount volumes for a user session
LICENSE= LGPL21 GPLv2
LICENSE_COMB= multi
LIB_DEPENDS= libHX.so:${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
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' {} \;
.include <bsd.port.mk>