freebsd-ports/net/samba-smbclient/Makefile

46 lines
1.1 KiB
Makefile
Raw Normal View History

# 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
2010-02-05 02:19:29 +01:00
CONFLICTS= ja-samba-[23].* samba-[2-4].*
2010-02-05 02:19:29 +01:00
SAMBA_PORT= samba34
SAMBA_SUBPORT= yes
2010-02-05 02:19:29 +01:00
SAMBA_CONFIG= smb-client.conf
MASTERDIR= ${.CURDIR}/../${SAMBA_PORT}
FILESDIR= ${.CURDIR}/files
PKGDIR= ${.CURDIR}
WITHOUT_ADS= yes
MAN1= smbclient.1
2008-09-05 01:10:40 +02:00
PLIST_SUB+= SAMBA_CONFDIR="${SAMBA_CONFDIR:S,^${PREFIX}/,,}" \
SAMBA_CONFIG="${SAMBA_CONFIG}"
2010-02-05 02:19:29 +01:00
ALL_TARGET= libtdb bin/smbclient
do-install:
2010-02-05 02:19:29 +01:00
-@${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
2010-02-05 02:19:29 +01:00
-@${MKDIR} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/smbclient ${PREFIX}/bin
2010-02-05 02:19:29 +01:00
-@${MKDIR} ${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/manpages/smbclient.1 ${MAN1PREFIX}/man/man1
.include "${MASTERDIR}/Makefile"