]>
Commit | Line | Data |
---|---|---|
b534427f MT |
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.3.5 | |
29 | PKG_REL = 0 | |
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 which | |
38 | PKG_DEPS += cups gawk ncurses libcap2 openldap openssl pam popt readline | |
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 | CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED | |
55 | ||
56 | define STAGE_PREPARE_CMDS | |
57 | cd $(DIR_APP)/source && sh autogen.sh | |
58 | endef | |
59 | ||
60 | define STAGE_BUILD | |
61 | cd $(DIR_APP)/source && \ | |
62 | ./configure \ | |
63 | --prefix=/usr \ | |
64 | --localstatedir=/var \ | |
65 | --with-lockdir=/var/lib/samba \ | |
66 | --with-piddir=/var/run \ | |
67 | --with-mandir=/usr/share/man \ | |
68 | --with-privatedir=/var/lib/samba/private \ | |
69 | --with-logfilebase=/var/log/samba \ | |
70 | --with-modulesdir=/usr/lib/samba \ | |
71 | --with-configdir=/etc/samba \ | |
72 | --with-pammodulesdir=/lib/security \ | |
73 | --with-swatdir=/usr/share/swat \ | |
74 | --with-automount \ | |
75 | --with-libsmbclient \ | |
76 | --with-libsmbsharemodes \ | |
77 | --with-pam \ | |
78 | --with-pam_smbpass \ | |
79 | --with-quotas \ | |
80 | --with-sendfile-support \ | |
81 | --with-syslog \ | |
82 | --with-utmp \ | |
83 | --with-winbind \ | |
84 | --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash | |
85 | ||
86 | cd $(DIR_APP)/source && make pch all modules $(PARALLELISMFLAGS) | |
87 | endef | |
88 | ||
89 | define STAGE_INSTALL | |
90 | cd $(DIR_APP)/source && make install DESTDIR=$(BUILDROOT) | |
91 | ||
92 | -mkdir -pv $(BUILDROOT)/etc/samba | |
93 | echo "127.0.0.1 localhost" > $(BUILDROOT)/etc/samba/lmhosts | |
94 | endef |