summaryrefslogtreecommitdiffstats
path: root/net/smbfs/Makefile
blob: 79052266d19db983aba980bb3686984445a85308 (plain)
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
51
52
# New ports collection makefile for:	smbfs
# Date created:				2th Dec 2000
# Whom:					Jaedoc Lee <tokky@fdns.org>
#
# $FreeBSD$
#

PORTNAME=	smbfs
PORTVERSION=	1.3.6
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.butya.kz/pub/smbfs/

MAINTAINER=	bp@freebsd.org

NO_PACKAGE=     "Depends on kernel"

HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=configure

PLIST_SUB=	KMODDIR=${KMODDIR}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400000
BROKEN=		"OS versions prior to 400000 is not supported"
.endif

.if defined(WITH_ICONV)
LIB_DEPENDS= iconv.2:${PORTSDIR}/converters/iconv
CONFIGURE_ARGS+= -DWITH_ICONV
.endif

.if defined(SMP_SUPPORT)
CONFIGURE_ARGS+= -DSMP_SUPPORT
.endif

pre-fetch:
.if !defined(WITH_ICONV)
	@${ECHO_MSG} "NOTE: To enable support for various charsets "
	@${ECHO_MSG} "add \"WITH_ICONV=yes\" to argument of make."
.endif
.if !defined(SMP_SUPPORT)
	@${ECHO_MSG} "NOTE: SMP suppport can be enabled by adding "
	@${ECHO_MSG} "\"SMB_SUPPORT=yes\" to argument of make."
.endif

post-install:
	cd ${WRKSRC} && make makedev
	@${INSTALL_DATA} ${WRKSRC}/examples/dot.nsmbrc ${LOCALBASE}/etc/nsmb.conf.sample
	@${INSTALL_SCRIPT} ${WRKSRC}/examples/smbfs.sh.sample ${LOCALBASE}/etc/rc.d/smbfs.sh.sample

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud