]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - samba/samba.nm
samba: Update to 4.5.0
[people/amarx/ipfire-3.x.git] / samba / samba.nm
CommitLineData
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 6name = samba
7abab4ac 7version = 4.5.0
f7dd4335 8release = 1
b534427f 9
802ea3af
MT
10groups = Networking/Daemons
11url = http://www.samba.org/
12license = GPLv3+ and LGPLv3+
13summary = Server and Client software to interoperate with Windows machines.
b534427f 14
802ea3af
MT
15description
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
25end
26
27source_dl = http://www.samba.org/samba/ftp/stable/
b534427f 28
802ea3af
MT
29CFLAGS += \
30 -D_FILE_OFFSET_BITS=64 \
31 -D_GNU_SOURCE -DLDAP_DEPRECATED
b534427f 32
802ea3af
MT
33build
34 requires
35 autoconf
36 automake
37 avahi-devel
e8de2f1d 38 #cups-devel
c11bcb63 39 gettext
e8de2f1d 40 gnutls-devel
802ea3af 41 ncurses-devel
c11bcb63 42 libacl-devel
802ea3af
MT
43 libcap-devel
44 openldap-devel
45 openssl-devel
46 pam-devel
47 popt-devel
48 readline-devel
49 which
c11bcb63 50 zlib-devel
802ea3af 51 end
d604bfdf 52
e8de2f1d 53 DIR_APP = %{DIR_SRC}/%{thisapp}/
b534427f 54
802ea3af 55 configure_options += \
e8de2f1d 56 --enable-fhs \
a5d9074a 57 --prefix=%{prefix} \
802ea3af 58 --localstatedir=/var \
a5d9074a 59 --with-lockdir=%{sharedstatedir}/samba \
e8de2f1d 60 --with-piddir=/var/run/samba \
a5d9074a 61 --with-privatedir=%{sharedstatedir}/samba/private \
802ea3af 62 --with-logfilebase=/var/log/samba \
a5d9074a
MT
63 --with-modulesdir=%{libdir}/samba \
64 --with-configdir=%{sysconfdir}/samba \
65 --with-pammodulesdir=/%{lib}/security \
802ea3af 66 --with-automount \
802ea3af 67 --with-pam \
802ea3af
MT
68 --with-quotas \
69 --with-sendfile-support \
70 --with-syslog \
71 --with-utmp \
72 --with-winbind \
73 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
b534427f 74
802ea3af 75 install_cmds
a5d9074a
MT
76 mkdir -pv %{BUILDROOT}%{sysconfdir}/samba
77 echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts
093d622f 78 cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name}
802ea3af
MT
79 end
80end
b534427f 81
e8de2f1d
AM
82quality-agent
83 whitelist_rpath
84 %{libdir}/samba
85 end
86end
87
88
802ea3af
MT
89packages
90 package %{name}
093d622f
CS
91 prerequires = systemd-units
92 configfiles = /etc/smb.conf
93 requires += %{name}-libs = %{thisver}
94 end
c1fa1b26 95
802ea3af
MT
96 package %{name}-libs
97 template LIBS
98 end
c1fa1b26 99
802ea3af
MT
100 package %{name}-devel
101 template DEVEL
c11bcb63 102
a5d9074a 103 requires += %{name}-libs = %{thisver}
802ea3af 104 end
1f9bc2f0
MT
105
106 package %{name}-debuginfo
107 template DEBUGINFO
108 end
802ea3af 109end