diff options
| author | Alexander Barton <alex@barton.de> | 2024-01-08 22:16:52 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2024-01-11 15:12:48 +0100 |
| commit | 07219281ef2092a29050a3934937a2a0c8916e43 (patch) | |
| tree | 1156b065cda4f6e880c1a35943aaac16bc8c83c1 /contrib/MacOSX/postinstall.sh | |
| parent | a5de81e48934c296d56aebed686b122001ec499f (diff) | |
| download | ngircd-07219281ef2092a29050a3934937a2a0c8916e43.tar.gz ngircd-07219281ef2092a29050a3934937a2a0c8916e43.zip | |
Remove unmaintained contrib/MacOSX/ folder
This includes removing the Xcode project. The sample launchd(8) configuration properties list file was moved to "contrib/de.barton.ngircd.plist" and kept.
Diffstat (limited to 'contrib/MacOSX/postinstall.sh')
| -rwxr-xr-x | contrib/MacOSX/postinstall.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/contrib/MacOSX/postinstall.sh b/contrib/MacOSX/postinstall.sh deleted file mode 100755 index a12169e2..00000000 --- a/contrib/MacOSX/postinstall.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# ngIRCd Mac OS X postinstall/postupgrade script - -LDPLIST="/Library/LaunchDaemons/de.barton.ngircd.plist" - -if [ ! -e /etc/ngircd ]; then - echo "Creating symlink: /opt/ngircd/etc -> /etc/ngircd" - ln -s /opt/ngircd/etc /etc/ngircd || exit 1 -else - echo "/etc/ngircd already exists. Don't create symlink." -fi - -if [ ! -e /opt/ngircd/etc/ngircd.conf ]; then - echo "Creating default configuration: /opt/ngircd/etc/ngircd.conf" - cp /opt/ngircd/share/doc/ngircd/sample-ngircd.conf \ - /opt/ngircd/etc/ngircd.conf || exit 1 -else - echo "/opt/ngircd/etc/ngircd.conf exists. Don't copy sample file." -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 - chmod 644 "$LDPLIST" || exit 1 -fi - -if [ -f /tmp/ngircd_needs_restart ]; then - echo "ngIRCd should be (re-)started ..." - if [ -r "$LDPLIST" ]; then - echo "LaunchDaemon script found, starting daemon ..." - launchctl load -w "$LDPLIST" || exit 1 - echo "OK, LaunchDaemon script loaded successfully." - else - echo "LaunchDaemon script not installed. Can't start daemon." - fi -else - echo "Not loading LaunchDaemon script." -fi -rm -f /tmp/ngircd_needs_restart - -# -eof- |