]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - lfs/samba
3cdaca6de98cc5660a1b88a55b1ad9d2c9eb2733
[people/ms/ipfire-3.x.git] / lfs / samba
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008, 2009 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 Config
26
27 PKG_NAME = samba
28 PKG_VER = 3.3.1
29 PKG_REL = 0
30
31 THISAPP = $(PKG_NAME)-$(PKG_VER)
32 DL_FILE = $(THISAPP).tar.gz
33 DIR_APP = $(DIR_SRC)/$(THISAPP)
34
35 OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
36
37 MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
38 GROUP = Networking/Daemons
39 EXTRA = no
40 DEBUG = no
41 DEPS = gawk ncurses libcap2 openldap openssl pam popt readline # cups
42
43 URL = http://www.samba.org/
44 LICENSE = GPLv3+ and LGPLv3+
45 SHORT_DESC = Server and Client software to interoperate with Windows machines.
46
47 define LONG_DESC
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.
57 endef
58
59 CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
60
61 ###############################################################################
62 # Top-level Rules
63 ###############################################################################
64
65 objects = $(DL_FILE)
66
67 download: $(objects)
68
69 info:
70 $(DO_PKG_INFO)
71
72 install: $(OBJECT)
73
74 package:
75 @$(DO_PACKAGE)
76
77 $(objects):
78 @$(LOAD)
79
80 ###############################################################################
81 # Installation Details
82 ###############################################################################
83
84 $(OBJECT): $(objects)
85 @$(PREBUILD)
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 && \
89 ./configure \
90 $(CONFIGURE_ARCH) \
91 --prefix=/usr \
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 \
101 --with-automount \
102 --with-libsmbclient \
103 --with-libsmbsharemodes \
104 --with-pam \
105 --with-pam_smbpass \
106 --with-quotas \
107 --with-sendfile-support \
108 --with-syslog \
109 --with-utmp \
110 --with-winbind \
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
115
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
122 @rm -rf $(DIR_APP)
123 @$(POSTBUILD)