b0ac4851e2
Do not build a package because of kernel dependance. Give maintainership to bp@freebsd.org as he knows about new versions first. Check OS version and prohibit build if it is not supported.
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# New ports collection makefile for: smbfs
|
|
# Date created: 2th Dec 2000
|
|
# Whom: Jaedoc Lee <tokky@fdns.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= smbfs
|
|
PORTVERSION= 1.3.5
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.butya.kz/pub/smbfs/
|
|
|
|
MAINTAINER= bp@freebsd.org
|
|
|
|
NO_PACKAGE= "Depends on kernel"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 400000
|
|
BROKEN= "OS versions prior to 400000 is not supported"
|
|
.endif
|
|
|
|
.if defined(WITH_ICONV)
|
|
pre-fetch:
|
|
@${ECHO}
|
|
@${ECHO} "Using iconv library"
|
|
@${ECHO}
|
|
|
|
LIB_DEPENDS= iconv.2:${PORTSDIR}/converters/iconv
|
|
|
|
post-configure:
|
|
@${SED} -e 's/# USE_ICONV=yes/USE_ICONV=yes/g' < ${WRKSRC}/config.mk.in > ${WRKSRC}/config.mk
|
|
.else
|
|
pre-fetch:
|
|
@${ECHO}
|
|
@${ECHO} "Not Using iconv library"
|
|
@${ECHO}
|
|
@${ECHO} "You may set iconv library (make WITH_ICONV=yes)"
|
|
@${ECHO} "to compile smbfs with the supplied iconv."
|
|
@${ECHO}
|
|
|
|
post-configure:
|
|
@${CP} ${WRKSRC}/config.mk.in ${WRKSRC}/config.mk
|
|
.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>
|