Add optional Zeroconf (Bonjour) support and enable it by default.

Requested by:	Jan Glaubitz <jan@glaubitz.org>
This commit is contained in:
Joe Marcus Clarke 2011-07-31 08:09:45 +00:00
parent b328e37f76
commit ba3206da99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=278614
2 changed files with 21 additions and 15 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= netatalk PORTNAME= netatalk
PORTVERSION= 2.2.0 PORTVERSION= 2.2.0
PORTREVISION= 1
PORTEPOCH= 1 PORTEPOCH= 1
CATEGORIES= net print CATEGORIES= net print
MASTER_SITES= SF/netatalk/netatalk/2.2 MASTER_SITES= SF/netatalk/netatalk/2.2
@ -23,7 +24,10 @@ USE_ICONV= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_GMAKE= yes USE_GMAKE= yes
USE_PERL5= yes USE_PERL5= yes
WANT_GNOME= yes
USE_RC_SUBR= netatalk USE_RC_SUBR= netatalk
CPPFLAGS= -I${LOCALBASE}/include
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --with-tcp-wrappers \ CONFIGURE_ARGS+= --with-tcp-wrappers \
--with-pkgconfdir=${PREFIX}/etc \ --with-pkgconfdir=${PREFIX}/etc \
@ -36,7 +40,8 @@ OPTIONS= APPLETALK "Enable AppleTalk protocol support" on \
SRVLOC "Enable Service Location Protocol support" off \ SRVLOC "Enable Service Location Protocol support" off \
PAM "Enable PAM support" off \ PAM "Enable PAM support" off \
TIMELORD "Enable Timelord network time service" off \ TIMELORD "Enable Timelord network time service" off \
KRB5 "Enable Kerberos V UAM" off KRB5 "Enable Kerberos V UAM" off \
ZEROCONF "Enable Zeroconf (Bonjour) support" on
FILES= AppleVolumes.default AppleVolumes.system afpd.conf \ FILES= AppleVolumes.default AppleVolumes.system afpd.conf \
atalkd.conf papd.conf netatalk.conf atalkd.conf papd.conf netatalk.conf
@ -98,6 +103,12 @@ PLIST_SUB+= TIMELORD=""
PLIST_SUB+= TIMELORD="@comment " PLIST_SUB+= TIMELORD="@comment "
.endif .endif
.if defined (WITH_ZEROCONF)
CONFIGURE_ARGS+= --enable-zeroconf=${LOCALBASE}
LIB_DEPENDS+= avahi-client.3:${PORTSDIR}/net/avahi-app
USE_GNOME+= pkgconfig
.endif
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|%%DB_NAME%%|${BDB_INCLUDE_DIR:T}| ; \ @${REINPLACE_CMD} -e 's|%%DB_NAME%%|${BDB_INCLUDE_DIR:T}| ; \
s|%%DB_LIB%%|-l${BDB_LIB_NAME}|g' \ s|%%DB_LIB%%|-l${BDB_LIB_NAME}|g' \

View file

@ -1,19 +1,14 @@
--- configure.orig 2011-07-27 07:59:28.000000000 -0400 --- configure.orig 2011-07-27 07:59:28.000000000 -0400
+++ configure 2011-07-30 18:23:04.000000000 -0400 +++ configure 2011-07-31 04:02:35.000000000 -0400
@@ -20316,10 +20316,10 @@ fi @@ -27039,6 +27039,7 @@ fi
savedcflags="$CFLAGS"
savedldflags="$LDFLAGS"
+ saved_CPPFLAGS="$CPPFLAGS"
ICONV_CFLAGS=""
ICONV_LIBS=""
# This can be used to rebuild libtool when needed @@ -31357,7 +31358,7 @@ if test "x$bdb_required" = "xyes"; then
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+LIBTOOL_DEPS=" /usr/local/share/libtool/config/ltmain.sh"
# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LIBTOOL='$(SHELL) /usr/local/bin/libtool'
# Prevent multiple expansion
@@ -31357,7 +31357,7 @@ if test "x$bdb_required" = "xyes"; then
trybdbdir="" trybdbdir=""
dobdbsearch=yes dobdbsearch=yes
bdb_search_dirs="/usr/local /usr" bdb_search_dirs="/usr/local /usr"
@ -22,7 +17,7 @@
bdbfound=no bdbfound=no
savedcflags="$CFLAGS" savedcflags="$CFLAGS"
@@ -33387,7 +33387,7 @@ rm -f core conftest.err conftest.$ac_obj @@ -33387,7 +33388,7 @@ rm -f core conftest.err conftest.$ac_obj
fi fi
{ echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_ACL_GET_PERM_NP" >&5 { echo "$as_me:$LINENO: result: $netatalk_cv_HAVE_ACL_GET_PERM_NP" >&5
echo "${ECHO_T}$netatalk_cv_HAVE_ACL_GET_PERM_NP" >&6; } echo "${ECHO_T}$netatalk_cv_HAVE_ACL_GET_PERM_NP" >&6; }