summaryrefslogtreecommitdiff
path: root/package/samba3/Makefile
blob: b1c1ae3697dfa45b128784a20b16c46cca25be20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		samba3
PKG_VERSION:=		3.6.25
PKG_RELEASE:=		1
PKG_HASH:=		8f2c8a7f2bd89b0dfd228ed917815852f7c625b2bc0936304ac3ed63aaf83751
PKG_DESCR:=		file and print server (version 3)
PKG_SECTION:=		net/fs
PKG_BUILDDEP:=		gettext-tiny util-linux popt
PKG_DEPENDS:=		libuuid libpopt
PKG_URL:=		http://www.samba.org/
PKG_SITES:=		http://samba.org/samba/ftp/stable/

DISTFILES:=		samba-${PKG_VERSION}.tar.gz

WRKDIST=		${WRKDIR}/samba-${PKG_VERSION}
WRKSRC=			${WRKDIST}/source3

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,SAMBA3,samba3,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ENV+=		samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
			samba_cv_USE_SETRESUID=yes \
			samba_cv_HAVE_WRFILE_KEYTAB=yes \
			ac_cv_func_ext_krb5_enctype_to_string=yes \
			smb_krb5_cv_enctype_to_string_takes_krb5_context_arg=yes \
			smb_krb5_cv_enctype_to_string_takes_size_t_arg=no \
			ac_cv_lib_ext_nsl_connect=no \
			ac_cv_search_yp_get_default_domain=no \
			ac_cv_lib_ext_nsl_gethostbyname=no \
			ac_cv_file__proc_sys_kernel_core_pattern=yes \
			libreplace_cv_HAVE_GETADDRINFO=no
CONFIGURE_ARGS+=	--libdir=/usr/lib \
			--localstatedir=/var/log/samba \
			--with-configdir=/etc/samba \
			--with-lockdir=/var/run/samba \
			--with-privatedir=/etc/samba \
			--with-libiconv=/dev/null \
			--with-syslog \
			--disable-cups \
			--disable-swat \
			--disable-avahi \
			--with-utmp=no \
			--with-pam=no \
			--without-cluster-support \
			--without-sendfile-support \
			--without-winbind \
			--with-ldap=no

samba3-install:
	${INSTALL_DIR} ${IDIR_SAMBA3}/etc/samba 
	${INSTALL_DIR} ${IDIR_SAMBA3}/usr/sbin
	${INSTALL_DIR} ${IDIR_SAMBA3}/usr/bin
	${INSTALL_DIR} ${IDIR_SAMBA3}/usr/lib/{charset,vfs}
	${INSTALL_DATA} ${WRKINST}/usr/lib/charset/*.so \
			${IDIR_SAMBA3}/usr/lib/charset
	${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA3}/etc/samba
	${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA3}/usr/sbin
	${CP} ${WRKINST}/usr/lib/vfs/*.so* ${IDIR_SAMBA3}/usr/lib/vfs
	${INSTALL_DATA} ${WRKINST}/usr/lib/*.dat ${IDIR_SAMBA3}/usr/lib
	${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
		${IDIR_SAMBA3}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
		${IDIR_SAMBA3}/usr/bin
	${CP} ${WRKINST}/usr/lib/{libsmbclient,libsmbsharemodes,libnetapi}.so* \
		${IDIR_SAMBA3}/usr/lib
	$(CP) ${WRKINST}/usr/lib/{libtalloc,libtdb,libtevent}.so* \
		${IDIR_SAMBA3}/usr/lib

include ${ADK_TOPDIR}/mk/pkg-bottom.mk