Skip to content

Commit

Permalink
samba: Add discovery definitions for systemd resolved
Browse files Browse the repository at this point in the history
**Summary**

Add mDNS discovery definitions for use with systemd resolved as mDNS resolver.
  • Loading branch information
silkeh committed Sep 8, 2024
1 parent de57d0b commit 155e6f5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
4 changes: 4 additions & 0 deletions packages/s/samba/files/smb-device-info.dnssd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Service]
Name=%H
Type=_device-info._tcp
TxtText=model=RackMac
4 changes: 4 additions & 0 deletions packages/s/samba/files/smb.dnssd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Service]
Name=%H
Type=_smb._tcp
Port=445
4 changes: 3 additions & 1 deletion packages/s/samba/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name : samba
version : 4.19.6
release : 106
release : 107
source :
- https://download.samba.org/pub/samba/stable/samba-4.19.6.tar.gz : 653b52095554dbc223c63b96af5cdf9e98c3e048549c5f56143d3b33dce1cef1
homepage : https://samba.org
Expand Down Expand Up @@ -93,6 +93,8 @@ install : |
install -D -m00644 $pkgfiles/avahi.smb.service $installdir/usr/share/defaults/samba/avahi.smb.service
install -d -m00755 $installdir/etc/avahi/services
ln -sv /usr/share/defaults/samba/avahi.smb.service $installdir/etc/avahi/services/smb.service
# systemd resolved autodiscovery configuration
install -Dm0644 -t $installdir/usr/lib/systemd/dnssd $pkgfiles/*.dnssd
# cups
install -d -m00755 $installdir/%libdir%/cups/backend
ln -sv /usr/bin/smbspool $installdir/%libdir%/cups/backend/smb
Expand Down
16 changes: 9 additions & 7 deletions packages/s/samba/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Name>samba</Name>
<Homepage>https://samba.org</Homepage>
<Packager>
<Name>Joey Riches</Name>
<Email>[email protected]</Email>
<Name>Silke Hofstra</Name>
<Email>[email protected]</Email>
</Packager>
<License>GPL-3.0-or-later</License>
<PartOf>desktop.core</PartOf>
Expand Down Expand Up @@ -62,6 +62,8 @@ For more information, see the Solus Help Center [Samba file sharing guide](https
<Path fileType="executable">/usr/bin/smbtree</Path>
<Path fileType="executable">/usr/bin/testparm</Path>
<Path fileType="executable">/usr/bin/wbinfo</Path>
<Path fileType="library">/usr/lib/systemd/dnssd/smb-device-info.dnssd</Path>
<Path fileType="library">/usr/lib/systemd/dnssd/smb.dnssd</Path>
<Path fileType="library">/usr/lib/systemd/system/nmb.service</Path>
<Path fileType="library">/usr/lib/systemd/system/smb.service</Path>
<Path fileType="library">/usr/lib/systemd/system/winbind.service</Path>
Expand Down Expand Up @@ -395,7 +397,7 @@ For more information, see the Solus Help Center [Samba file sharing guide](https
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="106">samba</Dependency>
<Dependency release="107">samba</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/samba-4.0/charset.h</Path>
Expand Down Expand Up @@ -515,12 +517,12 @@ For more information, see the Solus Help Center [Samba file sharing guide](https
</Files>
</Package>
<History>
<Update release="106">
<Date>2024-07-06</Date>
<Update release="107">
<Date>2024-09-08</Date>
<Version>4.19.6</Version>
<Comment>Packaging update</Comment>
<Name>Joey Riches</Name>
<Email>[email protected]</Email>
<Name>Silke Hofstra</Name>
<Email>[email protected]</Email>
</Update>
</History>
</PISI>

0 comments on commit 155e6f5

Please sign in to comment.