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
|
2005-01-08 21:15:38 +01:00
|
|
|
PORTVERSION= 2.0.2
|
2004-10-12 04:18:36 +02: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
|
|
|
|
2004-10-12 04:09:27 +02:00
|
|
|
LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
|
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
|
2004-10-12 04:09:27 +02:00
|
|
|
USE_ICONV= yes
|
|
|
|
USE_RC_SUBR= yes
|
2001-06-09 00:15:44 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tcp-wrappers \
|
2004-10-12 04:09:27 +02:00
|
|
|
--with-pkgconfdir=${PREFIX}/etc \
|
|
|
|
--with-libiconv=${LOCALBASE}
|
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
|
2004-10-12 04:09:27 +02:00
|
|
|
CONFIGURE_ARGS+= --with-bdb=${LOCALBASE}
|
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
|
2004-10-12 04:09:27 +02:00
|
|
|
USE_LIBTOOL_VER=15
|
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 \
|
2005-01-08 21:15:38 +01:00
|
|
|
apple_rm.1 uniconv.1 asip-status.pl.1 cnid_index.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
|
2004-10-12 04:09:27 +02:00
|
|
|
MAN8= afpd.8 atalkd.8 cnid_dbd.8 cnid_metad.8 papd.8 papstatus.8 \
|
|
|
|
psf.8 timelord.8
|
2001-05-18 22:00:30 +02:00
|
|
|
|
2004-10-12 04:09:27 +02:00
|
|
|
CONFLICTS= bigloo-2.* cap-6.0.* tct-1.* netatalk-1*
|
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
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} " 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} ""
|
|
|
|
@${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:
|
2004-10-12 04:09:27 +02:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${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 \
|
2004-10-12 04:09:27 +02:00
|
|
|
${PREFIX}/etc/rc.d/netatalk.sh
|
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>
|