]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/samba/samba.nm
bfcc2bfe7b377af0672b60ebc9bd4973a348969c
[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.11
29 PKG_REL = 1
30
31 PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
32 PKG_GROUPS = 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 avahi-devel cups-devel ncurses-devel \
38 libcap-devel openldap-devel openssl-devel pam-devel popt-devel \
39 readline-devel which
40
41 define PKG_DESCRIPTION
42 Samba is the suite of programs by which a lot of PC-related machines \
43 share files, printers, and other information (such as lists of \
44 available files and printers). The Windows NT, OS/2, and Linux \
45 operating systems support this natively, and add-on packages can \
46 enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, \
47 and more. This package provides an SMB/CIFS server that can be used to \
48 provide network services to SMB/CIFS clients. \
49 Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT \
50 need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
51 endef
52
53 PKG_TARBALL = $(THISAPP).tar.gz
54
55 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
56
57 CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
58
59 define STAGE_BUILD
60 cd $(DIR_APP)/source3 && \
61 ./configure \
62 --prefix=/usr \
63 --localstatedir=/var \
64 --with-lockdir=/var/lib/samba \
65 --with-piddir=/var/run \
66 --with-mandir=/usr/share/man \
67 --with-privatedir=/var/lib/samba/private \
68 --with-logfilebase=/var/log/samba \
69 --with-modulesdir=/usr/lib/samba \
70 --with-configdir=/etc/samba \
71 --with-pammodulesdir=/lib/security \
72 --with-swatdir=/usr/share/swat \
73 --with-automount \
74 --with-libsmbclient \
75 --with-libsmbsharemodes \
76 --with-pam \
77 --with-pam_smbpass \
78 --with-quotas \
79 --with-sendfile-support \
80 --with-syslog \
81 --with-utmp \
82 --with-winbind \
83 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
84
85 cd $(DIR_APP)/source3 && make pch all modules $(PARALLELISMFLAGS)
86 endef
87
88 define STAGE_INSTALL
89 cd $(DIR_APP)/source3 && make install DESTDIR=$(BUILDROOT)
90
91 -mkdir -pv $(BUILDROOT)/etc/samba
92 echo "127.0.0.1 localhost" > $(BUILDROOT)/etc/samba/lmhosts
93 endef