freebsd-ports/sysutils/pam_mount/files/patch-src_pam_mount.c
Pietro Cerutti 1c6d04df18 - New port: sysutils/pam_mount
pam_mount is a Pluggable Authentication Module that can mount volumes for a
  user session. This module is aimed at environments with central file servers
  that a user wishes to mount on login and unmount on logout, such as
  (semi-)diskless stations where many users can logon and where statically
  mounting the entire /home from a server is a security risk, or listing all
  possible volumes in /etc/fstab is not feasible.

  WWW: http://pam-mount.sourceforge.net/
2010-11-02 09:51:12 +00:00

11 lines
421 B
C

--- src/pam_mount.c.orig 2010-08-10 01:07:35.000000000 +0200
+++ src/pam_mount.c 2010-10-14 18:04:54.000000000 +0200
@@ -39,6 +39,8 @@
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
# define CONFIGFILE "/etc/pam_mount.conf.xml"
+#elif defined(__FreeBSD__)
+# define CONFIGFILE "%%PREFIX%%/etc/security/pam_mount.conf.xml"
#else
# define CONFIGFILE "/etc/security/pam_mount.conf.xml"
#endif