diff options
| author | Alexander Barton <alex@barton.de> | 2010-10-26 15:15:06 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2010-10-26 15:15:06 +0200 |
| commit | ffccfb09753c6ff7fd62417a0141ba95f105785f (patch) | |
| tree | ecfcbf26a7e6d74ce5d4df79b45b7826610926db | |
| parent | 76f40bdb988440a73431eb14a27f30aeaa18ebe5 (diff) | |
| download | ngircd-ffccfb09753c6ff7fd62417a0141ba95f105785f.tar.gz ngircd-ffccfb09753c6ff7fd62417a0141ba95f105785f.zip | |
Mac OS X package ("make osxpkg"): generate PAM configuration
| -rwxr-xr-x | contrib/MacOSX/postinstall.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/MacOSX/postinstall.sh b/contrib/MacOSX/postinstall.sh index 9cca7b48..a12169e2 100755 --- a/contrib/MacOSX/postinstall.sh +++ b/contrib/MacOSX/postinstall.sh @@ -19,6 +19,20 @@ else fi chmod o-rwx /opt/ngircd/etc/ngircd.conf +if [ ! -e /opt/ngircd/etc/ngircd.pam ]; then + echo "Creating default PAM configuration: /opt/ngircd/etc/ngircd.pam" + echo "# PAM configuration for ngIRCd" >/opt/ngircd/etc/ngircd.pam + echo "" >>/opt/ngircd/etc/ngircd.pam + echo "auth required pam_permit.so" >>/opt/ngircd/etc/ngircd.pam + echo "#auth required pam_opendirectory.so" >>/opt/ngircd/etc/ngircd.pam +fi +chmod 644 /opt/ngircd/etc/ngircd.pam + +if [ ! -e /etc/pam.d/ngircd ]; then + echo "Linkint /opt/ngircd/etc/ngircd.pam to /etc/pam.d/ngircd" + ln -s /opt/ngircd/etc/ngircd.pam /etc/pam.d/ngircd || exit 1 +fi + if [ -f "$LDPLIST" ]; then echo "Fixing ownership and permissions of LaunchDaemon script ..." chown root:wheel "$LDPLIST" || exit 1 |