summaryrefslogtreecommitdiff
path: root/net/netatalk1/Makefile
blob: a62bd1edafa6b9423fc2e3ee43e87811dbeaceaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# $NetBSD: Makefile,v 1.15 2008/01/18 05:08:46 tnn Exp $

DISTNAME=	netatalk-1.6.4a
PKGREVISION=	5
CATEGORIES=	net print
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=netatalk/}

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://sourceforge.net/projects/netatalk/
COMMENT=	Netatalk appletalk file and print services

DEPENDS=	rc>=1.5:../../shells/rc

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

.for f in ${RCD_SCRIPTS}
RCD_SCRIPT_SRC.$f=	# avoid automatic handling
.endfor

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

SUBST_CLASSES+=		rc
SUBST_FILES.rc=		${WRKSRC}/bin/afile/acleandir.rc
SUBST_SED.rc+=		-e 's,@PREFIX@,${PREFIX:Q},g'
SUBST_STAGE.rc=		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"