From e7fc178e5b50ab8b2265c6041db16e1b79bc1c68 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 1 Dec 2025 17:08:30 +0100 Subject: [PATCH] add deprecation note to makefile, rm old unit test configs --- .travis.yml | 24 ------------------------ Makefile | 17 +++++++++++------ appveyor.yml | 34 ---------------------------------- 3 files changed, 11 insertions(+), 64 deletions(-) delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 52f79e2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: c -os: - - linux -before_install: - - sudo apt-get update -qq - - sudo apt-get install dnsutils -compiler: - - clang - - gcc -script: - - make - - sudo make install - - sudo udpxd -l 127.0.0.1:53 -t 8.8.8.8:53 & - - dig +nocmd +noall +answer google.de a @127.0.0.1 - - sudo killall udpxd - -# -# ipv6 not supported anymore since Travis-ci moved to -# GCE: https://blog.travis-ci.com/2015-11-27-moving-to-a-more-elastic-future -# whatever this might have to do with "future".. However, Appveyor still -# supports it, so I suspect, disabling it here is probably ok. -# -# - dig +nocmd +noall +answer google.de a @::1 -# - sudo udpxd -l [::1]:53 -t [2001:4860:4860::8888]:53 & diff --git a/Makefile b/Makefile index 3f38dc2..dd45d7c 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,8 @@ # # You can contact me by mail: . +.PHONY: all clean man install deprecation + # warning: do not set -O to 2, see TODO CFLAGS = -Wall -Wextra -Werror -O1 -g LDFLAGS= @@ -28,22 +30,25 @@ UID = root GID = 0 MAN = udpxd.1 -all: $(DST) +all: deprecation $(DST) -$(DST): $(OBJS) +$(DST): deprecation $(OBJS) $(CC) $(OBJS) -o $(DST) -%.o: %.c +%.o: deprecation %.c $(CC) -c $(CFLAGS) $*.c -o $*.o -clean: +clean: deprecation rm -rf *.o $(DST) build .cache -man: +man: deprecation pod2man udpxd.pod > udpxd.1 -install: $(DST) +install: deprecation $(DST) install -d -o $(UID) -g $(GID) $(PREFIX)/sbin install -d -o $(UID) -g $(GID) $(PREFIX)/man/man1 install -o $(UID) -g $(GID) -m 555 $(DST) $(PREFIX)/sbin/ install -o $(UID) -g $(GID) -m 444 $(MAN) $(PREFIX)/man/man1/ + +deprecation: + @echo "+++ DEPRECATION NOTE: Use meson & ninja to build please! +++" diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 1eb9cb0..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,34 +0,0 @@ -environment: - global: - CYG_ROOT: C:\cygwin - CYG_BASH: C:\cygwin\bin\bash - CYG_MIRROR: http://cygwin.mirror.constant.com - CYG_CACHE: C:\cygwin\var\cache\setup - -os: unstable - -cache: - - '%CYG_CACHE%' - -platform: - - Win32 - -test: off - -init: - - git config --global core.autocrlf input - -install: - - ps: 'Start-FileDownload "http://cygwin.com/setup-x86.exe" -FileName "setup-x86.exe"' - - cmd: 'setup-x86.exe --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages bind,netcat > NUL 2>&1' - - cmd: '%CYG_BASH% -lc "cygcheck -dc cygwin"' - -build_script: - - cmd: '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0