mirror of
https://codeberg.org/scip/udpxd.git
synced 2025-12-16 19:40:58 +01:00
add deprecation note to makefile, rm old unit test configs
This commit is contained in:
24
.travis.yml
24
.travis.yml
@@ -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 &
|
||||
17
Makefile
17
Makefile
@@ -18,6 +18,8 @@
|
||||
#
|
||||
# You can contact me by mail: <tom AT vondein DOT org>.
|
||||
|
||||
.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! +++"
|
||||
|
||||
34
appveyor.yml
34
appveyor.yml
@@ -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</dev/null; make"'
|
||||
- cmd: '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; cygstart --hide ./udpxd -l 127.0.0.1:53 -t 8.8.8.8:53"'
|
||||
- cmd: '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; cygstart --hide ./udpxd -l [::1]:53 -t 8.8.8.8:53"'
|
||||
- cmd: '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; dig www.google.de soa @127.0.0.1"'
|
||||
- cmd: '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; dig www.google.de soa @::1"'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user