openbsd-ports/mail/bulk_mailer/patches/patch-Makefile_in
xsa 5a18e69555 - respect CC and CFLAGS
- use BSD_INSTALL_* in patch-Makefile_in
- sync patches while there
okay kevlo@.
2004-06-25 04:46:34 +00:00

32 lines
1002 B
Plaintext

$OpenBSD: patch-Makefile_in,v 1.1 2004/06/25 04:46:34 xsa Exp $
--- Makefile.in.orig Wed May 24 13:53:11 2000
+++ Makefile.in Fri Jun 25 00:44:11 2004
@@ -1,10 +1,12 @@
-DEFINES = @DEFS@
+DEFINES = @DEFS@ -DDEFAULT_DOMAIN=1 -DPIPECOMMAND='"/usr/sbin/sendmail -bs %s"'
LIBS = @LIBS@
-CFLAGS = $(DEFINES)
+CFLAGS += $(DEFINES)
FILES = bulk_mailer.README INSTALL bulk_mailer.c patchlevel.h Makefile.in
+all: bulk_mailer
+
bulk_mailer: bulk_mailer.o
$(CC) $(CFLAGS) -o bulk_mailer bulk_mailer.o $(LIBS)
@@ -12,7 +14,11 @@ bulk_mailer.o: bulk_mailer.c patchlevel.
$(CC) -c $(CFLAGS) bulk_mailer.c
install: bulk_mailer
- cp bulk_mailer /usr/local/bin
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/doc/bulk_mailer
+ ${BSD_INSTALL_PROGRAM} bulk_mailer ${PREFIX}/bin
+ ${BSD_INSTALL_DATA} bulk_mailer.README ${PREFIX}/share/doc/bulk_mailer
+ ${BSD_INSTALL_DATA} bulk_mailer.ps ${PREFIX}/share/doc/bulk_mailer
+ ${BSD_INSTALL_MAN} bulk_mailer.1 ${PREFIX}/man/man1
clean:
rm -f bulk_mailer *.o