]>
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 |
d202cbf7 | 7 | version = 4.5.1 |
f7dd4335 | 8 | release = 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 | |
35 | autoconf | |
36 | automake | |
37 | avahi-devel | |
d202cbf7 AM |
38 | cups-devel >= 2.1.4 |
39 | docbook-xsl | |
c11bcb63 | 40 | gettext |
d202cbf7 | 41 | gnutls-devel |
802ea3af | 42 | ncurses-devel |
c11bcb63 | 43 | libacl-devel |
d202cbf7 | 44 | libattr-devel |
802ea3af | 45 | libcap-devel |
d202cbf7 AM |
46 | libldb-devel >= 1.1.27 |
47 | libtalloc-devel >= 2.1.8 | |
48 | libtdb-devel >=1.3.11 | |
49 | libtevent-devel >= 0.9.29 | |
802ea3af MT |
50 | openldap-devel |
51 | openssl-devel | |
52 | pam-devel | |
53 | popt-devel | |
d202cbf7 AM |
54 | pyldb |
55 | pytalloc | |
56 | pytdb | |
57 | pytevent | |
802ea3af MT |
58 | readline-devel |
59 | which | |
c11bcb63 | 60 | zlib-devel |
802ea3af | 61 | end |
d604bfdf | 62 | |
802ea3af | 63 | configure_options += \ |
d202cbf7 | 64 | --enable-fhs \ |
a5d9074a | 65 | --prefix=%{prefix} \ |
d202cbf7 | 66 | --localstatedir=%{localstatedir} \ |
a5d9074a | 67 | --with-lockdir=%{sharedstatedir}/samba \ |
d202cbf7 | 68 | --with-piddir=%{localstatedir}/run/samba \ |
a5d9074a | 69 | --with-privatedir=%{sharedstatedir}/samba/private \ |
d202cbf7 | 70 | --with-logfilebase=%{localstatedir}/log/samba \ |
a5d9074a MT |
71 | --with-modulesdir=%{libdir}/samba \ |
72 | --with-configdir=%{sysconfdir}/samba \ | |
73 | --with-pammodulesdir=/%{lib}/security \ | |
802ea3af | 74 | --with-automount \ |
802ea3af | 75 | --with-pam \ |
802ea3af MT |
76 | --with-quotas \ |
77 | --with-sendfile-support \ | |
78 | --with-syslog \ | |
79 | --with-utmp \ | |
80 | --with-winbind \ | |
d202cbf7 | 81 | --bundled-libraries="!zlib,!popt,!tdb,!pytdb,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!ldb,!pyldb,!pyldb-util" \ |
802ea3af | 82 | --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash |
b534427f | 83 | |
802ea3af | 84 | install_cmds |
a5d9074a MT |
85 | mkdir -pv %{BUILDROOT}%{sysconfdir}/samba |
86 | echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts | |
093d622f | 87 | cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name} |
802ea3af MT |
88 | end |
89 | end | |
b534427f | 90 | |
d202cbf7 AM |
91 | quality-agent |
92 | whitelist_rpath | |
93 | %{libdir}/samba | |
94 | %{libdir}/tdb | |
95 | end | |
96 | end | |
97 | ||
802ea3af MT |
98 | packages |
99 | package %{name} | |
093d622f CS |
100 | prerequires = systemd-units |
101 | configfiles = /etc/smb.conf | |
102 | requires += %{name}-libs = %{thisver} | |
103 | end | |
c1fa1b26 | 104 | |
802ea3af MT |
105 | package %{name}-libs |
106 | template LIBS | |
107 | end | |
c1fa1b26 | 108 | |
802ea3af MT |
109 | package %{name}-devel |
110 | template DEVEL | |
c11bcb63 | 111 | |
a5d9074a | 112 | requires += %{name}-libs = %{thisver} |
802ea3af | 113 | end |
1f9bc2f0 MT |
114 | |
115 | package %{name}-debuginfo | |
116 | template DEBUGINFO | |
117 | end | |
802ea3af | 118 | end |