pkgsrc-ng/sysutils/pfstat/patches/patch-pfstatd_Makefile
2013-09-26 17:14:40 +02:00

22 lines
562 B
Plaintext

$NetBSD: patch-pfstatd_Makefile,v 1.1 2012/05/27 20:46:14 dholland Exp $
Don't use .PATH: ${.CURDIR}/.. as it causes erratic behavior.
(For example, because ../pfstatd exists, make may latch onto that
as the path for "pfstatd" instead of the pfstatd executable.)
--- pfstatd/Makefile~ 2007-01-11 16:01:58.000000000 +0000
+++ pfstatd/Makefile
@@ -3,8 +3,11 @@
PROG= pfstatd
SRCS= pfstatd.c pf.c
MAN= pfstatd.8
-.PATH: ${.CURDIR}/..
+#.PATH: ${.CURDIR}/..
CFLAGS+= -Wall
CFLAGS+= -I${.CURDIR}/..
.include <bsd.prog.mk>
+
+pf.c: ../pf.c
+ cp ../pf.c pf.c