linbpq/debian/patches/makefile

22 lines
568 B
Makefile
Raw Normal View History

2023-07-18 01:26:17 +01:00
--- a/makefile
+++ b/makefile
2024-11-05 21:46:27 +00:00
@@ -33,11 +33,14 @@
2023-07-18 01:26:17 +01:00
linbpq: $(OBJS)
2024-11-05 21:46:27 +00:00
gcc $(OBJS) -Xlinker -Map=output.map -l:libminiupnpc.a -lrt -lm -lz $(LDFLAGS) -lpthread -lconfig -lpcap -o linbpq
2023-07-18 01:26:17 +01:00
- sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq
2024-11-05 21:46:27 +00:00
+ # sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq
2023-07-18 01:26:17 +01:00
-include *.d
2024-11-05 21:46:27 +00:00
-clean :
2023-07-18 01:26:17 +01:00
- rm *.d
- rm linbpq $(OBJS)
2024-11-05 21:46:27 +00:00
+install:
+ install -b -m 755 -D -d debian/linbpq/usr/sbin
+ install -b -m 755 -s -p linbpq debian/linbpq/usr/sbin
+clean:
2024-03-26 20:24:27 +00:00
+ $(RM) *.d
+ $(RM) linbpq $(OBJS)