summaryrefslogtreecommitdiff
path: root/net/pim6sd/patches/patch-ab
blob: 5b972fb70ce37a6145aa2cb86a10651ee9281c57 (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
$NetBSD: patch-ab,v 1.4 2006/02/24 20:08:32 joerg Exp $

--- Makefile.orig	2003-09-23 11:09:10.000000000 +0000
+++ Makefile
@@ -89,17 +89,7 @@ SRCS=	mld6.c mld6_proto.c\
 	cfparse.y cftoken.l
 CLEANFILES+= lex.yy.c y.tab.c y.tab.h cfparse.h
 
-.if (${OPSYS} == "BSD/OS")
-CC=	gcc
-.endif
-.if (${OPSYS} != "NetBSD")
-CFLAGS+=-Wall
-.endif
-.if (${OPSYS} != "NetBSD")
-CFLAGS+=-DINET6 -DPIM -DIOCTL_OK_ON_RAW_SOCKET
-.else
 CPPFLAGS+=-DINET6 -DPIM -DIOCTL_OK_ON_RAW_SOCKET
-.endif
 CFLAGS+=-g
 .if exists(/usr/local/v6/lib/libinet6.a)
 LDADD+=	-L${.OBJDIR}/../libinet6 -L${.OBJDIR}/../libinet6/obj \
@@ -109,24 +99,18 @@ DPADD+=	${.OBJDIR}/../libinet6/libinet6.
 	/usr/local/v6/lib/libinet6.a
 .endif
 
-.if (${OPSYS} == "FreeBSD")
-SRCS+= y.tab.h
-.endif
-.if (${OPSYS} == "NetBSD")
 YFLAGS+=-d
-.endif
 
 CLEANFILES+=	y.tab.h cfparse.h
 
-.if (${OPSYS} == "NetBSD") || (${OPSYS} == "OpenBSD")
 MAN=	pim6sd.8 pim6sd.conf.5
-.else
-MAN5=	pim6sd.conf.5
-MAN8=	pim6sd.8
-.endif
 
 realinstall:
 	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
-		${INSTALLFLAGS} pim6sd ${.CURDIR}/pim6stat ${DESTDIR}${BINDIR}
+		${INSTALLFLAGS} ${.CURDIR}/pim6stat ${DESTDIR}${BINDIR}
 
 .include <bsd.prog.mk>
+
+.y.c:
+	${YACC.y} ${.IMPSRC}
+	mv y.tab.c ${.TARGET}