summaryrefslogtreecommitdiff
path: root/mail/poppassd/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/poppassd/files/patch-Makefile')
-rw-r--r--mail/poppassd/files/patch-Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/mail/poppassd/files/patch-Makefile b/mail/poppassd/files/patch-Makefile
new file mode 100644
index 000000000000..1ade77dca5b9
--- /dev/null
+++ b/mail/poppassd/files/patch-Makefile
@@ -0,0 +1,29 @@
+--- Makefile.orig Fri Dec 5 13:12:35 2003
++++ Makefile Fri Dec 5 13:13:13 2003
+@@ -1,14 +1,14 @@
+-BINDIR = /usr/etc
++BINDIR = ${PREFIX}/libexec
+ LIBDIR =
+-CFLAGS = -g
+-LFLAGS = -g
+-CCM = cc -Em
++CFLAGS?= -O
++LFLAGS?= ${LDFLAGS}
++CCM = $(CC) -Em
+
+ OBJECTS = poppassd.o
+-LIBS =
++LIBS = -lcrypt -lutil
+
+ poppassd: $(OBJECTS)
+- cc -o poppassd $(LFLAGS) $(OBJECTS) $(LIBS)
++ $(CC) -o poppassd $(LFLAGS) $(OBJECTS) $(LIBS)
+
+ install: poppassd
+ install -g bin -o root -m 500 poppassd $(BINDIR)
+@@ -17,4 +17,4 @@
+ rm -f *.o *~* core Makefile.new Makefile.bak poppassd
+
+ poppassd.o: poppassd.c
+- cc -c $(CFLAGS) poppassd.c
++ $(CC) -c $(CFLAGS) poppassd.c