aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-samba/Makefile
blob: 638874372f3dad3afe1a47ea6a7d6552127ab2f2 (plain) (blame)
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
# 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=      ${PYTHON_PKGNAMEPREFIX}

COMMENT=        Python bindings for Samba

CONFLICTS=

SAMBA_PORT=     samba3
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

CONFIGURE_ARGS+=--without-krb5
CONFIGURE_ARGS+=--without-ads

do-build:
    cd ${WRKSRC} && ${MAKE} proto
    cd ${WRKSRC} && ${MAKE} python_ext

post-install:
    -@${MKDIR} ${EXAMPLESDIR}
    @${CP} -Rp ${WRKSRC}/python/examples/* ${EXAMPLESDIR}
    @${CP} -Rp ${WRKDIR}/${DISTNAME}/examples/scripts/shares/python/* ${EXAMPLESDIR}

.include "${MASTERDIR}/Makefile"