aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba-smbclient/Makefile
blob: 61705add84aa8fd2d535497ce96471bdc3cb5329 (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
# New ports collection makefile for:    samba-smbclient
# Date created:             Mon Jul 28 12:43:50 BRT 2008
# Whom:                 garga
#
# $FreeBSD$
#

PORTREVISION=       0
PORTEPOCH=      0
PKGNAMESUFFIX=      -smbclient

COMMENT=        Samba "ftp-like" client

CONFLICTS=      ja-samba-[23].* samba-[2-4].*

SAMBA_PORT=     samba36
SAMBA_SUBPORT=      yes

SAMBA_CONFIG=       smb-client.conf

MASTERDIR=      ${.CURDIR}/../${SAMBA_PORT}
FILESDIR=       ${.CURDIR}/files
PKGDIR=         ${.CURDIR}

WITHOUT_ADS=        yes

MAN1=           smbclient.1

PLIST_SUB+=     SAMBA_CONFDIR="${SAMBA_CONFDIR:S,^${PREFIX}/,,}" \
            SAMBA_CONFIG="${SAMBA_CONFIG}"

ALL_TARGET=     bin/smbclient

do-install:
    -@${MKDIR} ${SAMBA_CONFDIR}
    ${INSTALL_DATA} ${FILESDIR}/smb-client.conf.sample ${SAMBA_CONFDIR}/${SAMBA_CONFIG}.sample
    @if [ ! -f "${SAMBA_CONFDIR}/${SAMBA_CONFIG}" ]; then \
        ${CP} -p "${SAMBA_CONFDIR}/${SAMBA_CONFIG}.sample" "${SAMBA_CONFDIR}/${SAMBA_CONFIG}"; \
    fi
    -@${MKDIR} ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/smbclient ${PREFIX}/bin
    -@${MKDIR} ${MAN1PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/manpages/smbclient.1 ${MAN1PREFIX}/man/man1

.include "${MASTERDIR}/Makefile"