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
:= b6dfa5ae4818d891ee2fcff04a5912f4a4fb2394b4f5e66a2a15b428da094c7c
10 PKG_DESCR
:= file and
print server
(version
4)
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 \
28 --localstatedir
=/var \
29 --with-privatedir
=/etc
/samba \
31 --cross-answers
=$(WRKSRC
)/cache.txt \
42 --without-acl-support \
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" \
55 $(CP
) .
/files
/cache.txt
$(WRKSRC
)
56 echo
'Checking uname machine type: "$(ADK_TARGET_ARCH)"' >>$(WRKSRC
)/cache.txt
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
} \
66 $(CP
) $(WRKINST
)/usr
/lib
/lib
*.so
* \
68 $(CP
) $(WRKINST
)/usr
/lib
/samba \
71 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk