]> git.ipfire.org Git - ipfire-3.x.git/blob - samba/samba.nm
git: Update to 2.23.0
[ipfire-3.x.git] / samba / samba.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = samba
7 version = 4.5.1
8 release = 1
9
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.
14
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
24 need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
25 end
26
27 source_dl = http://www.samba.org/samba/ftp/stable/
28
29 CFLAGS += \
30 -D_FILE_OFFSET_BITS=64 \
31 -D_GNU_SOURCE -DLDAP_DEPRECATED
32
33 build
34 requires
35 autoconf
36 automake
37 avahi-devel
38 cups-devel >= 2.1.4
39 docbook-xsl
40 gettext
41 gnutls-devel
42 ncurses-devel
43 libacl-devel
44 libattr-devel
45 libcap-devel
46 libldb-devel >= 1.1.27
47 libtalloc-devel >= 2.1.8
48 libtdb-devel >=1.3.11
49 libtevent-devel >= 0.9.29
50 openldap-devel
51 openssl-devel
52 pam-devel
53 popt-devel
54 pyldb
55 pytalloc
56 pytdb
57 pytevent
58 readline-devel
59 which
60 zlib-devel
61 end
62
63 configure_options += \
64 --enable-fhs \
65 --prefix=%{prefix} \
66 --localstatedir=%{localstatedir} \
67 --with-lockdir=%{sharedstatedir}/samba \
68 --with-piddir=%{localstatedir}/run/samba \
69 --with-privatedir=%{sharedstatedir}/samba/private \
70 --with-logfilebase=%{localstatedir}/log/samba \
71 --with-modulesdir=%{libdir}/samba \
72 --with-configdir=%{sysconfdir}/samba \
73 --with-pammodulesdir=/%{lib}/security \
74 --with-automount \
75 --with-pam \
76 --with-quotas \
77 --with-sendfile-support \
78 --with-syslog \
79 --with-utmp \
80 --with-winbind \
81 --bundled-libraries="!zlib,!popt,!tdb,!pytdb,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!ldb,!pyldb,!pyldb-util" \
82 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
83
84 install_cmds
85 mkdir -pv %{BUILDROOT}%{sysconfdir}/samba
86 echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts
87 cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name}
88 end
89 end
90
91 quality-agent
92 whitelist_rpath
93 %{libdir}/samba
94 %{libdir}/tdb
95 end
96 end
97
98 packages
99 package %{name}
100 prerequires = systemd-units
101 configfiles = /etc/smb.conf
102 requires += %{name}-libs = %{thisver}
103 end
104
105 package %{name}-libs
106 template LIBS
107 end
108
109 package %{name}-devel
110 template DEVEL
111
112 requires += %{name}-libs = %{thisver}
113 end
114
115 package %{name}-debuginfo
116 template DEBUGINFO
117 end
118 end