mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Upgraded samba to 3.2.4
This commit is contained in:
35
lfs/samba
35
lfs/samba
@@ -24,7 +24,7 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 3.0.32
|
||||
VER = 3.2.4
|
||||
|
||||
THISAPP = samba-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = samba
|
||||
PAK_VER = 8
|
||||
PAK_VER = 9
|
||||
|
||||
DEPS = "cups cyrus-sasl"
|
||||
|
||||
@@ -44,7 +44,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = be13b8dbe2785212dba49e7ced352f30
|
||||
$(DL_FILE)_MD5 = 7870a6bb3a025c6081cd56688acd494a
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -78,19 +78,26 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP)/source && ./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/var/ipfire \
|
||||
--localstatedir=/var \
|
||||
--with-piddir=/var/run \
|
||||
--with-fhs \
|
||||
--with-smbmount \
|
||||
--with-winbind
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib/samba \
|
||||
--sysconfdir=/var/ipfire \
|
||||
--localstatedir=/var \
|
||||
--with-piddir=/var/run \
|
||||
--with-fhs \
|
||||
--with-winbind \
|
||||
--disable-swat \
|
||||
--enable-cups \
|
||||
--with-cifsmount \
|
||||
--with-syslog
|
||||
cd $(DIR_APP)/source && make
|
||||
cd $(DIR_APP)/source && make install
|
||||
cd $(DIR_APP)/source && mv -v /usr/lib/samba/libsmbclient.so /usr/lib
|
||||
cd $(DIR_APP)/source && ln -v -sf ../libsmbclient.so /usr/lib/samba
|
||||
cd $(DIR_APP)/source && ln -v -sf libsmbclient.so /usr/lib/libsmbclient.so.0
|
||||
cd $(DIR_APP)/source && chmod -v 644 /usr/include/lib{smbclient,msrpc}.h
|
||||
cp -vfp /usr/lib/samba/{libsmbclient.so.0,libtalloc.so.1,libtdb.so.1,libwbclient.so.0} /usr/lib
|
||||
cd /usr/lib/ && ln -v -sf libsmbclient.so.0 libsmbclient.so
|
||||
cd /usr/lib/ && ln -v -sf libtalloc.so.1 libtalloc.so
|
||||
cd /usr/lib/ && ln -v -sf libtdb.so.1 libtdb.so
|
||||
cd /usr/lib/ && ln -v -sf libwbclient.so.0 libwbclient.so
|
||||
cd $(DIR_APP)/source && chmod -v 644 /usr/include/libsmbclient.h
|
||||
cd $(DIR_APP)/source && chmod -v 644 /usr/include/libsmbclient.h
|
||||
cd $(DIR_APP)/source && install -v -m755 nsswitch/libnss_wins.so /lib
|
||||
cd $(DIR_APP)/source && install -v -m755 nsswitch/libnss_winbind.so /lib
|
||||
cd $(DIR_APP)/source && ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2
|
||||
|
||||
Reference in New Issue
Block a user