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