update samba to latest
[openadk.git] / package / samba / Makefile
blob3ecbc6bdff3a57ca9915b383a5acdb5c0a517919
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.2.3
8 PKG_RELEASE:= 1
9 PKG_HASH:= b6dfa5ae4818d891ee2fcff04a5912f4a4fb2394b4f5e66a2a15b428da094c7c
10 PKG_DESCR:= file and print server (version 4)
11 PKG_SECTION:= net/fs
12 PKG_BUILDDEP:= gettext-tiny util-linux popt python2 gnutls
13 PKG_BUILDDEP:= heimdal-host python2-host
14 PKG_DEPENDS:= libpthread librt libuuid libpopt libgnutls
15 PKG_URL:= http://www.samba.org/
16 PKG_SITES:= http://samba.org/samba/ftp/stable/
18 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
20 include $(ADK_TOPDIR)/mk/package.mk
22 $(eval $(call PKG_template,SAMBA,samba,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
24 CONFIG_STYLE:= minimal
25 CONFIGURE_ARGS+= --enable-fhs \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --with-privatedir=/etc/samba \
30 --cross-compile \
31 --cross-answers=$(WRKSRC)/cache.txt \
32 --hostcc=gcc \
33 --without-pie \
34 --without-relro \
35 --without-systemd \
36 --without-automount \
37 --without-pam \
38 --without-fam \
39 --without-dmapi \
40 --without-ads \
41 --without-ldap \
42 --without-acl-support \
43 --disable-glusterfs \
44 --disable-iprint \
45 --disable-cups \
46 --disable-avahi \
47 --disable-rpath \
48 --bundled-libraries='com_err,!asn1_compile,!compile_et' \
49 --disable-rpath-install
50 CONFIGURE_ENV+= PYTHON_CONFIG="$(STAGING_TARGET_DIR)/usr/bin/python-config" \
51 python_LDFLAGS="" \
52 python_LIBDIR=""
54 pre-configure:
55 $(CP) ./files/cache.txt $(WRKSRC)
56 echo 'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC)/cache.txt
58 samba-install:
59 $(INSTALL_DIR) $(IDIR_SAMBA)/etc/samba
60 $(INSTALL_DIR) $(IDIR_SAMBA)/usr/{sbin,bin,lib}
61 $(INSTALL_DATA) ./files/smb.conf $(IDIR_SAMBA)/etc/samba
62 $(INSTALL_BIN) $(WRKINST)/usr/sbin/{nmbd,smbd} \
63 $(IDIR_SAMBA)/usr/sbin
64 $(INSTALL_BIN) $(WRKINST)/usr/bin/{smbpasswd,smbclient} \
65 $(IDIR_SAMBA)/usr/bin
66 $(CP) $(WRKINST)/usr/lib/lib*.so* \
67 $(IDIR_SAMBA)/usr/lib
68 $(CP) $(WRKINST)/usr/lib/samba \
69 $(IDIR_SAMBA)/usr/lib
71 include $(ADK_TOPDIR)/mk/pkg-bottom.mk