summaryrefslogtreecommitdiff
path: root/net/netatalk-asun/Makefile
diff options
context:
space:
mode:
authorStefan Bethke <stb@FreeBSD.org>1999-03-22 21:34:23 +0000
committerStefan Bethke <stb@FreeBSD.org>1999-03-22 21:34:23 +0000
commit40be034042c2693d69aefc8c07e814c221d3b908 (patch)
treed33f0274fa67abfbf08d79fb4a2149e3a50280ad /net/netatalk-asun/Makefile
parentmake port perl5 aware (diff)
Update to asun-2.1.3
Notes
Notes: svn path=/head/; revision=17354
Diffstat (limited to 'net/netatalk-asun/Makefile')
-rw-r--r--net/netatalk-asun/Makefile36
1 files changed, 33 insertions, 3 deletions
diff --git a/net/netatalk-asun/Makefile b/net/netatalk-asun/Makefile
index 0438c028266b..0dcc5256064a 100644
--- a/net/netatalk-asun/Makefile
+++ b/net/netatalk-asun/Makefile
@@ -3,11 +3,11 @@
# Date created: 07 Sep 1998
# Whom: stb@freebsd.org
#
-# $Id: Makefile,v 1.3 1998/11/29 23:46:01 asami Exp $
+# $Id: Makefile,v 1.4 1999/02/25 01:57:43 asami Exp $
#
-DISTNAME= netatalk-1.4b2+asun2.1.0
-PKGNAME= netatalk-1.4b2+asun-2.1.0
+DISTNAME= netatalk-1.4b2+asun2.1.3
+PKGNAME= netatalk-1.4b2+asun-2.1.3
CATEGORIES= net print
MASTER_SITES= ftp://ftp.u.washington.edu/public/asun/
@@ -15,6 +15,36 @@ MAINTAINER= stb@freebsd.org
LIB_DEPENDS= wrap.7:${PORTSDIR}/security/tcp_wrapper
+MAKE_ARGS= INSTALL="${INSTALL} ${COPY}"
+
+.include <bsd.port.pre.mk>
+
+.if defined(USE_SENDFILE) && ${OSVERSION} >= 310000
+MAKE_ARGS+= -DUSE_SENDFILE
+.endif
+
+.if defined(USE_CNID)
+## Support for fixed DirIDs; probably broken.
+BUILD_DEPENDS= ${PREFIX}/lib/libdb.a:${PORTSDIR}/databases/db
+MAKE_ARGS+= -DUSE_CNID
+.endif
+
+pre-build:
+## sendfile(2) support seems to be broken in this version, but go ahead an try
+## to fix it!
+.if defined(USE_SENDFILE) && ${OSVERSION} < 310000
+ @echo "*** sendfile(2) support is available only with FreeBSD 3.1-RELEASE"
+ @echo " or newer. This port probably won't compile."
+.endif
+.if ${OSVERSION} >= 310000
+.if defined(USE_SENDFILE)
+ @echo "*** sendfile(2) support is experimental and will likely cause"
+ @echo " undesired behaviour!"
+.else
+# @echo "*** Use -DUSE_SENDFILE to enable the experimental sendfile(2) support."
+.endif
+.endif
+
MAN1= aecho.1 getzones.1 megatron.1 nbp.1 pap.1 psorder.1
MAN3= atalk_aton.3 nbp_name.3
MAN4= atalk.4