# Created by: Rashid N. Achilov <shelton@granch.ru>
# $FreeBSD: sysutils/mountsmb2/Makefile 327772 2013-09-20 23:05:58Z bapt $

PORTNAME=	mountsmb2
PORTVERSION=	0.90.2
CATEGORIES=	sysutils net
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	lippe

MAINTAINER=	citycat4@ngs.ru
COMMENT=	SMB/CIFS shares mounting scripts to do it at login

RUN_DEPENDS=	nbtscan:${PORTSDIR}/net-mgmt/nbtscan \
		sudo:${PORTSDIR}/security/sudo

USE_BZIP2=	yes
NO_BUILD=	yes

EXAMPLES=	sudoers .login .nsmbrc .mssmbrc nsmb.conf
SCRIPTS=	smb2nsmbrc mountsmb2

SUB_FILES=	pkg-message

NO_STAGE=	yes
do-install:
	@${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/,} ${PREFIX}/bin
.if !defined(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
	@${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/README.FreeBSD ${DOCSDIR}
.endif

.include <bsd.port.mk>
