Skip to content

Commit 7ed46a4

Browse files
committed
macOS: added MacPorts usage description
Signed-off-by: Hofi <hofione@gmail.com>
1 parent 1f38cba commit 7ed46a4

File tree

7 files changed

+487
-68
lines changed

7 files changed

+487
-68
lines changed

_data/external_links.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,22 @@ grpc-keep:
411411
homebrew:
412412
id: homebrew
413413
url: http://brew.sh
414-
title: [ "Homebrew" ]
414+
title: [ "/[Hh]ome[Bb]rew/" ]
415415

416416
homebrew-inst-detailed:
417417
id: homebrew-inst-detailed
418418
url: https://mac.install.guide/homebrew/3.html
419-
title: [ "Homebrew" ]
419+
title: [ "/[Hh]ome[Bb]rew [Ii]nstallation/", "/[Ii]nstall [Hh]ome[Bb]rew/" ]
420+
421+
macports:
422+
id: macports
423+
url: https://www.macports.org
424+
title: [ "/[Mm]ac[Pp]orts/" ]
425+
426+
macports-inst-detailed:
427+
id: macports-inst-detailed
428+
url: https://www.macports.org/install.php
429+
title: [ "/[Mm]ac[Pp]orts [Ii]nstallation/", "/[Ii]nstall [Mm]ac[Pp]orts/" ]
420430

421431
iptables:
422432
id: iptables

_data/navigation.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ admin-guide-nav:
140140
- title: "file"
141141
url: /admin-guide/060_Sources/020_File/README
142142
subnav:
143-
- title: "Notes on reading kernel messages"
144-
url: /admin-guide/060_Sources/020_File/000_Notes_on_reading_kernel_messages
143+
- title: "file() source options"
144+
url: /admin-guide/060_Sources/020_File/000_File_source_options
145145
- title: "How file sources are followed"
146146
url: /admin-guide/060_Sources/020_File/001_File_following
147-
- title: "file() source options"
148-
url: /admin-guide/060_Sources/020_File/002_File_source_options
147+
- title: "Notes on reading kernel messages"
148+
url: /admin-guide/060_Sources/020_File/002_Notes_on_reading_kernel_messages
149149
- title: "Arr logs"
150150
url: /admin-guide/060_Sources/025_Arr_logs/README
151151
subnav:
@@ -154,6 +154,11 @@ admin-guide-nav:
154154
subnav:
155155
- title: "wildcard-file() source options"
156156
url: /admin-guide/060_Sources/030_Wildcard-file/000_Wildcard-file_options
157+
- title: "hypr"
158+
url: /admin-guide/060_Sources/031_Hypr/README
159+
subnav:
160+
- title: "hypr-audit-trail() and hypr-app-audit-trail() source options"
161+
url: /admin-guide/060_Sources/031_Hypr/000_Hypr_options
157162
- title: "Jellyfin"
158163
url: /admin-guide/060_Sources/035_Jellyfin/README
159164
subnav:

doc/_dev-guide/chapter_0/section_3.md

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ description: >-
99

