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.

59 lines
1.8 KiB

  1. From f374c10c77d25863606566edcddaf02481f25032 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. --- a/Makefile
  11. +++ b/Makefile
  12. @@ -115,10 +115,10 @@ BINDIR?=$(DESTDIR)${PREFIX}/bin
  13. MANDIR?=$(DESTDIR)${PREFIX}/share/man
  14. -all: $(EXEC) pfc $(CONTROL_EXEC)
  15. +all: $(EXEC) $(CONTROL_EXEC)
  16. clean:
  17. - rm -f $(OBJS) $(EXEC) pfc.o pfc $(CONTROL_EXEC)
  18. + rm -f $(OBJS) $(EXEC) $(CONTROL_EXEC)
  19. $(EXEC): $(OBJS) $(HDRS)
  20. $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
  21. @@ -126,10 +126,6 @@ $(EXEC): $(OBJS) $(HDRS)
  22. $(CONTROL_EXEC): $(CONTROL_SRCS)
  23. $(CC) $(CFLAGS) $(LDFLAGS) $(CONTROL_SRCS) -o $@
  24. -pfc:
  25. - $(CC) $(CFLAGS) -c contrib/pfc.c
  26. - $(CC) $(LDFLAGS) -o pfc pfc.o -lpcap $(LDLIBS)
  27. -
  28. romfs:
  29. $(ROMFSINST) /bin/$(EXEC)
  30. @@ -142,7 +138,7 @@ packagingprep:
  31. sed -i "s/Version: .*/Version: ${XL2TPDBASEVERSION}/" packaging/*/*.spec
  32. sed -i "s/PKG_VERSION:=.*/PKG_VERSION:=${XL2TPDBASEVERSION}/" packaging/openwrt/Makefile
  33. -install: ${EXEC} pfc ${CONTROL_EXEC}
  34. +install: ${EXEC} ${CONTROL_EXEC}
  35. install -d -m 0755 ${SBINDIR}
  36. install -m 0755 $(EXEC) ${SBINDIR}/$(EXEC)
  37. install -d -m 0755 ${MANDIR}/man5
  38. @@ -151,11 +147,6 @@ install: ${EXEC} pfc ${CONTROL_EXEC}
  39. install -m 0644 doc/xl2tpd-control.8 ${MANDIR}/man8/
  40. install -m 0644 doc/xl2tpd.conf.5 doc/l2tp-secrets.5 \
  41. ${MANDIR}/man5/
  42. - # pfc
  43. - install -d -m 0755 ${BINDIR}
  44. - install -m 0755 pfc ${BINDIR}/pfc
  45. - install -d -m 0755 ${MANDIR}/man1
  46. - install -m 0644 contrib/pfc.1 ${MANDIR}/man1/
  47. # control exec
  48. install -d -m 0755 ${SBINDIR}
  49. install -m 0755 $(CONTROL_EXEC) ${SBINDIR}/$(CONTROL_EXEC)