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
9 PKG_HASH
:= c31db4aad82f0b9588ef6c4b4dab5dce3fa1787bd298e62d953c2628bb1af21a
10 PKG_DESCR
:= file and
print server
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
)))
27 CONFIG_STYLE
:= minimal
28 CONFIGURE_ARGS
+= --enable-fhs \
31 --localstatedir
=/var \
32 --with-privatedir
=/etc
/samba \
34 --cross-answers
=$(WRKSRC
)/cache.txt \
46 --without-acl-support \
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" \
59 $(CP
) .
/files
/cache.txt
$(WRKSRC
)
60 echo
'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC
)/cache.txt
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
} \
70 $(CP
) $(WRKINST
)/usr
/lib
/lib
*.so
* \
72 $(CP
) $(WRKINST
)/usr
/lib
/samba \
75 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk