aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-smb/Makefile
blob: f12b01fca8f4a7a8817b08e9ca16516e8a90bfa6 (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
# ex:ts=8
# Ports collection makefile for:    pysmb
# Date created:         Jan 11, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   smb
PORTVERSION=    0.4.4
CATEGORIES= net python
MASTER_SITES=   http://miketeo.net/old/projects/pysmb/ \
        http://mirror2.unixfreunde.de/ \
        http://freebsd.unixfreunde.de/sources/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pysmb-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    SMB/CIFS library written in Python

USE_PYTHON= yes
WRKSRC=     ${WRKDIR}/pysmb
NO_BUILD=   yes
DATADIR=    ${PREFIX}/share/py-smb
DOCSDIR=    ${PREFIX}/share/doc/py-smb

do-install:
.for file in nmb.py smb.py
    ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR}
.endfor
.for file in nmbquery smbcp smbdu smblistshare
    ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
    @${MKDIR} ${DATADIR}
    ${CP} ${WRKSRC}/extra/*.reg ${DATADIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${CP} ${WRKSRC}/README ${DOCSDIR}
    ${CP} ${WRKSRC}/docs/*.html ${WRKSRC}/docs/*.gif ${DOCSDIR}
.endif

.include <bsd.port.mk>