]>
Commit | Line | Data |
---|---|---|
b534427f | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
b534427f MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = samba |
a183af94 | 7 | version = 4.17.5 |
5aa616d0 | 8 | release = 1.1 |
b534427f | 9 | |
802ea3af MT |
10 | groups = Networking/Daemons |
11 | url = http://www.samba.org/ | |
12 | license = GPLv3+ and LGPLv3+ | |
13 | summary = Server and Client software to interoperate with Windows machines. | |
b534427f | 14 | |
802ea3af MT |
15 | description |
16 | Samba is the suite of programs by which a lot of PC-related machines | |
17 | share files, printers, and other information (such as lists of | |
18 | available files and printers). The Windows NT, OS/2, and Linux | |
19 | operating systems support this natively, and add-on packages can | |
20 | enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, | |
21 | and more. This package provides an SMB/CIFS server that can be used to | |
22 | provide network services to SMB/CIFS clients. | |
23 | Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT | |
b534427f | 24 | need the NetBEUI (Microsoft Raw NetBIOS frame) protocol. |
802ea3af MT |
25 | end |
26 | ||
27 | source_dl = http://www.samba.org/samba/ftp/stable/ | |
b534427f | 28 | |
802ea3af MT |
29 | CFLAGS += \ |
30 | -D_FILE_OFFSET_BITS=64 \ | |
31 | -D_GNU_SOURCE -DLDAP_DEPRECATED | |
b534427f | 32 | |
802ea3af MT |
33 | build |
34 | requires | |
a183af94 | 35 | /usr/bin/rpcgen |
802ea3af MT |
36 | autoconf |
37 | automake | |
a183af94 | 38 | bison |
802ea3af | 39 | avahi-devel |
d202cbf7 | 40 | cups-devel >= 2.1.4 |
a183af94 | 41 | dbus-devel |
d202cbf7 | 42 | docbook-xsl |
a183af94 | 43 | flex |
c11bcb63 | 44 | gettext |
a183af94 SS |
45 | gnutls-devel >= 3.7.8 |
46 | gpgme-devel | |
47 | jansson-devel | |
802ea3af | 48 | ncurses-devel |
c11bcb63 | 49 | libacl-devel |
a183af94 | 50 | libarchive-devel |
d202cbf7 | 51 | libattr-devel |
802ea3af | 52 | libcap-devel |
a183af94 | 53 | libldb-devel = 2.6.1 |
d202cbf7 AM |
54 | libtalloc-devel >= 2.1.8 |
55 | libtdb-devel >=1.3.11 | |
56 | libtevent-devel >= 0.9.29 | |
5aa616d0 | 57 | libxcrypt-devel |
802ea3af MT |
58 | openldap-devel |
59 | openssl-devel | |
60 | pam-devel | |
5aa616d0 SS |
61 | perl(base) |
62 | perl(FindBin) | |
a183af94 SS |
63 | perl(JSON) |
64 | perl(Parse::Yapp::Driver) >= 1.21 | |
802ea3af | 65 | popt-devel |
a183af94 SS |
66 | python3-devel |
67 | python3-dns | |
68 | python3-markdown | |
69 | python3-ldb | |
70 | python3-talloc | |
71 | python3-tdb | |
72 | python3-tevent | |
802ea3af MT |
73 | readline-devel |
74 | which | |
c11bcb63 | 75 | zlib-devel |
802ea3af | 76 | end |
d604bfdf | 77 | |
802ea3af | 78 | configure_options += \ |
d202cbf7 | 79 | --enable-fhs \ |
a5d9074a | 80 | --prefix=%{prefix} \ |
d202cbf7 | 81 | --localstatedir=%{localstatedir} \ |
a5d9074a | 82 | --with-lockdir=%{sharedstatedir}/samba \ |
d202cbf7 | 83 | --with-piddir=%{localstatedir}/run/samba \ |
a5d9074a | 84 | --with-privatedir=%{sharedstatedir}/samba/private \ |
d202cbf7 | 85 | --with-logfilebase=%{localstatedir}/log/samba \ |
a5d9074a MT |
86 | --with-modulesdir=%{libdir}/samba \ |
87 | --with-configdir=%{sysconfdir}/samba \ | |
a183af94 | 88 | --with-pammodulesdir=%{libdir}/security \ |
802ea3af | 89 | --with-automount \ |
802ea3af | 90 | --with-pam \ |
802ea3af MT |
91 | --with-quotas \ |
92 | --with-sendfile-support \ | |
93 | --with-syslog \ | |
94 | --with-utmp \ | |
95 | --with-winbind \ | |
d202cbf7 | 96 | --bundled-libraries="!zlib,!popt,!tdb,!pytdb,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!ldb,!pyldb,!pyldb-util" \ |
802ea3af | 97 | --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash |
b534427f | 98 | |
802ea3af | 99 | install_cmds |
a5d9074a MT |
100 | mkdir -pv %{BUILDROOT}%{sysconfdir}/samba |
101 | echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts | |
093d622f | 102 | cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name} |
802ea3af MT |
103 | end |
104 | end | |
b534427f | 105 | |
d202cbf7 AM |
106 | quality-agent |
107 | whitelist_rpath | |
108 | %{libdir}/samba | |
109 | %{libdir}/tdb | |
110 | end | |
111 | end | |
112 | ||
802ea3af MT |
113 | packages |
114 | package %{name} | |
093d622f CS |
115 | prerequires = systemd-units |
116 | configfiles = /etc/smb.conf | |
117 | requires += %{name}-libs = %{thisver} | |
118 | end | |
c1fa1b26 | 119 | |
802ea3af MT |
120 | package %{name}-libs |
121 | template LIBS | |
122 | end | |
c1fa1b26 | 123 | |
802ea3af MT |
124 | package %{name}-devel |
125 | template DEVEL | |
c11bcb63 | 126 | |
a5d9074a | 127 | requires += %{name}-libs = %{thisver} |
802ea3af | 128 | end |
1f9bc2f0 MT |
129 | |
130 | package %{name}-debuginfo | |
131 | template DEBUGINFO | |
132 | end | |
802ea3af | 133 | end |