don't load config files in failsafe mode
[openwrt.git] / package / samba / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=samba
4 PKG_VERSION:=2.0.10
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=54870482fe036b7e69dd48c90661eec6
7
8 PKG_SOURCE_URL:=ftp://se.samba.org/pub/samba/stable \
9 ftp://ftp.easynet.be/samba/stable
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_CAT:=zcat
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,SAMBA,samba,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18 $(eval $(call PKG_template,SAMBA_CLIENT,samba-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
21 (cd $(PKG_BUILD_DIR)/source; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE -DNDEBUG -DSHMEM_SIZE=524288 -Dfcntl=fcntl64" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
26 ac_cv_sizeof_int=4 \
27 ac_cv_sizeof_long=4 \
28 ac_cv_sizeof_short=2 \
29 samba_cv_FTRUNCATE_NEEDS_ROOT=no \
30 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no \
31 samba_cv_HAVE_BROKEN_GETGROUPS=no \
32 samba_cv_HAVE_BROKEN_READDIR=no \
33 samba_cv_HAVE_FCNTL_LOCK=yes \
34 samba_cv_HAVE_FNMATCH=yes \
35 samba_cv_HAVE_FTRUNCATE_EXTEND=no \
36 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \
37 samba_cv_HAVE_IFACE_AIX=no \
38 samba_cv_HAVE_IFACE_IFCONF=yes \
39 samba_cv_HAVE_IFACE_IFREQ=yes \
40 samba_cv_HAVE_INO64_T=yes \
41 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no \
42 samba_cv_HAVE_OFF64_T=yes \
43 samba_cv_HAVE_ROOT=yes \
44 samba_cv_HAVE_SECURE_MKSTEMP=yes \
45 samba_cv_HAVE_SHARED_MMAP=yes \
46 samba_cv_HAVE_STRUCT_FLOCK64=yes \
47 samba_cv_HAVE_SYSV_IPC=no \
48 samba_cv_HAVE_TRUNCATED_SALT=no \
49 samba_cv_HAVE_UNION_SEMUN=no \
50 samba_cv_HAVE_UNSIGNED_CHAR=yes \
51 samba_cv_NEED_SGI_SEMUN_HACK=no \
52 samba_cv_REPLACE_INET_NTOA=no \
53 samba_cv_SIZEOF_INO_T=4 \
54 samba_cv_SIZEOF_OFF_T=4 \
55 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes \
56 samba_cv_USE_SETEUID=yes \
57 samba_cv_USE_SETRESUID=no \
58 samba_cv_USE_SETREUID=yes \
59 samba_cv_USE_SETUIDX=no \
60 samba_cv_have_longlong=yes \
61 samba_cv_have_setresgid=no \
62 samba_cv_have_setresuid=no \
63 ./configure \
64 --target=$(GNU_TARGET_NAME) \
65 --host=$(GNU_TARGET_NAME) \
66 --build=$(GNU_HOST_NAME) \
67 --program-prefix="" \
68 --program-suffix="" \
69 --prefix=/usr \
70 --exec-prefix=/usr \
71 --bindir=/usr/bin \
72 --datadir=/usr/share \
73 --includedir=/usr/include \
74 --infodir=/usr/share/info \
75 --libdir=/usr/lib \
76 --libexecdir=/usr/lib \
77 --localstatedir=/var/log/samba \
78 --mandir=/usr/share/man \
79 --sbindir=/usr/sbin \
80 --sysconfdir=/etc/samba \
81 $(DISABLE_LARGEFILE) \
82 $(DISABLE_NLS) \
83 --with-lockdir=/var/run/samba \
84 --with-privatedir=/etc/samba \
85 --enable-cups \
86 );
87 touch $@
88
89 $(PKG_BUILD_DIR)/.built:
90 $(MAKE) -C $(PKG_BUILD_DIR)/source \
91 $(TARGET_CONFIGURE_OPTS) \
92 all
93 touch $@
94
95 $(IPKG_SAMBA):
96 install -d -m0755 $(IDIR_SAMBA)/etc/init.d
97 install -m0755 ./files/samba.init $(IDIR_SAMBA)/etc/init.d/samba
98 install -d -m0755 $(IDIR_SAMBA)/etc/samba
99 install -m0644 ./files/smb.conf $(IDIR_SAMBA)/etc/samba/smb.conf
100 install -d -m0755 $(IDIR_SAMBA)/usr/bin
101 install -m0755 $(PKG_BUILD_DIR)/source/bin/smbpasswd $(IDIR_SAMBA)/usr/bin/
102 install -d -m0755 $(IDIR_SAMBA)/usr/sbin
103 install -m0755 $(PKG_BUILD_DIR)/source/bin/{n,s}mbd $(IDIR_SAMBA)/usr/sbin/
104 $(RSTRIP) $(IDIR_SAMBA)
105 $(IPKG_BUILD) $(IDIR_SAMBA) $(PACKAGE_DIR)
106
107 $(IPKG_SAMBA_CLIENT):
108 install -d -m0755 $(IDIR_SAMBA_CLIENT)/usr/bin
109 install -m0755 $(PKG_BUILD_DIR)/source/bin/smbclient $(IDIR_SAMBA_CLIENT)/usr/bin/
110 $(RSTRIP) $(IDIR_SAMBA_CLIENT)
111 $(IPKG_BUILD) $(IDIR_SAMBA_CLIENT) $(PACKAGE_DIR)
112
113 mostlyclean:
114 make -C $(PKG_BUILD_DIR) clean
115 rm $(PKG_BUILD_DIR)/.built
This page took 0.04079 seconds and 5 git commands to generate.