samba: update to 4.6.9
[openadk.git] / package / samba / Makefile
blob82d4a5f87c38afbada7080d7567d1dab580aa8f2
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= samba
7 PKG_VERSION:= 4.6.9
8 PKG_RELEASE:= 1
9 PKG_HASH:= c31db4aad82f0b9588ef6c4b4dab5dce3fa1787bd298e62d953c2628bb1af21a
10 PKG_DESCR:= file and print server
11 PKG_SECTION:= net/fs
12 PKG_DEPENDS:= libuuid libpopt libgnutls libtirpc
13 PKG_DEPENDS+= libtalloc
14 PKG_BUILDDEP:= util-linux popt python2 gnutls talloc
15 PKG_BUILDDEP+= heimdal-host python2-host libtirpc
16 PKG_NEEDS:= threads intl
17 PKG_URL:= http://www.samba.org/
18 PKG_SITES:= http://samba.org/samba/ftp/stable/
20 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
22 include $(ADK_TOPDIR)/mk/package.mk
24 $(eval $(call PKG_template,SAMBA,samba,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
26 XAKE_ENV+= V=1
27 CONFIG_STYLE:= minimal
28 CONFIGURE_ARGS+= --enable-fhs \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --localstatedir=/var \
32 --with-privatedir=/etc/samba \
33 --cross-compile \
34 --cross-answers=$(WRKSRC)/cache.txt \
35 --hostcc=gcc \
36 --without-pie \
37 --without-gettext \
38 --without-relro \
39 --without-systemd \
40 --without-automount \
41 --without-pam \
42 --without-fam \
43 --without-dmapi \
44 --without-ads \
45 --without-ldap \
46 --without-acl-support \
47 --disable-glusterfs \
48 --disable-iprint \
49 --disable-cups \
50 --disable-avahi \
51 --disable-rpath \
52 --bundled-libraries='com_err,!asn1_compile,!compile_et' \
53 --disable-rpath-install
54 CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
55 python_LDFLAGS="" \
56 python_LIBDIR=""
58 pre-configure:
59 $(CP) ./files/cache.txt $(WRKSRC)
60 echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
62 samba-install:
63 $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
64 $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
65 $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
66 $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
67 $(IDIR_SAMBA)/usr/sbin
68 $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
69 $(IDIR_SAMBA)/usr/bin
70 $(CP) $(WRKINST)/usr/lib/lib*.so* \
71 $(IDIR_SAMBA)/usr/lib
72 $(CP) $(WRKINST)/usr/lib/samba \
73 $(IDIR_SAMBA)/usr/lib
75 include $(ADK_TOPDIR)/mk/pkg-bottom.mk