aboutsummaryrefslogtreecommitdiff
path: root/net/py-samba
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-05-09 20:34:40 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-05-09 20:34:40 +0000
commit862b7eb349ac65efcd842b1ccaa54c6202337509 (patch)
treefc0548e3549ea7d04520ddfae27bda2c3fee5286 /net/py-samba
parent1340b882588bb9f9075614a202e7b7ea308d3502 (diff)
downloadports-862b7eb349ac65efcd842b1ccaa54c6202337509.tar.gz
ports-862b7eb349ac65efcd842b1ccaa54c6202337509.zip
Notes
Diffstat (limited to 'net/py-samba')
-rw-r--r--net/py-samba/Makefile46
-rw-r--r--net/py-samba/pkg-descr4
-rw-r--r--net/py-samba/pkg-plist25
3 files changed, 75 insertions, 0 deletions
diff --git a/net/py-samba/Makefile b/net/py-samba/Makefile
new file mode 100644
index 000000000000..7047d267e91c
--- /dev/null
+++ b/net/py-samba/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: samba-python
+# Date created: 01 May 2004
+# Whom: Timur Bakeyev <timur@gnu.org>
+#
+# $FreeBSD$
+#
+
+PORTREVISION= 0
+PORTEPOCH= 0
+CATEGORIES= net python
+PKGNAMEPREFIX= py-
+
+COMMENT= Python bindings for Samba
+
+CONFLICTS=
+
+SAMBA_PORT= samba-devel
+SAMBA_SUBPORT= yes
+
+MASTERDIR= ${.CURDIR}/../${SAMBA_PORT}
+PKGDIR= ${.CURDIR}
+
+USE_PYTHON= 2.1+
+USE_PYDISTUTILS= yes
+PYSETUP= python/setup.py
+
+CONFIGURE_ARGS+= --with-python
+# This is taken from SAMBA_PORT(grep without)
+CONFIGURE_ARGS+= --disable-cups
+CONFIGURE_ARGS+= --without-libsmbclient
+CONFIGURE_ARGS+= --without-syslog
+CONFIGURE_ARGS+= --without-quotas
+CONFIGURE_ARGS+= --without-utmp
+CONFIGURE_ARGS+= --without-winbind
+CONFIGURE_ARGS+= --without-ldapsam
+CONFIGURE_ARGS+= --without-pam_smbpass
+
+do-build:
+ cd ${WRKSRC} && ${MAKE} proto
+ cd ${WRKSRC} && ${MAKE} python_ext
+
+post-install:
+ -@${MKDIR} ${EXAMPLESDIR}
+ @${CP} -Rp ${WRKSRC}/python/examples/* ${EXAMPLESDIR}
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net/py-samba/pkg-descr b/net/py-samba/pkg-descr
new file mode 100644
index 000000000000..548ea1ab7e3d
--- /dev/null
+++ b/net/py-samba/pkg-descr
@@ -0,0 +1,4 @@
+This are the Python bindings for Samba port. They let Python programs to
+use the SMB protocol.
+
+WWW: http://www.samba.org/
diff --git a/net/py-samba/pkg-plist b/net/py-samba/pkg-plist
new file mode 100644
index 000000000000..ab27da1021f3
--- /dev/null
+++ b/net/py-samba/pkg-plist
@@ -0,0 +1,25 @@
+%%PYTHON_SITELIBDIR%%/samba/__init__.py
+%%PYTHON_SITELIBDIR%%/samba/__init__.pyc
+%%PYTHON_SITELIBDIR%%/samba/__init__.pyo
+%%PYTHON_SITELIBDIR%%/samba/lsa.so
+%%PYTHON_SITELIBDIR%%/samba/printerdata.py
+%%PYTHON_SITELIBDIR%%/samba/printerdata.pyc
+%%PYTHON_SITELIBDIR%%/samba/printerdata.pyo
+%%PYTHON_SITELIBDIR%%/samba/samr.so
+%%PYTHON_SITELIBDIR%%/samba/smb.so
+%%PYTHON_SITELIBDIR%%/samba/spoolss.so
+%%PYTHON_SITELIBDIR%%/samba/srvsvc.so
+%%PYTHON_SITELIBDIR%%/samba/tdb.so
+%%PYTHON_SITELIBDIR%%/samba/tdbpack.so
+%%PYTHON_SITELIBDIR%%/samba/winbind.so
+%%PYTHON_SITELIBDIR%%/samba/winreg.so
+%%EXAMPLESDIR%%/spoolss/changeid.py
+%%EXAMPLESDIR%%/spoolss/enumprinters.py
+%%EXAMPLESDIR%%/spoolss/psec.py
+%%EXAMPLESDIR%%/tdbpack/oldtdbutil.py
+%%EXAMPLESDIR%%/tdbpack/tdbtimetrial.py
+%%EXAMPLESDIR%%/tdbpack/test_tdbpack.py
+@dirrm %%PYTHON_SITELIBDIR%%/samba
+@dirrm %%EXAMPLESDIR%%/spoolss
+@dirrm %%EXAMPLESDIR%%/tdbpack
+@dirrm %%EXAMPLESDIR%%