75d8e51b58
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30489 3c298f89-4303-0410-b956-a3cf2f4a3e73
110 lines
3.1 KiB
Makefile
110 lines
3.1 KiB
Makefile
#
|
|
# Copyright (C) 2007 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=samba
|
|
PKG_VERSION:=3.6.3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL_SUBDIR:=/
|
|
PKG_SOURCE_URL:=http://ftp.samba.org/pub/samba$(PKG_SOURCE_URL_SUBDIR)
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_MD5SUM:=98ac9db9f4b6ebfc3f013aa193ffb0d1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
MAKE_PATH:=source3
|
|
CONFIGURE_PATH:=source3
|
|
|
|
PKG_BUILD_BIN:=$(PKG_BUILD_DIR)/$(MAKE_PATH)/bin
|
|
|
|
define Package/samba36-server
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Samba 3.6 SMB/CIFS server
|
|
URL:=http://www.samba.org/
|
|
endef
|
|
|
|
define Package/samba36-server/description
|
|
The Samba software suite is a collection of programs that implements the
|
|
SMB protocol for UNIX systems, allowing you to serve files and printers to
|
|
Windows, NT, OS/2 and DOS clients. This protocol is sometimes also referred
|
|
to as the LanManager or Netbios protocol.
|
|
endef
|
|
|
|
TARGET_CFLAGS += -DMAX_DEBUG_LEVEL=2 -ffunction-sections -fdata-sections
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
|
|
|
CONFIGURE_VARS += \
|
|
ac_cv_file__proc_sys_kernel_core_pattern=yes \
|
|
libreplace_cv_HAVE_C99_VSNPRINTF=yes \
|
|
libreplace_cv_HAVE_GETADDRINFO=yes \
|
|
libreplace_cv_HAVE_IFACE_IFCONF=yes \
|
|
LINUX_LFS_SUPPORT=yes \
|
|
samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \
|
|
samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \
|
|
samba_cv_HAVE_IFACE_IFCONF=yes \
|
|
samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes \
|
|
samba_cv_HAVE_SECURE_MKSTEMP=yes \
|
|
samba_cv_HAVE_WRFILE_KEYTAB=no \
|
|
samba_cv_USE_SETREUID=yes \
|
|
samba_cv_USE_SETRESUID=yes \
|
|
samba_cv_have_setreuid=yes \
|
|
samba_cv_have_setresuid=yes
|
|
|
|
CONFIGURE_ARGS += \
|
|
--exec-prefix=/usr \
|
|
--prefix=/ \
|
|
--disable-avahi \
|
|
--disable-cups \
|
|
--disable-pie \
|
|
--disable-relro \
|
|
--disable-static \
|
|
--disable-swat \
|
|
--with-codepagedir=/etc/samba \
|
|
--with-configdir=/etc/samba \
|
|
--with-included-iniparser \
|
|
--with-included-popt \
|
|
--with-lockdir=/var/lock \
|
|
--with-logfilebase=/var/log \
|
|
--with-nmbdsocketdir=/var/nmbd \
|
|
--with-piddir=/var/run \
|
|
--with-privatedir=/etc/samba \
|
|
--with-sendfile-support \
|
|
--without-cluster-support \
|
|
--without-ads \
|
|
--without-krb5 \
|
|
--without-ldap \
|
|
--without-pam \
|
|
--without-winbind
|
|
|
|
MAKE_FLAGS += DYNEXP=
|
|
|
|
define Package/samba36-server/install
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_DATA) ./files/samba.config $(1)/etc/config/samba
|
|
$(INSTALL_DIR) $(1)/etc/samba
|
|
$(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/samba
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/codepages/lowcase.dat $(1)/etc/samba
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/codepages/upcase.dat $(1)/etc/samba
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/codepages/valid.dat $(1)/etc/samba
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_BUILD_BIN)/libtalloc.so.2 $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_BUILD_BIN)/libtdb.so.1 $(1)/usr/lib
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/samba.init $(1)/etc/init.d/samba
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_BIN)/samba_multicall $(1)/usr/sbin
|
|
ln -sf samba_multicall $(1)/usr/sbin/smbd
|
|
ln -sf samba_multicall $(1)/usr/sbin/nmbd
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,samba36-server))
|
|
|