You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.9 KiB

  1. From 1d11b2432b6e0f99b9f08c65b51292e1a2251975 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <zhouyousong@yunionyun.com>
  3. Date: Fri, 18 Oct 2019 11:29:03 +0000
  4. Subject: [PATCH] Skip building pfc
  5. It can cause build failure, see [1]
  6. [1] https://github.com/openwrt/packages/issues/10270
  7. ---
  8. Makefile | 15 +++------------
  9. 1 file changed, 3 insertions(+), 12 deletions(-)
  10. diff --git a/Makefile b/Makefile
  11. index 9927715..8a3eecd 100644
  12. --- a/Makefile
  13. +++ b/Makefile
  14. @@ -115,10 +115,10 @@ BINDIR?=$(DESTDIR)${PREFIX}/bin
  15. MANDIR?=$(DESTDIR)${PREFIX}/share/man
  16. -all: $(EXEC) pfc $(CONTROL_EXEC)
  17. +all: $(EXEC) $(CONTROL_EXEC)
  18. clean:
  19. - rm -f $(OBJS) $(EXEC) pfc.o pfc $(CONTROL_EXEC)
  20. + rm -f $(OBJS) $(EXEC) $(CONTROL_EXEC)
  21. $(EXEC): $(OBJS) $(HDRS)
  22. $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
  23. @@ -126,10 +126,6 @@ $(EXEC): $(OBJS) $(HDRS)
  24. $(CONTROL_EXEC): $(CONTROL_SRCS)
  25. $(CC) $(CFLAGS) $(LDFLAGS) $(CONTROL_SRCS) -o $@
  26. -pfc:
  27. - $(CC) $(CFLAGS) -c contrib/pfc.c
  28. - $(CC) $(LDFLAGS) -o pfc pfc.o -lpcap $(LDLIBS)
  29. -
  30. romfs:
  31. $(ROMFSINST) /bin/$(EXEC)
  32. @@ -142,7 +138,7 @@ packagingprep:
  33. sed -i "s/Version: .*/Version: ${XL2TPDBASEVERSION}/" packaging/*/*.spec
  34. sed -i "s/PKG_VERSION:=.*/PKG_VERSION:=${XL2TPDBASEVERSION}/" packaging/openwrt/Makefile
  35. -install: ${EXEC} pfc ${CONTROL_EXEC}
  36. +install: ${EXEC} ${CONTROL_EXEC}
  37. install -d -m 0755 ${SBINDIR}
  38. install -m 0755 $(EXEC) ${SBINDIR}/$(EXEC)
  39. install -d -m 0755 ${MANDIR}/man5
  40. @@ -151,11 +147,6 @@ install: ${EXEC} pfc ${CONTROL_EXEC}
  41. install -m 0644 doc/xl2tpd-control.8 ${MANDIR}/man8/
  42. install -m 0644 doc/xl2tpd.conf.5 doc/l2tp-secrets.5 \
  43. ${MANDIR}/man5/
  44. - # pfc
  45. - install -d -m 0755 ${BINDIR}
  46. - install -m 0755 pfc ${BINDIR}/pfc
  47. - install -d -m 0755 ${MANDIR}/man1
  48. - install -m 0644 contrib/pfc.1 ${MANDIR}/man1/
  49. # control exec
  50. install -d -m 0755 ${SBINDIR}
  51. install -m 0755 $(CONTROL_EXEC) ${SBINDIR}/$(CONTROL_EXEC)