Milis Linux 2.0 Git Deposu
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.

20 lines
737B

  1. find -name "Makefile.linux" -exec sed -i "{}" \
  2. -e "s;CFLAGS\\s*=\(.*\);CFLAGS = ${CFLAGS} \1;" \;
  3. # Custom LDFLAGS for chat, pppoe-discovery and pppdump
  4. sed -i chat/Makefile.linux \
  5. -e "s;-o chat ;${LDFLAGS} -o chat ;"
  6. sed -i pppd/plugins/rp-pppoe/Makefile.linux \
  7. -e "s;-o pppoe-discovery ;${LDFLAGS} -o pppoe-discovery ;"
  8. sed -i pppdump/Makefile.linux \
  9. -e "s;-o pppdump ;${LDFLAGS} -o pppdump ;"
  10. # Enable active filter
  11. sed -i "s:^#FILTER=y:FILTER=y:" pppd/Makefile.linux
  12. # Enable ipv6 support
  13. sed -i "s:^#HAVE_INET6=y:HAVE_INET6=y:" pppd/Makefile.linux
  14. # Enable Microsoft Proprietary Callback Control Protocol
  15. sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux
  16. ./configure ${confopt}
  17. make COPTS="${CFLAGS} ${LDFLAGS}" ${MAKEJOBS}