Skip to content

Commit 1c92888

Browse files
Merge pull request #5471 from cfengine/CFE-4344/3.21
CFE-4344: Added instructions on building for NetBSD and OpenBSD (3.21)
2 parents f3485ba + 797208c commit 1c92888

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

INSTALL

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,43 +115,50 @@ submit PRs with updates to this information.
115115
* RedHat/CentOS (rhel-9 2023-10-09)
116116

117117
On CentOS:
118-
$ sudo yum install epel-release && sudo yum update
118+
sudo yum install epel-release && sudo yum update
119+
119120
Or on RHEL, replacing the version number with yours:
120-
$ sudo subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms && sudo yum update
121+
sudo subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms && sudo yum update
121122

122-
$ sudo yum install -y gcc gdb make git libtool autoconf automake byacc flex openssl-devel pcre-devel lmdb-devel pam-devel flex-devel libyaml-devel fakeroot libxml2-devel
123+
sudo yum install -y gcc gdb make git libtool autoconf automake byacc flex openssl-devel pcre-devel lmdb-devel pam-devel flex-devel libyaml-devel fakeroot libxml2-devel
123124

124125
For SELinux support you will need selinux-policy-devel package and specify `--with-selinux-policy` to `autogen.sh` or `configure`
125126

126127
* Debian (Debian 12 2023-10-09)
127128

128-
$ sudo apt-get install -y build-essential git libtool autoconf automake bison flex libssl-dev libpcre3-dev libbison-dev libacl1 libacl1-dev lmdb-utils liblmdb-dev libpam0g-dev libtool libyaml-dev libxml2-dev
129+
sudo apt-get install -y build-essential git libtool autoconf automake bison flex libssl-dev libpcre-dev libbison-dev libacl1 libacl1-dev lmdb-utils liblmdb-dev libpam0g-dev libtool libyaml-dev libxml2-dev
129130

130-
* OpenBSD (7.4 2024-02-15)
131+
* NetBSD (9.3 2024-03-01)
131132

132-
doas pkg_add git automake-1.16.5 autoconf-2.71 bison pcre2 m4 libtool lmdb gmake
133+
doas pkgin install automake autoconf bison pcre m4 libtool lmdb gmake
134+
LDFLAGS=-L/usr/pkg/lib CPPFLAGS=-I/usr/pkg/include ./autogen.sh --enable-debug --without-systemd-service --without-systemd-socket
135+
gmake -j8
136+
doas /usr/pkg/bin/gmake install
137+
138+
* OpenBSD (7.4 2024-02-15)
133139

134-
$ MAKE=/usr/local/bin/gmake LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include AUTOMAKE_VERSION=1.16 AUTOCONF_VERSION=2.71 ./autogen.sh --enable-debug
135-
$ gmake -j8
136-
$ doas gmake install
140+
pkg_add git automake-1.16.5 autoconf-2.71 bison pcre m4 libtool lmdb gmake
141+
MAKE=/usr/local/bin/gmake LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include AUTOMAKE_VERSION=1.16 AUTOCONF_VERSION=2.71 ./autogen.sh --enable-debug
142+
gmake -j8
143+
doas gmake install
137144

138145
* FreeBSD (12.1 2020-04-07)
139146

140147
See docs/BSD.md
141148

142149
* SUSE (Tumbleweed 2020-02-02)
143150

144-
$ sudo zypper install gdb gcc make lmdb autoconf automake libtool git python3 pcre-devel libopenssl-devel pam-devel
151+
sudo zypper install gdb gcc make lmdb autoconf automake libtool git python3 pcre-devel libopenssl-devel pam-devel
145152

146153
* AlpineOS (3.11.3 x86_64 2020-04-13)
147154

148-
$ sudo apk add alpine-sdk lmdb-dev openssl-dev bison flex-dev acl-dev pcre-dev autoconf automake libtool git python3 gdb
149-
$ ./autogen.sh --without-pam
155+
sudo apk add alpine-sdk lmdb-dev openssl-dev bison flex-dev acl-dev pcre-dev autoconf automake libtool git python3 gdb
156+
./autogen.sh --without-pam
150157

151158
* Termux (2020-04-24)
152159

153-
$ pkg install build-essential git autoconf automake bison flex liblmdb openssl pcre libacl libyaml
154-
$ ./autogen.sh --without-pam
160+
pkg install build-essential git autoconf automake bison flex liblmdb openssl pcre libacl libyaml
161+
./autogen.sh --without-pam
155162

156163
* OSX (2021-10-20)
157164

0 commit comments

Comments
 (0)