summaryrefslogtreecommitdiff
path: root/package/samba/Makefile
blob: f083e0ac4fc2d42c2d3d171fac8c203325e83d05 (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		samba
PKG_VERSION:=		3.5.3
PKG_RELEASE:=		1
PKG_MD5SUM:=		7c8d2a34b649380d5df838c3e030dbec
PKG_DESCR:=		NetBIOS/SMB file and print server
PKG_SECTION:=		net/fs
PKG_BUILDDEP:=		gettext
PKG_DEPENDS:=		libintl
PKG_URL:=		http://www.samba.org/
PKG_SITES:=		http://samba.org/samba/ftp/stable/

PKG_SUBPKGS:=		SAMBA SAMBA_CLIENT SAMBA_PASSWD

WRKSRC=			${WRKDIST}/source3

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,SAMBA,samba,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SAMBA_CLIENT,samba-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SAMBA_PASSWD,samba-passwd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

TARGET_LDFLAGS+=	-Wl,-rpath -Wl,/usr/lib/samba -lintl
CONFIGURE_ENV+=		samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
			samba_cv_USE_SETRESUID=no \
			ac_cv_lib_ext_nsl_connect=no \
			ac_cv_search_yp_get_default_domain=no \
			ac_cv_lib_ext_nsl_gethostbyname=no
CONFIGURE_ARGS+=	--libdir=/usr/lib/samba \
			--localstatedir=/var/log/samba \
			--with-configdir=/etc/samba \
			--with-lockdir=/var/run/samba \
			--with-privatedir=/etc/samba \
			--with-libiconv=/dev/null \
			--with-syslog \
			--without-winbind \
			--disable-cups \
			--disable-swat \
			--disable-avahi \
			--with-utmp=no \
			--with-ldap=no \
			--without-cluster-support \
			--without-sendfile-support

post-install:
	${INSTALL_DIR} ${IDIR_SAMBA}/etc/samba ${IDIR_SAMBA}/usr/sbin
	${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/samba/{charset,vfs}
	${INSTALL_DATA} ${WRKINST}/usr/lib/samba/charset/CP850.so \
			${IDIR_SAMBA}/usr/lib/samba/charset
	${INSTALL_DATA} ./files/smb.conf ${IDIR_SAMBA}/etc/samba
	${INSTALL_BIN} ${WRKINST}/usr/sbin/{nmbd,smbd} ${IDIR_SAMBA}/usr/sbin
	${CP} ${WRKINST}/usr/lib/samba/*.so* ${IDIR_SAMBA}/usr/lib/samba
	${CP} ${WRKINST}/usr/lib/samba/vfs/*.so* ${IDIR_SAMBA}/usr/lib/samba/vfs
	${INSTALL_DATA} ${WRKINST}/usr/lib/samba/*.dat ${IDIR_SAMBA}/usr/lib/samba
	${INSTALL_DIR} ${IDIR_SAMBA_PASSWD}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/smbpasswd \
		${IDIR_SAMBA_PASSWD}/usr/bin
	${INSTALL_DIR} ${IDIR_SAMBA_CLIENT}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/smbclient \
		${IDIR_SAMBA_CLIENT}/usr/bin

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