1997-07-28 00:23:11 +02:00
|
|
|
# Ports collection makefile for: netatalk
|
|
|
|
# Date created: 23 Jul 1997
|
|
|
|
# Whom: stb
|
|
|
|
#
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1997-07-28 00:23:11 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= netatalk
|
2003-12-07 19:37:56 +01:00
|
|
|
PORTVERSION= 1.6.4
|
2004-02-04 06:10:27 +01:00
|
|
|
PORTREVISION= 1
|
2002-01-05 00:24:07 +01:00
|
|
|
PORTEPOCH= 1
|
1997-07-28 00:23:11 +02:00
|
|
|
CATEGORIES= net print
|
2002-01-27 02:18:36 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-05-18 22:00:30 +02:00
|
|
|
MASTER_SITE_SUBDIR= netatalk
|
1997-07-28 00:23:11 +02:00
|
|
|
|
2002-04-06 01:26:36 +02:00
|
|
|
MAINTAINER= marcus@FreeBSD.org
|
2003-02-23 06:53:09 +01:00
|
|
|
COMMENT= File and print server for AppleTalk networks
|
1998-01-21 16:01:05 +01:00
|
|
|
|
2003-01-01 20:17:12 +01:00
|
|
|
.if !defined(WITHOUT_CNID)
|
2002-08-22 21:13:46 +02:00
|
|
|
LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3
|
2001-09-04 19:48:22 +02:00
|
|
|
.endif
|
2001-10-11 13:37:58 +02:00
|
|
|
.if defined(WITH_SRVLOC)
|
2002-06-12 17:45:57 +02:00
|
|
|
LIB_DEPENDS+= slp.1:${PORTSDIR}/net/openslp
|
2001-10-11 13:37:58 +02:00
|
|
|
.endif
|
2000-09-17 14:06:38 +02:00
|
|
|
|
2002-04-01 03:52:51 +02:00
|
|
|
USE_BZIP2= yes
|
2001-06-09 00:15:44 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tcp-wrappers \
|
2002-09-09 17:04:11 +02:00
|
|
|
--with-pkgconfdir=${PREFIX}/etc
|
2001-09-04 19:48:22 +02:00
|
|
|
.if defined(WITH_PAM)
|
2002-09-09 18:48:10 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pam=/etc/pam.d
|
2003-06-20 06:12:12 +02:00
|
|
|
PLIST_SUB+= NETATALKPAM=""
|
2001-05-18 22:00:30 +02:00
|
|
|
.else
|
2002-09-09 06:20:18 +02:00
|
|
|
CONFIGURE_ARGS+= --without-pam
|
2003-06-20 06:12:12 +02:00
|
|
|
PLIST_SUB+= NETATALKPAM="@comment "
|
2001-05-18 22:00:30 +02:00
|
|
|
.endif
|
2001-10-11 13:37:58 +02:00
|
|
|
.if defined(WITH_SRVLOC)
|
|
|
|
# Enable Service Location Protocol support. This allows MacOS X < 10.1 to
|
|
|
|
# pickup afpd servers in the network.
|
2002-09-09 06:20:18 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-srvloc=${LOCALBASE}
|
2001-10-11 13:37:58 +02:00
|
|
|
.endif
|
2003-01-06 00:42:00 +01:00
|
|
|
.if defined(WITHOUT_CNID)
|
2003-01-01 20:17:12 +01:00
|
|
|
# Configure old LAST DID support. By default, the new CNID persistent DID
|
|
|
|
# calculation scheme is used. However, if you wish to revert back to the old
|
|
|
|
# 1.5.x default scheme, specify WITHOUT_CNID
|
|
|
|
CONFIGURE_ARGS+= --with-did=last
|
2003-06-20 06:12:12 +02:00
|
|
|
PLIST_SUB+= NETATALKCNID="@comment "
|
2001-09-04 19:48:22 +02:00
|
|
|
.else
|
|
|
|
# This method of DID calculation is not persistent, but has been tested to
|
2002-02-26 23:07:11 +01:00
|
|
|
# work with MacOS X (10.0.3-10.1.3) as well as MacOS 7-9.2.2.
|
2003-01-01 20:17:12 +01:00
|
|
|
CONFIGURE_ARGS+= --with-did=cnid \
|
2003-02-23 06:53:09 +01:00
|
|
|
--with-bdb=${LOCALBASE}
|
2003-06-20 06:12:12 +02:00
|
|
|
PLIST_SUB+= NETATALKCNID=""
|
2001-09-04 19:48:22 +02:00
|
|
|
.endif
|
2002-10-05 20:08:55 +02:00
|
|
|
.if defined (WITH_TIMELORD)
|
|
|
|
CONFIGURE_ARGS+= --enable-timelord
|
2003-06-20 06:12:12 +02:00
|
|
|
PLIST_SUB+= TIMELORD=""
|
2002-10-05 20:08:55 +02:00
|
|
|
.else
|
2003-06-20 06:12:12 +02:00
|
|
|
PLIST_SUB+= TIMELORD="@comment "
|
2002-10-05 20:08:55 +02:00
|
|
|
.endif
|
2003-02-23 06:53:09 +01:00
|
|
|
.if defined (WITH_MANGLING) && !defined (WITHOUT_CNID)
|
|
|
|
# Enable long file name mangling support (requires CNID).
|
|
|
|
CONFIGURE_ARGS+= --with-mangling
|
|
|
|
.endif
|
2001-12-19 14:48:31 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-12-07 19:37:56 +01:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2001-05-18 22:00:30 +02:00
|
|
|
USE_GMAKE= yes
|
2002-06-30 08:36:44 +02:00
|
|
|
USE_PERL5= yes
|
2001-05-18 22:00:30 +02:00
|
|
|
FILES= AppleVolumes.default AppleVolumes.system afpd.conf \
|
2001-09-04 19:48:22 +02:00
|
|
|
atalkd.conf papd.conf
|
2001-05-18 22:00:30 +02:00
|
|
|
LINKS= unbin unhex unsingle hqx2bin single2bin macbinary \
|
|
|
|
binheader nadheader
|
2001-05-19 18:37:07 +02:00
|
|
|
MAN1= achfile.1 aecho.1 afile.1 afppasswd.1 getzones.1 \
|
2001-05-19 11:30:05 +02:00
|
|
|
megatron.1 nbp.1 pap.1 psorder.1 hqx2bin.1 macbinary.1 \
|
|
|
|
nbplkup.1 nbprgstr.1 nbpunrgstr.1 papstatus.1 \
|
2001-09-04 19:48:22 +02:00
|
|
|
single2bin.1 unbin.1 unhex.1 unsingle.1 acleandir.1 \
|
2002-01-05 00:24:07 +01:00
|
|
|
netatalk-config.1 timeout.1 apple_cp.1 apple_mv.1 \
|
|
|
|
apple_rm.1
|
1998-09-09 03:31:06 +02:00
|
|
|
MAN3= atalk_aton.3 nbp_name.3
|
|
|
|
MAN4= atalk.4
|
2001-05-18 22:00:30 +02:00
|
|
|
MAN5= AppleVolumes.default.5 afpd.conf.5 atalkd.conf.5 \
|
|
|
|
netatalk.conf.5 papd.conf.5
|
2003-01-01 20:17:12 +01:00
|
|
|
MAN8= afpd.8 atalkd.8 papd.8 papstatus.8 psf.8 timelord.8
|
2001-05-18 22:00:30 +02:00
|
|
|
|
2004-06-06 07:46:43 +02:00
|
|
|
CONFLICTS= bigloo-2.* cap-6.0.* tct-1.* netatalk-2*
|
2003-10-11 08:18:53 +02:00
|
|
|
|
2003-02-23 06:53:09 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Netatalk has the following tunable options:"
|
|
|
|
@${ECHO_MSG} " WITHOUT_CNID=yes Turns off CNID persistent DID support"
|
|
|
|
@${ECHO_MSG} " WITH_SRVLOC=yes Enable Service Location Protocol support"
|
|
|
|
@${ECHO_MSG} " WITH_PAM=yes Enable PAM support"
|
2003-03-23 21:39:38 +01:00
|
|
|
@${ECHO_MSG} " WITH_TIMELORD=yes Enable Timelord network time service"
|
2003-02-23 06:53:09 +01:00
|
|
|
@${ECHO_MSG} " WITH_MANGLING=yes Enable long file name mangling support (requires CNID)"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "See Netatalk's Makefile for more details on some of these options."
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
2001-05-18 22:00:30 +02:00
|
|
|
post-extract:
|
|
|
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/netatalk.sh \
|
|
|
|
> ${WRKSRC}/netatalk.sh
|
2001-09-10 14:08:07 +02:00
|
|
|
|
1998-09-09 03:31:06 +02:00
|
|
|
post-install:
|
2001-09-04 19:48:22 +02:00
|
|
|
@${RM} -f ${PREFIX}/bin/nu ${PREFIX}/bin/lp2pap.sh \
|
2001-10-11 13:37:58 +02:00
|
|
|
${PREFIX}/bin/test_parse_mtab \
|
2001-09-04 19:48:22 +02:00
|
|
|
${PREFIX}/bin/afpd-mtab.pl ${PREFIX}/etc/netatalk.conf.dist
|
2001-10-18 21:28:15 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/netatalk.sh \
|
|
|
|
${PREFIX}/etc/rc.d/netatalk.sh.sample
|
2001-05-18 22:00:30 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/macusers/macusers \
|
|
|
|
${PREFIX}/bin/macusers
|
|
|
|
.for i in ${FILES}
|
|
|
|
[ -f ${PREFIX}/etc/${i} ] || \
|
|
|
|
${INSTALL_DATA} -c ${PREFIX}/etc/${i}.dist ${PREFIX}/etc/${i}
|
|
|
|
.endfor
|
|
|
|
.for i in ${LINKS}
|
2001-05-19 11:30:05 +02:00
|
|
|
( cd ${PREFIX}/bin && ${LN} -sf megatron ${i} )
|
2001-05-18 22:00:30 +02:00
|
|
|
.endfor
|
2001-09-04 19:48:22 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
1997-07-28 00:23:11 +02:00
|
|
|
.include <bsd.port.mk>
|