Skip to content

Commit 5fb1c13

Browse files
authored
macOS: updated package dependencies and gcc support (#134)
- added MacPorts usage description - added FreeBSD build description Preview: - https://hofione.github.io/syslog-ng.github.io/dev-guide/chapter_4/section_2/README - https://hofione.github.io/syslog-ng.github.io/dev-guide/chapter_4/section_3/README Signed-off-by: Hofi [hofione@gmail.com](mailto:hofione@gmail.com)
2 parents 715bd4c + 44386d3 commit 5fb1c13

File tree

8 files changed

+976
-76
lines changed

8 files changed

+976
-76
lines changed

_data/external_links.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ flask:
343343
url: http://flask.pocoo.org/
344344
title: [ "Flask" ]
345345

346+
freebsd-ports:
347+
id: freebsd-ports
348+
url: https://ports.freebsd.org/cgi/ports.cgi
349+
title: [ "/FreeBSD [Pp]orts/" ]
350+
346351
freepascal-launchd:
347352
id: freepascal-launchd
348353
url: https://wiki.freepascal.org/macOS_daemons_and_agents
@@ -411,12 +416,22 @@ grpc-keep:
411416
homebrew:
412417
id: homebrew
413418
url: http://brew.sh
414-
title: [ "Homebrew" ]
419+
title: [ "/[Hh]ome[Bb]rew/" ]
415420

416421
homebrew-inst-detailed:
417422
id: homebrew-inst-detailed
418423
url: https://mac.install.guide/homebrew/3.html
419-
title: [ "Homebrew" ]
424+
title: [ "/[Hh]ome[Bb]rew [Ii]nstallation/", "/[Ii]nstall [Hh]ome[Bb]rew/" ]
425+
426+
macports:
427+
id: macports
428+
url: https://www.macports.org
429+
title: [ "/[Mm]ac[Pp]orts/" ]
430+
431+
macports-inst-detailed:
432+
id: macports-inst-detailed
433+
url: https://www.macports.org/install.php
434+
title: [ "/[Mm]ac[Pp]orts [Ii]nstallation/", "/[Ii]nstall [Mm]ac[Pp]orts/" ]
420435

421436
iptables:
422437
id: iptables

_data/navigation.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ admin-guide-nav:
8181
- title: "Configuring {{ site.product.short_name }} relays"
8282
url: /admin-guide/040_Quick-start_guide/002_Configuring_syslog-ng_relays/README
8383
subnav:
84-
- title: "Configuring {{ site.product.short_name }} on relay hosts"
85-
url: /admin-guide/040_Quick-start_guide/002_Configuring_syslog-ng_relays/000_Configuring_syslog-ng_on_relay_hosts
8684
- title: "How relaying log messages works"
8785
url: /admin-guide/040_Quick-start_guide/002_Configuring_syslog-ng_relays/001_How_relaying_works
8886
- title: "Managing and checking {{ site.product.short_name }} service on Linux"
@@ -140,12 +138,12 @@ admin-guide-nav:
140138
- title: "file"
141139
url: /admin-guide/060_Sources/020_File/README
142140
subnav:
143-
- title: "Notes on reading kernel messages"
144-
url: /admin-guide/060_Sources/020_File/000_Notes_on_reading_kernel_messages
141+
- title: "file() source options"
142+
url: /admin-guide/060_Sources/020_File/000_File_source_options
145143
- title: "How file sources are followed"
146144
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
145+
- title: "Notes on reading kernel messages"
146+
url: /admin-guide/060_Sources/020_File/002_Notes_on_reading_kernel_messages
149147
- title: "Arr logs"
150148
url: /admin-guide/060_Sources/025_Arr_logs/README
151149
subnav:
@@ -154,6 +152,11 @@ admin-guide-nav:
154152
subnav:
155153
- title: "wildcard-file() source options"
156154
url: /admin-guide/060_Sources/030_Wildcard-file/000_Wildcard-file_options
155+
- title: "hypr"
156+
url: /admin-guide/060_Sources/031_Hypr/README
157+
subnav:
158+
- title: "hypr-audit-trail() and hypr-app-audit-trail() source options"
159+
url: /admin-guide/060_Sources/031_Hypr/000_Hypr_options
157160
- title: "Jellyfin"
158161
url: /admin-guide/060_Sources/035_Jellyfin/README
159162
subnav:
@@ -836,13 +839,13 @@ admin-guide-nav:
836839
url: /admin-guide/120_Parser/014_panos_parser/001_Panos_parser_options
837840
- title: "Sudo parser"
838841
url: /admin-guide/120_Parser/015_sudo_parser
839-
- title: "MariaDB parser"
840-
url: /admin-guide/120_Parser/016_mariadb_parser
841842
- title: "PostgreSQL parser"
842843
url: /admin-guide/120_Parser/016_PostgreSQL_csvlog_parser/README
843844
subnav:
844845
- title: "PostgreSQL csvlog parser options"
845846
url: /admin-guide/120_Parser/016_PostgreSQL_csvlog_parser/001_PostgreSQL_parser_options
847+
- title: "MariaDB parser"
848+
url: /admin-guide/120_Parser/016_mariadb_parser
846849
- title: "metrics-probe()"
847850
url: /admin-guide/120_Parser/017_metrics_probe_parser/README
848851
subnav:
@@ -1188,6 +1191,9 @@ dev-guide-nav:
11881191
url: /dev-guide/chapter_4/section_2/macos-testing-status/afuser
11891192
- title: "elasticsearch-http"
11901193
url: /dev-guide/chapter_4/section_2/macos-testing-status/elasticsearch-http
1194+
- title: "grpc"
1195+
url: /dev-guide/chapter_4/section_2/macos-testing-status/grpc/README
1196+
subnav:
11911197
- title: "http"
11921198
url: /dev-guide/chapter_4/section_2/macos-testing-status/http
11931199
- title: "mod-python"
@@ -1212,6 +1218,9 @@ dev-guide-nav:
12121218
url: /dev-guide/chapter_4/section_2/macos-testing-status/system-source/01_collecting-native-logs
12131219
- title: "Collecting local macOS logs"
12141220
url: /dev-guide/chapter_4/section_2/macos-testing-status/system-source/02_collecting-local-logs
1221+
- title: "FreeBSD"
1222+
url: /dev-guide/chapter_4/section_3/README
1223+
subnav:
12151224
- title: "Contribution"
12161225
url: /dev-guide/chapter_5/README
12171226
subnav:

doc/_dev-guide/chapter_0/section_3.md

Lines changed: 64 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,66 @@ ${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+
The installation location of MacPorts will be referenced as `${MACPORTS_PREFIX}` in this document. If you follow the installation instructions above, it will already be set correctly, regardless of your system.
68+
**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
69+
{: .notice--info}
70+
71+
#### Checking dependencies in MacPorts
72+
73+
For checking [[dependencies|dev-platform-build-macos#dependencies]] of it you can use
74+
75+
```shell
76+
port deps syslog-ng-devel
77+
```
78+
79+
**Note**: there is a `syslog-ng` package as well in MacPorts, the one with `-devel` suffix is usually a more fresh version.
80+
{: .notice--info}
81+
82+
This will list all the required dependencies are needed to run {{ site.product.short_name }}, and MacPorts would install automatically as needed.
83+
84+
#### Installation via MacPorts
85+
86+
Using MacPorts it is simple, use
87+
88+
```shell
89+
port install syslog-ng-devel
90+
```
91+
92+
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.
93+
94+
#### Starting syslog-ng which installed from MacPorts
95+
96+
You can start `syslog-ng` many ways in foreground, e.g. in a terminal window
97+
98+
```shell
99+
${MACPORTS_PREFIX}/sbin/syslog-ng -F
100+
```
101+
102+
this will start it as a foreground process in the terminal and write only minimal information to the console during its run.
103+
104+
To see more details you can specify some debug flags, like
105+
106+
```shell
107+
${MACPORTS_PREFIX}/sbin/syslog-ng -Fdevt
108+
```
109+
110+
this will give you detailed information of what {{ site.product.short_name }} does.
111+
63112
### Running {{ site.product.short_name }} as daemon
64113

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

67121
```shell
68-
${HOMEBREW_PREFIX}/sbin/syslog-ng
122+
YOUR_INSTALLATION_ROOT/sbin/syslog-ng
69123
```
70124

71125
however this is not a persistent state, after a system restart {{ site.product.short_name }} will not start automatically by default.
@@ -93,14 +147,14 @@ You can find several pages about `launchd` and how to add System or User Launch
93147
94148
<key>ProgramArguments</key>
95149
<array>
96-
<string>/opt/homebrew/sbin/syslog-ng</string>
150+
<string>YOUR_INSTALLATION_ROOT/sbin/syslog-ng</string>
97151
<string>-F</string>
98152
</array>
99153
100154
<key>StandardOutPath</key>
101-
<string>/opt/homebrew/var/log/syslog-ng-daemon.stdout.log</string>
155+
<string>YOUR_INSTALLATION_ROOT/var/log/syslog-ng-daemon.stdout.log</string>
102156
<key>StandardErrorPath</key>
103-
<string>/opt/homebrew/var/log/syslog-ng-daemon.stderr.log</string>
157+
<string>YOUR_INSTALLATION_ROOT/var/log/syslog-ng-daemon.stderr.log</string>
104158
</dict>
105159
</plist>
106160
```

0 commit comments

Comments
 (0)