]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/samba/samba.nm
samba: update to 3.5.8.
[people/ms/ipfire-3.x.git] / pkgs / samba / samba.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = samba
28 PKG_VER = 3.5.8
29 PKG_REL = 1
30
31 PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
32 PKG_GROUP = Networking/Daemons
33 PKG_URL = http://www.samba.org/
34 PKG_LICENSE = GPLv3+ and LGPLv3+
35 PKG_SUMMARY = Server and Client software to interoperate with Windows machines.
36
37 PKG_BUILD_DEPS+= autoconf automake cups-devel ncurses-devel libcap-devel \
38 openldap-devel openssl-devel pam-devel popt-devel readline-devel which
39
40 define PKG_DESCRIPTION
41 Samba is the suite of programs by which a lot of PC-related machines \
42 share files, printers, and other information (such as lists of \
43 available files and printers). The Windows NT, OS/2, and Linux \
44 operating systems support this natively, and add-on packages can \
45 enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, \
46 and more. This package provides an SMB/CIFS server that can be used to \
47 provide network services to SMB/CIFS clients. \
48 Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT \
49 need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
50 endef
51
52 PKG_TARBALL = $(THISAPP).tar.gz
53
54 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
55
56 CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
57
58 define STAGE_BUILD
59 cd $(DIR_APP)/source3 && \
60 ./configure \
61 --prefix=/usr \
62 --localstatedir=/var \
63 --with-lockdir=/var/lib/samba \
64 --with-piddir=/var/run \
65 --with-mandir=/usr/share/man \
66 --with-privatedir=/var/lib/samba/private \
67 --with-logfilebase=/var/log/samba \
68 --with-modulesdir=/usr/lib/samba \
69 --with-configdir=/etc/samba \
70 --with-pammodulesdir=/lib/security \
71 --with-swatdir=/usr/share/swat \
72 --with-automount \
73 --with-libsmbclient \
74 --with-libsmbsharemodes \
75 --with-pam \
76 --with-pam_smbpass \
77 --with-quotas \
78 --with-sendfile-support \
79 --with-syslog \
80 --with-utmp \
81 --with-winbind \
82 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
83
84 cd $(DIR_APP)/source3 && make pch all modules $(PARALLELISMFLAGS)
85 endef
86
87 define STAGE_INSTALL
88 cd $(DIR_APP)/source3 && make install DESTDIR=$(BUILDROOT)
89
90 -mkdir -pv $(BUILDROOT)/etc/samba
91 echo "127.0.0.1 localhost" > $(BUILDROOT)/etc/samba/lmhosts
92 endef