# Makefiles are based on LFSMake, which is #
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
# #
-# Modifications by: #
-# ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
-# - Modified Makefile for IPCop build #
-# #
-# $Id: ntp,v 1.6.2.3 2005/02/05 15:38:15 gespinasse Exp $
-# #
###############################################################################
###############################################################################
include Config
-VER = 3.0.22
+VER = 3.0.24
THISAPP = samba-$(VER)
DL_FILE = $(THISAPP).tar.gz
-DL_FROM = ftp://ftp.samba.org/pub/samba
+DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
+PROG = samba
+PAK_VER = 1
###############################################################################
# Top-level Rules
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 5c39505af17cf5caf3d6ed8bab135036
+$(DL_FILE)_MD5 = 89273f67a6d8067cbbecefaa13747153
install : $(TARGET)
md5 : $(subst %,%_MD5,$(objects))
dist:
- make-packages.sh samba $(THISAPP)
+ @$(PAK)
###############################################################################
# Downloading, checking, md5sum
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP)/source && ./configure \
--prefix=/usr \
- --sysconfdir=/var/ipfire/samba \
+ --sysconfdir=/var/ipfire \
--localstatedir=/var \
--with-piddir=/var/run \
--with-fhs \
--with-smbmount \
--with-winbind \
- --with-pam
+ --without-pam
cd $(DIR_APP)/source && make && make nsswitch
cd $(DIR_APP)/source && make install
cd $(DIR_APP)/source && mv -v /usr/lib/samba/libsmbclient.so /usr/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
cd $(DIR_APP)/source && ln -v -sf libnss_wins.so /lib/libnss_wins.so.2
- cd $(DIR_APP)/source && install -v -m755 nsswitch/pam_winbind.so /lib/security
+# cd $(DIR_APP)/source && install -v -m755 nsswitch/pam_winbind.so /lib/security
cd $(DIR_APP)/source && install -v -m644 ../examples/smb.conf.default /var/ipfire/samba
-# cd $(DIR_APP)/source && install -v -m755 -d /usr/share/doc/samba-3.0.22
-# cd $(DIR_APP)/source && install -v -m644 ../docs/*.pdf /usr/share/doc/samba-3.0.22
-# cd $(DIR_APP)/source && ln -v -s ../../samba/swat /usr/share/doc/samba-3.0.22
- echo "swat 901/tcp" >> /etc/services
- echo "# Begin /var/ipfire/xinetd.d/swat" >> /var/ipfire/xinetd.d/swat
- echo "" >> /var/ipfire/xinetd.d/swat
- echo "service swat" >> /var/ipfire/xinetd.d/swat
- echo "{" >> /var/ipfire/xinetd.d/swat
- echo " port = 901" >> /var/ipfire/xinetd.d/swat
- echo " socket_type = stream" >> /var/ipfire/xinetd.d/swat
- echo " wait = no" >> /var/ipfire/xinetd.d/swat
- echo " only_from = 127.0.0.1" >> /var/ipfire/xinetd.d/swat
- echo " user = root" >> /var/ipfire/xinetd.d/swat
- echo " server = /usr/sbin/swat" >> /var/ipfire/xinetd.d/swat
- echo " log_on_failure += USERID" >> /var/ipfire/xinetd.d/swat
- echo "}" >> /var/ipfire/xinetd.d/swat
- echo "" >> /var/ipfire/xinetd.d/swat
- echo "# End /var/ipfire/xinetd.d/swat" >> /var/ipfire/xinetd.d/swat
+ cp -f $(DIR_CONF)/xinetd/swat /var/ipfire/xinetd/xinetd.d/
@rm -rf $(DIR_APP)
@$(POSTBUILD)