1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
31 THISAPP = $(PKG_NAME)-$(PKG_VER)
32 DL_FILE = $(THISAPP).tar.gz
33 DIR_APP = $(DIR_SRC)/$(THISAPP)
35 OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
37 MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
38 GROUP = Networking/Daemons
41 DEPS = gawk ncurses libcap2 openldap openssl pam popt readline # cups
43 URL = http://www.samba.org/
44 LICENSE = GPLv3+ and LGPLv3+
45 SHORT_DESC = Server and Client software to interoperate with Windows machines.
48 Samba is the suite of programs by which a lot of PC-related machines \
49 share files, printers, and other information (such as lists of \
50 available files and printers). The Windows NT, OS/2, and Linux \
51 operating systems support this natively, and add-on packages can \
52 enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, \
53 and more. This package provides an SMB/CIFS server that can be used to \
54 provide network services to SMB/CIFS clients. \
55 Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT \
56 need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
59 CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
61 ###############################################################################
63 ###############################################################################
80 ###############################################################################
81 # Installation Details
82 ###############################################################################
86 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
87 cd $(DIR_APP)/source && sh autogen.sh
88 cd $(DIR_APP)/source && \
92 --with-lockdir=/var/lib/samba \
93 --with-piddir=/var/run \
94 --with-mandir=/usr/share/man \
95 --with-privatedir=/var/lib/samba/private \
96 --with-logfilebase=/var/log/samba \
97 --with-modulesdir=/usr/lib/samba \
98 --with-configdir=/etc/samba \
99 --with-pammodulesdir=/lib/security \
100 --with-swatdir=/usr/share/swat \
102 --with-libsmbclient \
103 --with-libsmbsharemodes \
107 --with-sendfile-support \
111 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
112 cd $(DIR_APP)/source && make pch all \
113 nsswitch/libnss_wins.so modules
114 cd $(DIR_APP)/source && make install
116 cd $(DIR_APP) && install -m 755 source/nsswitch/libnss_winbind.so /lib/libnss_winbind.so.2
117 ln -sf ../../lib/libnss_winbind.so.2 /usr/lib/libnss_winbind.so
118 cd $(DIR_APP) && install -m 755 source/nsswitch/libnss_wins.so /lib/libnss_wins.so.2
119 ln -sf ../../lib/libnss_wins.so.2 /usr/lib/libnss_wins.so
120 -mkdir -pv /etc/samba
121 echo "127.0.0.1 localhost" > /etc/samba/lmhosts