]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - samba/samba.nm
kernel: Update to 3.15.6.
[people/ms/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 = 3.6.16
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
39 gettext
40 ncurses-devel
41 libacl-devel
42 libcap-devel
43 openldap-devel
44 openssl-devel
45 pam-devel
46 popt-devel
47 readline-devel
48 which
49 zlib-devel
50 end
51
52 DIR_APP = %{DIR_SRC}/%{thisapp}/source3
53
54 configure_options += \
55 --prefix=%{prefix} \
56 --localstatedir=/var \
57 --with-lockdir=%{sharedstatedir}/samba \
58 --with-piddir=%{rundir} \
59 --with-mandir=%{mandir} \
60 --with-privatedir=%{sharedstatedir}/samba/private \
61 --with-logfilebase=/var/log/samba \
62 --with-modulesdir=%{libdir}/samba \
63 --with-configdir=%{sysconfdir}/samba \
64 --with-pammodulesdir=/%{lib}/security \
65 --with-swatdir=%{datadir}/swat \
66 --with-automount \
67 --with-libsmbclient \
68 --with-libsmbsharemodes \
69 --with-pam \
70 --with-pam_smbpass \
71 --with-quotas \
72 --with-sendfile-support \
73 --with-syslog \
74 --with-utmp \
75 --with-winbind \
76 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
77
78 make_build_targets += \
79 pch \
80 all modules
81
82 install_cmds
83 mkdir -pv %{BUILDROOT}%{sysconfdir}/samba
84 echo "127.0.0.1 localhost" > %{BUILDROOT}%{sysconfdir}/samba/lmhosts
85 cp -vf %{DIR_SOURCE}/smb.conf %{BUILDROOT}/%{sysconfdir}/%{name}
86 end
87 end
88
89 packages
90 package %{name}
91 prerequires = systemd-units
92 configfiles = /etc/smb.conf
93 requires += %{name}-libs = %{thisver}
94 end
95
96 package %{name}-libs
97 template LIBS
98 end
99
100 package %{name}-devel
101 template DEVEL
102
103 requires += %{name}-libs = %{thisver}
104 end
105
106 package %{name}-debuginfo
107 template DEBUGINFO
108 end
109 end