ports/net/rinetd/files/patch-Makefile
Michael Gmelin 9e46f71b46 net/rinetd: Downgrade to 0.62, take maintainership
This fixes massive performance issues, but also loses IPv6
support.

Updates will come back, once regressions have been corrected.

PR:		281873
2024-12-09 16:01:57 +01:00

22 lines
528 B
Text

--- Makefile.orig 2024-12-09 14:53:18 UTC
+++ Makefile
@@ -1,9 +1,14 @@
-CFLAGS=-DLINUX -g
+CFLAGS+=-I. -DLINUX
-rinetd: rinetd.o match.o
- gcc rinetd.o match.o -o rinetd
+all: rinetd
+rinetd: rinetd.o match.o getopt.o
+ ${CC} ${CFLAGS} rinetd.o match.o getopt.o -o rinetd
+
+getopt.o:
+ ${CC} ${CFLAGS} -c getopt.c
+
install: rinetd
- install -m 700 rinetd /usr/sbin
- install -m 644 rinetd.8 /usr/man/man8
+ install -s -m 755 rinetd ${DESTDIR}${PREFIX}/sbin
+ install -m 644 rinetd.8 ${DESTDIR}${PREFIX}/share/man/man8