summaryrefslogtreecommitdiff
path: root/net/irrd/Makefile
blob: 14763690eea020c120083a897d46f625bbb351cb (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
# $NetBSD: Makefile,v 1.31 2005/07/16 01:19:15 jlam Exp $

DISTNAME=		irrd2.2.3
PKGNAME=		irrd-2.2.3
CATEGORIES=		net
MASTER_SITES=		http://www.irrd.net/ \
			ftp://ftp.merit.edu/radb/irrd/ \
			ftp://ftp.merit.edu/radb/irrd/old_releases/
EXTRACT_SUFX=		.tgz

MAINTAINER=		kim@tac.nyc.ny.us
HOMEPAGE=		http://www.irrd.net/
COMMENT=		Internet Routing Registry Daemon

DEPENDS+=		gnupg-[0-9]*:../../security/gnupg
DEPENDS+=		wget-[0-9]*:../../net/wget

USE_TOOLS+=		automake perl:run

WRKSRC=			${WRKDIR}/${DISTNAME}/src

#PTHREAD_AUTO_VARS=	yes
#PTHREAD_OPTS+=		require

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--disable-thread

BUILD_DEFS+=		USE_INET6

CPPFLAGS+=		-I${LOCALBASE}/include
CFLAGS+=		-g

IRRD_CACHER=		irrdcacher ripe2rpsl

pre-configure:
	cd ${WRKSRC} && aclocal && autoheader && autoconf

post-build:
	@cd ${WRKSRC}/programs/irrdcacher ; \
	set -x ; \
	for i in ${IRRD_CACHER} ; \
	do \
	    ${MV} $$i $$i.bak ; \
	    ${SED} -e 's,/usr/bin/perl,${PERL5},' < $$i.bak > $$i ; \
	done

post-install:
	@cd ${WRKSRC}/programs/IRRd && ${MAKE} install-man
	@cd ${WRKSRC}/programs/irrdcacher ; \
	set -x ; \
	for i in ${IRRD_CACHER} ; \
	do \
	    ${INSTALL_SCRIPT} $$i ${PREFIX}/sbin ; \
	done

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

.if defined(USE_INET6) && ${USE_INET6} == "YES"
# default
# CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

#.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"