[packages] transmission-remote: add missing dependencies (#11663)
[packages.git] / net / samba36 / Makefile
1 #
2 # Copyright (C) 2007-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=samba
11 PKG_VERSION:=3.6.5
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=http://ftp.samba.org/pub/samba \
15         http://ftp.samba.org/pub/samba/old-versions
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_MD5SUM:=2f0c14547333c1b48fd4728b031e7040
18
19 include $(INCLUDE_DIR)/package.mk
20
21 MAKE_PATH:=source3
22 CONFIGURE_PATH:=source3
23
24 PKG_BUILD_BIN:=$(PKG_BUILD_DIR)/$(MAKE_PATH)/bin
25
26 define Package/samba36-server
27   SECTION:=net
28   CATEGORY:=Network
29   TITLE:=Samba 3.6 SMB/CIFS server
30   URL:=http://www.samba.org/
31 endef
32
33 define Package/samba36-client
34   SECTION:=net
35   CATEGORY:=Network
36   TITLE:=Samba 3.6 SMB/CIFS client
37   URL:=http://www.samba.org/
38   DEPENDS:=+libreadline +libncurses
39 endef
40
41 define Package/samba36-server/config
42         config PACKAGE_SAMBA_MAX_DEBUG_LEVEL
43                 int "Maximum level of compiled-in debug messages"
44                 depends PACKAGE_samba36-server || PACKAGE_samba36-client
45                 default -1
46
47 endef
48
49 define Package/samba36-server/description
50  The Samba software suite is a collection of programs that implements the
51  SMB protocol for UNIX systems, allowing you to serve files and printers to
52  Windows, NT, OS/2 and DOS clients. This protocol is sometimes also referred
53  to as the LanManager or Netbios protocol.
54 endef
55
56 TARGET_CFLAGS += -DMAX_DEBUG_LEVEL=$(CONFIG_PACKAGE_SAMBA_MAX_DEBUG_LEVEL) -D__location__=\\\"\\\" -ffunction-sections -fdata-sections
57 TARGET_LDFLAGS += -Wl,--gc-sections
58
59 CONFIGURE_VARS += \
60         ac_cv_file__proc_sys_kernel_core_pattern=yes \
61         libreplace_cv_HAVE_C99_VSNPRINTF=yes \
62         libreplace_cv_HAVE_GETADDRINFO=yes \
63         libreplace_cv_HAVE_IFACE_IFCONF=yes \
64         LINUX_LFS_SUPPORT=yes \
65         samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \
66         samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \
67         samba_cv_HAVE_IFACE_IFCONF=yes \
68         samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes \
69         samba_cv_HAVE_SECURE_MKSTEMP=yes \
70         samba_cv_HAVE_WRFILE_KEYTAB=no \
71         samba_cv_USE_SETREUID=yes \
72         samba_cv_USE_SETRESUID=yes \
73         samba_cv_have_setreuid=yes \
74         samba_cv_have_setresuid=yes \
75         ac_cv_header_zlib_h=no \
76         samba_cv_zlib_1_2_3=no
77
78 CONFIGURE_ARGS += \
79         --exec-prefix=/usr \
80         --prefix=/ \
81         --disable-avahi \
82         --disable-cups \
83         --disable-pie \
84         --disable-relro \
85         --disable-static \
86         --disable-swat \
87         --disable-shared-libs \
88         --with-codepagedir=/etc/samba \
89         --with-configdir=/etc/samba \
90         --with-included-iniparser \
91         --with-included-popt \
92         --with-lockdir=/var/lock \
93         --with-logfilebase=/var/log \
94         --with-nmbdsocketdir=/var/nmbd \
95         --with-piddir=/var/run \
96         --with-privatedir=/etc/samba \
97         --with-sendfile-support \
98         --without-cluster-support \
99         --without-ads \
100         --without-krb5 \
101         --without-ldap \
102         --without-pam \
103         --without-winbind \
104         --without-libtdb \
105         --without-libtalloc \
106         --without-libnetapi \
107         --without-libsmbclient \
108         --without-libsmbsharemodes \
109         --without-libaddns \
110         --with-shared-modules=pdb_tdbsam,pdb_wbc_sam,idmap_nss,nss_info_template,auth_winbind,auth_wbc,auth_domain
111
112 MAKE_FLAGS += DYNEXP= PICFLAG= MODULES=
113
114 define Package/samba36-server/install
115         $(INSTALL_DIR) $(1)/etc/config
116         $(INSTALL_DATA) ./files/samba.config $(1)/etc/config/samba
117         $(INSTALL_DIR) $(1)/etc/samba
118         $(INSTALL_DATA) ./files/smb.conf.template $(1)/etc/samba
119         $(INSTALL_DATA) $(PKG_BUILD_DIR)/codepages/lowcase.dat $(1)/etc/samba
120         $(INSTALL_DATA) $(PKG_BUILD_DIR)/codepages/upcase.dat $(1)/etc/samba
121         $(INSTALL_DATA) $(PKG_BUILD_DIR)/codepages/valid.dat $(1)/etc/samba
122         $(INSTALL_DIR) $(1)/etc/init.d
123         $(INSTALL_BIN) ./files/samba.init $(1)/etc/init.d/samba
124         $(INSTALL_DIR) $(1)/usr/sbin
125         $(INSTALL_BIN) $(PKG_BUILD_BIN)/samba_multicall $(1)/usr/sbin
126         ln -sf samba_multicall $(1)/usr/sbin/smbd
127         ln -sf samba_multicall $(1)/usr/sbin/nmbd
128         ln -sf samba_multicall $(1)/usr/sbin/smbpasswd
129 endef
130
131 define Package/samba36-client/install
132         $(INSTALL_DIR) $(1)/usr/sbin
133         $(INSTALL_BIN) $(PKG_BUILD_BIN)/smbclient $(1)/usr/sbin
134         $(INSTALL_BIN) $(PKG_BUILD_BIN)/nmblookup $(1)/usr/sbin
135 endef
136
137 $(eval $(call BuildPackage,samba36-client))
138 $(eval $(call BuildPackage,samba36-server))
139