source: src/router/rules/samba3.mk @ 18474

Last change on this file since 18474 was 18474, checked in by BrainSlayer, 15 months ago

even a small bit brings something

File size: 2.5 KB
Line 
1ifeq ($(CONFIG_HOTPLUG2),y)
2export SAMBA3_EXTRA:= -DHAVE_DDINOTIFY
3endif
4CONFIGURE_VARS += \
5        ac_cv_file__proc_sys_kernel_core_pattern=yes \
6        libreplace_cv_HAVE_C99_VSNPRINTF=yes \
7        libreplace_cv_HAVE_GETADDRINFO=yes \
8        libreplace_cv_HAVE_IFACE_IFCONF=yes \
9        LINUX_LFS_SUPPORT=yes \
10        samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \
11        samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \
12        samba_cv_HAVE_IFACE_IFCONF=yes \
13        samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes \
14        samba_cv_HAVE_SECURE_MKSTEMP=yes \
15        samba_cv_HAVE_WRFILE_KEYTAB=no \
16        samba_cv_USE_SETREUID=yes \
17        samba_cv_USE_SETRESUID=yes \
18        samba_cv_have_setreuid=yes \
19        samba_cv_have_setresuid=yes
20
21CONFIGURE_ARGS += \
22        --host=$(ARCH)-linux \
23        --exec-prefix=/usr \
24        --prefix=/ \
25        --disable-avahi \
26        --disable-cups \
27        --disable-pie \
28        --disable-relro \
29        --disable-static \
30        --disable-swat \
31        --disable-shared-libs \
32        --with-codepagedir=/etc/samba \
33        --with-configdir=/etc/samba \
34        --with-included-iniparser \
35        --with-included-popt \
36        --with-lockdir=/var/lock \
37        --with-logfilebase=/var/log \
38        --with-nmbdsocketdir=/var/nmbd \
39        --with-piddir=/var/run \
40        --with-privatedir=/etc/samba \
41        --with-sendfile-support \
42        --without-cluster-support \
43        --without-ads \
44        --without-krb5 \
45        --without-ldap \
46        --without-pam \
47        --without-winbind \
48        --without-libtdb \
49        --without-libtalloc \
50        --without-libnetapi \
51        --without-libsmbclient \
52        --without-libsmbsharemodes \
53        --without-libaddns \
54        --with-shared-modules=pdb_tdbsam,pdb_wbc_sam,idmap_nss,nss_info_template,auth_winbind,auth_wbc,auth_domain
55       
56
57samba3-configure:
58        if ! test -e "samba36/source3/Makefile"; then   cd samba36/source3 && ./configure $(CONFIGURE_VARS) $(CONFIGURE_ARGS) CFLAGS="$(COPTS) -DMAX_DEBUG_LEVEL=-1  -ffunction-sections -fdata-sections -Wl,--gc-sections $(LTO) $(SAMBA3_EXTRA)" LDFLAGS="$(COPTS) -DMAX_DEBUG_LEVEL=-1  -ffunction-sections -fdata-sections -Wl,--gc-sections $(LTO) $(SAMBA3_EXTRA)"; fi
59
60samba3: samba3-configure
61        $(MAKE) -C samba36/source3 all WITH_LFS=yes DYNEXP= PICFLAG= MODULES=
62
63samba3-install:
64        mkdir -p $(INSTALLDIR)/samba3
65        install -D samba36/source3/bin/samba_multicall $(INSTALLDIR)/samba3/usr/sbin/samba_multicall
66        install -D samba36/source3/bin/smbpasswd $(INSTALLDIR)/samba3/usr/sbin/smbpasswd
67        install -D samba36/config/samba3.webnas $(INSTALLDIR)/samba3/etc/config/samba3.webnas
68        install -D samba36/config/samba3.nvramconfig $(INSTALLDIR)/samba3/etc/config/samba3.nvramconfig
69        cd  $(INSTALLDIR)/samba3/usr/sbin && ln -sf samba_multicall smbd
70        cd  $(INSTALLDIR)/samba3/usr/sbin && ln -sf samba_multicall nmbd
71
72
73samba3-clean:
74        -$(MAKE) -C samba36/source3 clean
Note: See TracBrowser for help on using the repository browser.