]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/samba
Added curl to core30.
[people/pmueller/ipfire-2.x.git] / lfs / samba
CommitLineData
f57976de
CS
1###############################################################################\r
2# #\r
3# IPFire.org - A linux based firewall #\r
4# Copyright (C) 2009 Michael Tremer & Christian Schmidt #\r
5# #\r
6# This program is free software: you can redistribute it and/or modify #\r
7# it under the terms of the GNU General Public License as published by #\r
8# the Free Software Foundation, either version 3 of the License, or #\r
9# (at your option) any later version. #\r
10# #\r
11# This program is distributed in the hope that it will be useful, #\r
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #\r
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #\r
14# GNU General Public License for more details. #\r
15# #\r
16# You should have received a copy of the GNU General Public License #\r
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #\r
18# #\r
19###############################################################################\r
20\r
21###############################################################################\r
22# Definitions\r
23###############################################################################\r
24\r
25include Config\r
26\r
27VER = 3.3.7\r
28\r
29THISAPP = samba-$(VER)\r
30DL_FILE = $(THISAPP).tar.gz\r
31DL_FROM = $(URL_IPFIRE)\r
32DIR_APP = $(DIR_SRC)/$(THISAPP)\r
33TARGET = $(DIR_INFO)/$(THISAPP)\r
34PROG = samba\r
35PAK_VER = 18\r
36\r
37DEPS = "cups cyrus-sasl"\r
38\r
39###############################################################################\r
40# Top-level Rules\r
41###############################################################################\r
42\r
43objects = $(DL_FILE)\r
44\r
45$(DL_FILE) = $(DL_FROM)/$(DL_FILE)\r
46\r
47$(DL_FILE)_MD5 = bc7228cc686986353df67ff42b1b2b1e\r
48\r
49install : $(TARGET)\r
50\r
51check : $(patsubst %,$(DIR_CHK)/%,$(objects))\r
52\r
53download :$(patsubst %,$(DIR_DL)/%,$(objects))\r
54\r
55md5 : $(subst %,%_MD5,$(objects))\r
56\r
57dist: \r
58 @$(PAK)\r
59\r
60###############################################################################\r
61# Downloading, checking, md5sum\r
62###############################################################################\r
63\r
64$(patsubst %,$(DIR_CHK)/%,$(objects)) :\r
65 @$(CHECK)\r
66\r
67$(patsubst %,$(DIR_DL)/%,$(objects)) :\r
68 @$(LOAD)\r
69\r
70$(subst %,%_MD5,$(objects)) :\r
71 @$(MD5)\r
72\r
73###############################################################################\r
74# Installation Details\r
75###############################################################################\r
76\r
77$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))\r
78 @$(PREBUILD)\r
79 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)\r
80 cd $(DIR_APP)/source && ./configure \\r
81 --prefix=/usr \\r
82 --libdir=/usr/lib/ \\r
83 --sysconfdir=/var/ipfire \\r
84 --localstatedir=/var \\r
85 --with-piddir=/var/run \\r
86 --with-fhs \\r
87 --with-winbind \\r
88 --disable-swat \\r
89 --enable-cups \\r
90 --with-cifsmount \\r
91 --with-syslog\r
92 cd $(DIR_APP)/source && make proto && make all $(MAKETUNING) $(EXTRA_MAKE)\r
93 cd $(DIR_APP)/source && make install\r
94# cp -vfp /usr/lib/samba/{libsmbclient.so.0,libtalloc.so.1,libtdb.so.1,libwbclient.so.0} /usr/lib\r
95# cd /usr/lib/ && ln -v -sf libsmbclient.so.0 libsmbclient.so\r
96# cd /usr/lib/ && ln -v -sf libtalloc.so.1 libtalloc.so\r
97# cd /usr/lib/ && ln -v -sf libtdb.so.1 libtdb.so\r
98# cd /usr/lib/ && ln -v -sf libwbclient.so.0 libwbclient.so\r
99 cd $(DIR_APP)/source && chmod -v 644 /usr/include/libsmbclient.h\r
100 cd $(DIR_APP)/source && chmod -v 644 /usr/include/libsmbclient.h\r
101 cd $(DIR_APP)/source && install -v -m755 nsswitch/libnss_wins.so /lib\r
102 cd $(DIR_APP)/source && install -v -m755 nsswitch/libnss_winbind.so /lib\r
103 cd $(DIR_APP)/source && ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2\r
104 cd $(DIR_APP)/source && ln -v -sf libnss_wins.so /lib/libnss_wins.so.2\r
105# cd $(DIR_APP)/source && install -v -m755 nsswitch/pam_winbind.so /lib/security\r
106 cd $(DIR_APP)/source && install -v -m644 ../examples/smb.conf.default /var/ipfire/samba\r
107 -mkdir -p /var/ipfire/samba \r
108 cp -vrf $(DIR_SRC)/config/samba/* /var/ipfire/samba/\r
109 chown nobody:nobody -R /var/ipfire/samba/\r
110 cp -vfp /var/ipfire/samba/default.global /var/ipfire/samba/global\r
111 cp -vfp /var/ipfire/samba/default.pdc /var/ipfire/samba/pdc\r
112 cp -vfp /var/ipfire/samba/default.settings /var/ipfire/samba/settings\r
113 cp -vfp /var/ipfire/samba/default.shares /var/ipfire/samba/shares\r
114 cp -vfp /var/ipfire/samba/default.printer /var/ipfire/samba/printer\r
115 cat /var/ipfire/samba/global /var/ipfire/samba/shares > /var/ipfire/samba/smb.conf\r
116 -mkdir -p /var/log/samba\r
117 install -v -m 644 $(DIR_SRC)/config/backup/includes/samba /var/ipfire/backup/addons/includes/samba\r
118 @rm -rf $(DIR_APP)\r
119 @$(POSTBUILD)\r