Skip to content

Commit 573e3eb

Browse files
committed
Add support for samba
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 8755b54 commit 573e3eb

File tree

5 files changed

+17843
-0
lines changed

5 files changed

+17843
-0
lines changed

src/fetchcode/package.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,13 @@ class DropbearDirectoryListedSource(DirectoryListedSource):
956956
]
957957

958958

959+
class SambaDirectoryListedSource(DirectoryListedSource):
960+
source_url = "https://download.samba.org/pub/samba/stable/"
961+
source_archive_regex = r"^(samba-)([\w.-]*)(.tar.gz)$"
962+
is_nested = False
963+
ignored_files_and_dir = []
964+
965+
959966
DIR_SUPPORTED_PURLS = [
960967
"pkg:generic/busybox.*",
961968
"pkg:generic/bzip2.*",
@@ -969,6 +976,7 @@ class DropbearDirectoryListedSource(DirectoryListedSource):
969976
"pkg:generic/lighttpd.*",
970977
"pkg:generic/nftables.*",
971978
"pkg:generic/openssh.*",
979+
"pkg:generic/samba.*",
972980
"pkg:generic/syslinux.*",
973981
"pkg:generic/toybox.*",
974982
"pkg:generic/uclibc",
@@ -992,6 +1000,7 @@ class DropbearDirectoryListedSource(DirectoryListedSource):
9921000
"lighttpd": LighttpdDirectoryListedSource,
9931001
"nftables": NftablesDirectoryListedSource,
9941002
"openssh": OpenSSHDirectoryListedSource,
1003+
"samba": SambaDirectoryListedSource,
9951004
"syslinux": SyslinuxDirectoryListedSource,
9961005
"toybox": ToyboxDirectoryListedSource,
9971006
"uclibc": UclibcDirectoryListedSource,

0 commit comments

Comments
 (0)