summaryrefslogtreecommitdiff
path: root/package/samba/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/samba/Makefile')
-rw-r--r--package/samba/Makefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/package/samba/Makefile b/package/samba/Makefile
new file mode 100644
index 000000000..11be3043a
--- /dev/null
+++ b/package/samba/Makefile
@@ -0,0 +1,69 @@
+# $Id$
+#-
+# 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.3.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 1443165edb7cb3f56f1e77aec1ee3266
+MASTER_SITES:= ftp://se.samba.org/pub/samba/stable/ \
+ ftp://ftp.easynet.be/samba/stable/
+WRKSRC= ${WRKDIST}/source
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,SAMBA,samba,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SAMBA_CLIENT,samba-client,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SAMBA_PASSWD,samba-passwd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+TLDFLAGS+= -Wl,-rpath -Wl,/usr/lib/samba
+CONFIGURE_ENV+= samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
+ samba_cv_USE_SETRESUID=no
+ifeq ($(ADK_IPV6),y)
+CONFIGURE_ENV+= libreplace_cv_HAVE_IPV6=yes
+else
+CONFIGURE_ENV+= libreplace_cv_HAVE_IPV6=no
+endif
+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
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_SAMBA}/etc/{init.d,samba}
+ ${INSTALL_DIR} ${IDIR_SAMBA}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_SAMBA}/usr/lib/samba
+ ${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/samba.init ${IDIR_SAMBA}/etc/init.d/samba
+ ${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