]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CONTRIB: move halog to admin/
authorWilly Tarreau <w@1wt.eu>
Fri, 2 Apr 2021 12:45:06 +0000 (14:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Apr 2021 15:48:42 +0000 (17:48 +0200)
halog is an admin tool, so let's move it to admin/ as well. The makefile
was updated to build from the new directory.

.github/workflows/contrib.yml
.gitignore
Makefile
admin/halog/Makefile [moved from contrib/halog/Makefile with 100% similarity]
admin/halog/fgets2.c [moved from contrib/halog/fgets2.c with 100% similarity]
admin/halog/halog.c [moved from contrib/halog/halog.c with 100% similarity]

index d84c99da65ced0fad4d25885113a2d799abb8912..53f6025ca1a927647afaf0e50fd72def109587ed 100644 (file)
@@ -10,9 +10,9 @@ jobs:
 
     steps:
     - uses: actions/checkout@v2
-    - name: Compile contrib/halog/halog
+    - name: Compile admin/halog/halog
       run: |
-        make contrib/halog/halog
+        make admin/halog/halog
     - name: Compile dev/flags/flags
       run: |
         make dev/flags/flags
index 0e2f78a6ec5b4d68391636e22f02b7bb39affa97..236d12595171eb420237befe72362932bdf15597 100644 (file)
@@ -20,6 +20,7 @@
 !/VERDATE
 !/VERSION
 !/contrib
+!/admin
 !/dev
 !/doc
 !/ebtree
 *.orig
 *.bak
 # And reject some specific files
-/contrib/halog/halog
-/contrib/ip6range/ip6range
-/contrib/iprange/iprange
-/contrib/systemd/haproxy.service
+/admin/halog/halog
+/admin/iprange/ip6range
+/admin/iprange/iprange
+/admin/systemd/haproxy.service
 /contrib/spoa_example/spoa
 dev/base64/base64rev-gen
 dev/flags/flags
index 53cfc9d9706e16fc5804846e48ce7d646889b470..29d75fe1873cbe1a826d46d0ca1196c211f2234b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -926,8 +926,8 @@ objsize: haproxy
 %.o:   %.c $(DEP)
        $(cmd_CC) $(COPTS) -c -o $@ $<
 
-contrib/halog/halog:
-       $(Q)$(MAKE) -C contrib/halog halog CC='$(cmd_CC)' OPTIMIZE='$(COPTS)'
+admin/halog/halog:
+       $(Q)$(MAKE) -C admin/halog halog CC='$(cmd_CC)' OPTIMIZE='$(COPTS)'
 
 dev/flags/flags: dev/flags/flags.o
        $(cmd_LD) $(LDFLAGS) -o $@ $^ $(LDOPTS)
@@ -998,8 +998,8 @@ clean:
        $(Q)rm -f haproxy-$(VERSION).tar.gz haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION).tar.gz
        $(Q)rm -f haproxy-$(VERSION) haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION) nohup.out gmon.out
        $(Q)rm -f {admin,dev,contrib}/*/*.[oas] {admin,dev,contrib}/*/*/*.[oas] {admin,dev,contrib}/*/*/*/*.[oas]
-       $(Q)rm -f admin/iprange/iprange admin/iprange/ip6range
-       $(Q)rm -f contrib/halog/halog dev/flags/flags dev/poll/poll dev/tcploop/tcploop
+       $(Q)rm -f admin/iprange/iprange admin/iprange/ip6range admin/halog/halog
+       $(Q)rm -f dev/flags/flags dev/poll/poll dev/tcploop/tcploop
        $(Q)rm -f dev/hpack/decode dev/hpack/gen-enc dev/hpack/gen-rht
 
 tags:
similarity index 100%
rename from contrib/halog/Makefile
rename to admin/halog/Makefile
similarity index 100%
rename from contrib/halog/fgets2.c
rename to admin/halog/fgets2.c
similarity index 100%
rename from contrib/halog/halog.c
rename to admin/halog/halog.c