summaryrefslogtreecommitdiff
path: root/net/netatalk1/Makefile
blob: 04e1c8df5a925fafb11ed6b28f5b71479fe5a477 (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
# $NetBSD: Makefile,v 1.4 2005/04/11 21:46:51 tv Exp $

DISTNAME=	netatalk-1.6.2
PKGREVISION=	2
CATEGORIES=	net print
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=netatalk/} \
		http://me.in-berlin.de/~jroger/netatalk/

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

GNU_CONFIGURE=	YES
USE_GNU_TOOLS+=	make
USE_PERL5=	YES
USE_LIBTOOL=		YES

USE_PKGINSTALL=		YES
INSTALL_EXTRA_TMPL+=	${.CURDIR}/INSTALL

CONFLICTS=	netatalk-asun-[0-9]* netatalk-umich-[0-9]*

RCD_SCRIPTS=	atalkd afpd papd timelord

.include "../../mk/bsd.prefs.mk"

CONFIGURE_ARGS+=	--enable-netbsd \
			--enable-timelord \
			--with-did=last \
			--with-tcp-wrappers \
			--sbindir=${PREFIX}/libexec/netatalk \
			--sysconfdir=${PKG_SYSCONFDIR} \
			--localstatedir=${VARBASE}/netatalk \
			--with-nls-dir=${PREFIX}/share/netatalk/nls \
			--with-uams-path=${PREFIX}/libexec/netatalk/uams

#CONFIGURE_ARGS+=	--with-flock-locks	# broken
#CONFIGURE_ARGS+=	--with-bdb=${PREFIX}	# still some known issues

post-patch:
	mv ${WRKSRC}/etc/psf/etc2ps.sh ${WRKSRC}/etc/psf/etc2ps.sh.tmp
	${SED} -e "s,^\(DVIPS=\)\(/usr/local/tex\)\(/bin\),\1${PREFIX}\3," \
		< ${WRKSRC}/etc/psf/etc2ps.sh.tmp > ${WRKSRC}/etc/psf/etc2ps.sh

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} )
	${INSTALL_DATA} ${WRKSRC}/config/${FILE} \
					${PREFIX}/share/examples/netatalk/
.endfor

#.include "../../databases/db3/buildlink3.mk"
.include "../../devel/rx/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"