svn commit: r322498 - in head/sysutils/pam_mount: . files
Pietro Cerutti
gahr at FreeBSD.org
Mon Jul 8 11:58:51 UTC 2013
Author: gahr
Date: Mon Jul 8 11:58:50 2013
New Revision: 322498
URL: http://svnweb.freebsd.org/changeset/ports/322498
Log:
- Fix build with newer libHX
- Remove shlib version from LIB_DEPENDS [1]
- Trim Makefile Header
Reported by: bapt [1]
Added:
head/sysutils/pam_mount/files/patch-src_mtab.c (contents, props changed)
head/sysutils/pam_mount/files/patch-src_pmvarrun.c (contents, props changed)
Modified:
head/sysutils/pam_mount/Makefile (contents, props changed)
Modified: head/sysutils/pam_mount/Makefile
==============================================================================
--- head/sysutils/pam_mount/Makefile Mon Jul 8 11:55:14 2013 (r322497)
+++ head/sysutils/pam_mount/Makefile Mon Jul 8 11:58:50 2013 (r322498)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# New ports collection Makefile for: pam_mount
-# Date created: 14 October 2010
-# Whom: gahr
-#
+# Created by: gahr
# $FreeBSD$
-#
PORTNAME= pam_mount
PORTVERSION= 2.12
@@ -14,7 +9,7 @@ MASTER_SITES= SF/${PORTNAME:S/_/-/}/${PO
MAINTAINER= gahr at FreeBSD.org
COMMENT= A PAM that can mount volumes for a user session
-LIB_DEPENDS= HX.27:${PORTSDIR}/lang/libhx
+LIB_DEPENDS= HX:${PORTSDIR}/lang/libhx
USE_GNOME= pkgconfig libxml2
USE_PERL5= yes
@@ -28,11 +23,11 @@ CONFIGURE_ARGS+=--localstatedir=/var \
--with-ssbindir=${PREFIX}/sbin
post-patch:
- ${REINPLACE_CMD} -e '11172s|yes|no|' ${WRKSRC}/${CONFIGURE_SCRIPT}
${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 \
Added: head/sysutils/pam_mount/files/patch-src_mtab.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/pam_mount/files/patch-src_mtab.c Mon Jul 8 11:58:50 2013 (r322498)
@@ -0,0 +1,11 @@
+--- src/mtab.c.orig 2012-12-03 17:20:15.000000000 +0100
++++ src/mtab.c 2012-12-03 17:20:28.000000000 +0100
+@@ -138,7 +138,7 @@
+ l0g("HX_dirname: %s\n", strerror(errno));
+ return -errno;
+ }
+- ret = HX_mkdir(dirname);
++ ret = HX_mkdir(dirname, S_IRWXUGO);
+ free(dirname);
+ if (ret < 0) {
+ l0g("HX_mkdir: %s\n", strerror(-ret));
Added: head/sysutils/pam_mount/files/patch-src_pmvarrun.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/pam_mount/files/patch-src_pmvarrun.c Mon Jul 8 11:58:50 2013 (r322498)
@@ -0,0 +1,11 @@
+--- src/pmvarrun.c.orig 2012-12-03 17:30:58.000000000 +0100
++++ src/pmvarrun.c 2012-12-03 17:31:19.000000000 +0100
+@@ -299,7 +299,7 @@
+ int ret;
+
+ w4rn("creating " VAR_RUN_PMT);
+- if (HX_mkdir(VAR_RUN_PMT) < 0) {
++ if (HX_mkdir(VAR_RUN_PMT, S_IRWXU | S_IRXG | S_IRXO) < 0) {
+ ret = -errno;
+ l0g("unable to create " VAR_RUN_PMT ": %s\n", strerror(errno));
+ return ret;
More information about the svn-ports-head
mailing list