1010
At present we are not supporting macOS {{ site.product.short_name }} on our [[official repository|gh-syslog-ng]] on GitHub. However, you can install pre-built {{ site.product.short_name }} binaries from various sources or can compile yourself following [[this guide|dev-platform-build-macos#compiling-from-source]].
1111

12-
If you want to install {{ site.product.short_name }} on macOS you can use multiple packaga managers e.g. Homebrew
12+
If you want to install {{ site.product.short_name }} on macOS you can use multiple packaga managers like Homebrew or MacPorts
1313

14-
### Homebrew
14+
### Using Homebrew
1515

1616
First, check [[this|dev-platform-build-macos#dependencies]] if you have not got Homebrew installed and pre-configured yet.
1717

@@ -20,7 +20,7 @@ Homebrew has now different home directories on ARM and X86 systems, also the loc
2020
**Hint**: you can use `export HOMEBREW_PREFIX=$(brew --prefix)` in your scripts or shell environments to get and reference the actual location of your homewbrew installation
2121
{: .notice--info}
2222

23-
### Checking dependencies
23+
#### Checking dependencies
2424

2525
The {{ site.product.short_name }} package on macOS in homebrew is organized into a formula called `syslog-ng`.
2626

@@ -30,9 +30,9 @@ For checking [[dependencies|dev-platform-build-macos#dependencies]] of it you ca
3030
brew deps syslog-ng
3131
```
3232

33-
This will list all the required dependencies are needed to run {{ site.product.short_name }}, and homebrew would install automatically as needed.
33+
This will list all the required dependencies are needed to run {{ site.product.short_name }}, and homebrew would install automatically as needed.
3434

35-
### Installation
35+
#### Installation
3636

3737
Using homebrew it is simple, use
3838

@@ -42,7 +42,7 @@ brew install syslog-ng
4242

4343
This command line refers to the latest distribution of {{ site.product.short_name }} versions at the time of writing, and usually updated quickly by the homwbrew crew after a new release.
4444

45-
### Starting syslog-ng
45+
#### Starting syslog-ng
4646

4747
You can start `syslog-ng` many ways in foreground, e.g. in a terminal window
4848

@@ -60,12 +60,67 @@ ${HOMEBREW_PREFIX}/sbin/syslog-ng -Fdevt
6060

6161
this will give you detailed information of what {{ site.product.short_name }} does.
6262

63+
### Using MacPorts
64+
65+
First, check [[this|dev-platform-build-macos#dependencies]] if you have not got MacPorts installed and pre-configured yet.
66+
67+
Installation location of MacPorts will be referenced as `${MACPORTS_PREFIX}` in this document, as if you follow the installation instructions above it will be set already correctly independenty of your system.
68+
69+
**Hint**: you can use `export MACPORTS_PREFIX=/opt/local` in your scripts or shell environments to get and reference the actual location of your MacPorts installation
70+
{: .notice--info}
71+
72+
#### Checking dependencies in MacPorts
73+
74+
For checking [[dependencies|dev-platform-build-macos#dependencies]] of it you can use
75+
76+
```shell
77+
port deps syslog-ng-devel
78+
```
79+
80+
**Note**: there is a `syslog-ng` package as well in MacPorts, the one with `-devel` suffix is usually a more fresh version.
81+
{: .notice--info}
82+
83+
This will list all the required dependencies are needed to run {{ site.product.short_name }}, and MacPorts would install automatically as needed.
84+
85+
#### Installation via MacPorts
86+
87+
Using MacPorts it is simple, use
88+
89+
```shell
90+
port install syslog-ng-devel
91+
```
92+
93+
This command line refers to the latest distribution of {{ site.product.short_name }} versions at the time of writing, and usually updated quickly by the homwbrew crew after a new release.
94+
95+
#### Starting syslog-ng which installed from MacPorts
96+
97+
You can start `syslog-ng` many ways in foreground, e.g. in a terminal window
98+
99+
```shell
100+
${MACPORTS_PREFIX}/sbin/syslog-ng -F
101+
```
102+
103+
this will start it as a foreground process in the terminal and write only minimal information to the console during its run.
104+
105+
To see more details you can specify some debug flags, like
106+
107+
```shell
108+
${MACPORTS_PREFIX}/sbin/syslog-ng -Fdevt
109+
```
110+
111+
this will give you detailed information of what {{ site.product.short_name }} does.
112+
63113
### Running {{ site.product.short_name }} as daemon
64114

115+
> **Note:**
116+
>
117+
> Bellow examples use `YOUR_INSTALLATION_ROOT` which is depending on the package manager you used to install {{ site.product.short_name }}.
118+
{: .notice}
119+
65120
You can start it manually as a backround daemon
66121

67122
```shell
68-
${HOMEBREW_PREFIX}/sbin/syslog-ng
123+
YOUR_INSTALLATION_ROOT/sbin/syslog-ng
69124
```
70125

71126
however this is not a persistent state, after a system restart {{ site.product.short_name }} will not start automatically by default.
@@ -93,14 +148,14 @@ You can find several pages about `launchd` and how to add System or User Launch
93148
94149
<key>ProgramArguments</key>
95150
<array>
96-
<string>/opt/homebrew/sbin/syslog-ng</string>
151+
<string>YOUR_INSTALLATION_ROOT/sbin/syslog-ng</string>
97152
<string>-F</string>
98153
</array>
99154
100155
<key>StandardOutPath</key>
101-
<string>/opt/homebrew/var/log/syslog-ng-daemon.stdout.log</string>
156+
<string>YOUR_INSTALLATION_ROOT/var/log/syslog-ng-daemon.stdout.log</string>
102157
<key>StandardErrorPath</key>
103-
<string>/opt/homebrew/var/log/syslog-ng-daemon.stderr.log</string>
158+
<string>YOUR_INSTALLATION_ROOT/var/log/syslog-ng-daemon.stderr.log</string>
104159
</dict>
105160
</plist>
106161
```

0 commit comments

Comments
 (0)