pkgsrc/net/netatalk1/Makefile
taca 15cc2e2c8e netatalk1 package overhaul
- Adapt buildlink framework and fix compile problem with des.h header file.
- Proper dependency with openssl.
- Use subst framework for replacing path.
- Fix minor pkglint warning.

Bump PKGREVISION.
2006-08-17 13:57:23 +00:00

67 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2006/08/17 13:57:23 taca Exp $
DISTNAME= netatalk-1.6.4a
PKGREVISION= 3
CATEGORIES= net print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netatalk/} \
http://me.in-berlin.de/~jroger/netatalk/
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/netatalk/
COMMENT= Netatalk appletalk file and print services
GNU_CONFIGURE= YES
USE_TOOLS+= gmake perl:run
USE_LIBTOOL= YES
USE_OLD_DES_API=YES
BUILDLINK_TRANSFORM+= l:db-4.2:db4
CONFLICTS= netatalk-asun-[0-9]* netatalk-umich-[0-9]*
RCD_SCRIPTS= atalkd afpd papd timelord
BUILD_DEFS+= VARBASE
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --enable-netbsd \
--enable-timelord \
--with-did=last \
--with-tcp-wrappers \
--sbindir=${PREFIX}/libexec/netatalk \
--sysconfdir=${PKG_SYSCONFDIR:Q} \
--localstatedir=${VARBASE}/netatalk \
--with-nls-dir=${PREFIX}/share/netatalk/nls \
--with-uams-path=${PREFIX}/libexec/netatalk/uams \
--with-ssl-dir=${BUILDLINK_PREFIX.openssl}
#CONFIGURE_ARGS+= --with-flock-locks # broken
#CONFIGURE_ARGS+= --with-bdb=${PREFIX} # still some known issues
.for cf in AppleVolumes.default AppleVolumes.system afpd.conf \
atalkd.conf netatalk.conf papd.conf
CONF_FILES+= ${PREFIX}/share/examples/netatalk/${cf} ${PKG_SYSCONFDIR}/${cf}
.endfor
SUBST_CLASSES+= paths
SUBST_FILES.paths+= ${WRKSRC}/etc/psf/etc2ps.sh
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX:Q},g'
SUBST_STAGE.paths= pre-configure
.include "options.mk"
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/libexec/psffilters
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/netatalk
.for file in atalkd.conf netatalk.conf papd.conf AppleVolumes.default \
AppleVolumes.system afpd.conf
( cd ${WRKSRC}/config; ${MAKE_PROGRAM} ${file} || ${TRUE} )
${INSTALL_DATA} ${WRKSRC}/config/${file} \
${PREFIX}/share/examples/netatalk/
.endfor
.include "../../security/openssl/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../devel/rx/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"