From a86389745c163d20ec5baa05ff0da4a6e823e3c9 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 14 Mar 2026 11:54:49 +0200 Subject: [PATCH] Fix ESVM services --- pkg.info | 2 +- source-files/nmbd.esv | 5 +++++ source-files/samba.esv | 5 ++--- source-files/smbd.esv | 5 +++++ source-files/winbindd.esv | 5 +++++ source.sh | 4 ++-- 6 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 source-files/nmbd.esv create mode 100644 source-files/smbd.esv create mode 100644 source-files/winbindd.esv diff --git a/pkg.info b/pkg.info index 8a493da..649ab16 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: samba description: SMB Fileserver and AD Domain server version: 4.23.6 -revision: 1 +revision: 2 url: https://archlinux.org/packages/extra/x86_64/samba/ license: GPL3-or-later maintainers: diff --git a/source-files/nmbd.esv b/source-files/nmbd.esv new file mode 100644 index 0000000..cf5a647 --- /dev/null +++ b/source-files/nmbd.esv @@ -0,0 +1,5 @@ +name: nmbd +description: Samba NMB Daemon +type: background +start_cmd: /bin/sh -c "install -d /run/samba && exec /usr/sbin/nmbd -F -d=1 --no-process-group" +restart: true diff --git a/source-files/samba.esv b/source-files/samba.esv index 125f501..3b78f84 100644 --- a/source-files/samba.esv +++ b/source-files/samba.esv @@ -1,6 +1,5 @@ name: samba -description: Samba SMB Daemon +description: Samba AD Daemon type: background -start_cmd: /bin/sh -c "install -d /run/samba && exec /usr/sbin/nmbd -F -d=1 --no-process-group" -exit_method: kill +start_cmd: /bin/sh -c "install -d /run/samba && exec /usr/sbin/samba -F -d=1 --no-process-group" restart: true diff --git a/source-files/smbd.esv b/source-files/smbd.esv new file mode 100644 index 0000000..6cad091 --- /dev/null +++ b/source-files/smbd.esv @@ -0,0 +1,5 @@ +name: smbd +description: Samba SMB Daemon +type: background +start_cmd: /bin/sh -c "install -d /run/samba && exec /usr/sbin/smbd -F -d=1 --no-process-group" +restart: true diff --git a/source-files/winbindd.esv b/source-files/winbindd.esv new file mode 100644 index 0000000..53292ab --- /dev/null +++ b/source-files/winbindd.esv @@ -0,0 +1,5 @@ +name: winbindd +description: Samba Winbind Daemon +type: background +start_cmd: /bin/sh -c "install -d /run/samba && exec /usr/sbin/winbindd -F -d=1 --no-process-group" +restart: true diff --git a/source.sh b/source.sh index 37f2d49..ff6376c 100644 --- a/source.sh +++ b/source.sh @@ -78,8 +78,8 @@ package_samba() { _pick smbclient usr/share/man/man7/libsmbclient.7 _pick smbclient usr/share/man/man8/{smbspool,net}.8 - # Install esvm service - install -Dm644 "$BPM_WORKDIR"/samba.esv "$BPM_OUTPUT"/etc/esvm/services/samba.esv + # Install esvm services + install -Dm644 "$BPM_WORKDIR"/*.esv -t "$BPM_OUTPUT"/etc/esvm/services # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/samba/COPYING