naddy d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00

57 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.68 2020/03/20 16:44:26 naddy Exp $
PORTROACH= limit:^2
COMMENT= AFP file and print services for IP networks
DISTNAME= netatalk-2.2.6
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netatalk/}
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://netatalk.sourceforge.net/
# GPLv2+ and BSD or similar
PERMIT_PACKAGE= Yes
WANTLIB += c crypto db gcrypt gpg-error iconv intl rpcsvc
LIB_DEPENDS= databases/db/v4 \
security/libgcrypt
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --disable-cups \
--disable-overwrite \
--disable-tcp-wrappers \
--with-ssl-dir=/usr \
--with-uams-path=${PREFIX}/lib/netatalk/uams \
--without-ldap \
--without-pam
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= avahi
FLAVOR?=
.if ${FLAVOR:Mavahi}
WANTLIB+= avahi-client avahi-common dbus-1 pthread
LIB_DEPENDS+= net/avahi
.else
CONFIGURE_ARGS+= --disable-zeroconf
.endif
NO_TEST= Yes
post-build:
@cd ${WRKSRC}/config; make afpd.conf AppleVolumes.default
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/netatalk
${INSTALL_DATA} ${WRKSRC}/doc/README.AppleTalk \
${PREFIX}/share/doc/netatalk
mv ${WRKINST}/etc/netatalk ${PREFIX}/share/examples/
@find ${PREFIX}/lib/netatalk/uams \( -name '*.a' -o -name '*.la' \) \
-delete
.include <bsd.port.mk>