CentOS8でソースコードからsamba v4.13.0を導入する方法
1. まずはepelレポジトリを導入
$ sudo dnf -y install epel-release
2. 必要なライブラリを導入
$ sudo dnf install python36 python36-devel zlib-devel lmdb-devel gnutls-devel perl-Parse-Yapp jansson-devel libacl-devel openldap-devel pam-devel dbus-devel
$ sudo dnf install --enablerepo=PowerTools gpgme-devel libarchive-devel rpcgen
3. ビルド
$ sudo ./configure --prefix=/usr/local/samba-4.13.0/
$ sudo make -j2
$ sudo make -j2 install
4. systemdの設定
$ sudo cp -a bin/default/packaging/systemd/smb.service /lib/systemd/system/
$ sudo cp -a bin/default/packaging/systemd/nmb.service /lib/systemd/system/
$ sudo systemctl daemon-reload
5. sambaの起動および自動起動の有効化
$ sudo systemctl start smb
$ sudo systemctl start nmb
$ sudo systemctl enable smb
$ sudo systemctl enable nmb