2020-03-20 16:44:21 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.68 2020/03/20 16:44:26 naddy Exp $
|
2015-07-01 08:19:39 +00:00
|
|
|
|
|
|
|
PORTROACH= limit:^2
|
2002-02-21 12:34:57 +00:00
|
|
|
|
2012-04-11 18:39:13 +00:00
|
|
|
COMMENT= AFP file and print services for IP networks
|
|
|
|
|
2018-04-27 17:22:27 +00:00
|
|
|
DISTNAME= netatalk-2.2.6
|
2006-09-22 05:54:33 +00:00
|
|
|
CATEGORIES= net
|
2012-04-11 18:39:13 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netatalk/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2006-09-22 05:54:33 +00:00
|
|
|
HOMEPAGE= http://netatalk.sourceforge.net/
|
|
|
|
|
2012-04-11 18:39:13 +00:00
|
|
|
# GPLv2+ and BSD or similar
|
2019-07-12 20:48:23 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2006-09-22 05:54:33 +00:00
|
|
|
|
2017-11-16 18:39:25 +00:00
|
|
|
WANTLIB += c crypto db gcrypt gpg-error iconv intl rpcsvc
|
2006-09-22 05:54:33 +00:00
|
|
|
|
2012-04-11 18:39:13 +00:00
|
|
|
LIB_DEPENDS= databases/db/v4 \
|
|
|
|
security/libgcrypt
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= --disable-cups \
|
|
|
|
--disable-overwrite \
|
2014-03-23 21:05:25 +00:00
|
|
|
--disable-tcp-wrappers \
|
2012-04-11 18:39:13 +00:00
|
|
|
--with-ssl-dir=/usr \
|
|
|
|
--with-uams-path=${PREFIX}/lib/netatalk/uams \
|
2012-10-10 08:11:09 +00:00
|
|
|
--without-ldap \
|
|
|
|
--without-pam
|
2012-04-11 18:39:13 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
FLAVORS= avahi
|
|
|
|
FLAVOR?=
|
2006-09-22 05:54:33 +00:00
|
|
|
|
2013-02-09 14:49:50 +00:00
|
|
|
.if ${FLAVOR:Mavahi}
|
2017-11-16 18:39:25 +00:00
|
|
|
WANTLIB+= avahi-client avahi-common dbus-1 pthread
|
2012-04-11 18:39:13 +00:00
|
|
|
LIB_DEPENDS+= net/avahi
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-zeroconf
|
|
|
|
.endif
|
2006-09-22 05:54:33 +00:00
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST= Yes
|
2006-09-22 05:54:33 +00:00
|
|
|
|
|
|
|
post-build:
|
2012-04-11 18:39:13 +00:00
|
|
|
@cd ${WRKSRC}/config; make afpd.conf AppleVolumes.default
|
2006-09-22 05:54:33 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/netatalk
|
2012-04-11 18:39:13 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/README.AppleTalk \
|
|
|
|
${PREFIX}/share/doc/netatalk
|
2012-06-15 10:34:46 +00:00
|
|
|
mv ${WRKINST}/etc/netatalk ${PREFIX}/share/examples/
|
2020-03-20 16:44:21 +00:00
|
|
|
@find ${PREFIX}/lib/netatalk/uams \( -name '*.a' -o -name '*.la' \) \
|
|
|
|
-delete
|
2006-09-22 05:54:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|