2006-01-15 15:28:07 +01:00
|
|
|
$NetBSD: patch-aa,v 1.6 2006/01/15 14:28:07 seb Exp $
|
2002-05-04 02:03:29 +02:00
|
|
|
|
2006-01-15 15:28:07 +01:00
|
|
|
--- Makefile.orig 2005-11-10 23:21:55.000000000 +0000
|
2002-10-25 13:56:13 +02:00
|
|
|
+++ Makefile
|
2004-05-23 22:52:09 +02:00
|
|
|
@@ -1,18 +1,11 @@
|
2002-05-04 02:03:29 +02:00
|
|
|
-DESTDIR = /usr/local
|
|
|
|
-BINDIR = /usr/local/bin
|
2004-05-23 22:52:09 +02:00
|
|
|
-SHAREDIR = /usr/local/share/imapfilter
|
2002-05-04 02:03:29 +02:00
|
|
|
-MANDIR = /usr/local/man
|
2004-05-23 22:52:09 +02:00
|
|
|
-
|
|
|
|
-INCDIRS = -I/usr/local/include
|
|
|
|
-LIBDIRS = -L/usr/local/lib
|
|
|
|
-
|
|
|
|
-MYCFLAGS = -Wall -O
|
|
|
|
-MYLDFLAGS =
|
2002-12-01 16:38:34 +01:00
|
|
|
+DESTDIR = $(PREFIX)
|
|
|
|
+BINDIR = $(PREFIX)/bin
|
2004-05-23 22:52:09 +02:00
|
|
|
+SHAREDIR = $(PREFIX)/share/imapfilter
|
2006-01-15 15:28:07 +01:00
|
|
|
+MANDIR = $(PREFIX)/$(PKGMANDIR)
|
2002-05-04 02:03:29 +02:00
|
|
|
|
2004-05-23 22:52:09 +02:00
|
|
|
DEFS = -DMAKEFILE_SHAREDIR='"$(SHAREDIR)"'
|
|
|
|
|
|
|
|
-CFLAGS = $(MYCFLAGS) $(DEFS) $(INCDIRS)
|
|
|
|
-LDFLAGS = $(MYLDFLAGS) $(LIBDIRS)
|
2006-01-15 15:28:07 +01:00
|
|
|
+CFLAGS+= $(DEFS)
|
2004-05-23 22:52:09 +02:00
|
|
|
|
|
|
|
LIBS = -lm -llua -llualib -lssl -lcrypto
|
|
|
|
|
|
|
|
@@ -30,7 +23,7 @@ OBJ = auth.o buffer.o cert.o core.o file
|
|
|
|
all: $(BIN)
|
2002-05-04 02:03:29 +02:00
|
|
|
|
2004-05-23 22:52:09 +02:00
|
|
|
$(BIN): $(OBJ)
|
|
|
|
- $(CC) -o $(BIN) $(LDFLAGS) $(OBJ) $(LIBS)
|
|
|
|
+ $(CC) -o $(BIN) $(LDFLAGS) $(CFLAGS) $(OBJ) $(LIBS)
|
2002-05-04 02:03:29 +02:00
|
|
|
|
2004-05-23 22:52:09 +02:00
|
|
|
$(OBJ): imapfilter.h
|
2006-01-15 15:28:07 +01:00
|
|
|
buffer.o imap.o imapfilter.o namespace.o request.o response.o: buffer.h
|
|
|
|
@@ -42,19 +35,15 @@ auth.o cert.o imap.o imapfilter.o log.o
|
2003-08-23 22:52:57 +02:00
|
|
|
imapfilter.o: version.h
|
2002-05-04 02:03:29 +02:00
|
|
|
|
2004-05-23 22:52:09 +02:00
|
|
|
install: $(BIN)
|
2002-12-01 16:38:34 +01:00
|
|
|
- if test ! -d $(BINDIR); then mkdir -p $(BINDIR); fi
|
|
|
|
- cp -f $(BIN) $(BINDIR) && chmod 0755 $(BINDIR)/$(BIN)
|
2004-05-23 22:52:09 +02:00
|
|
|
- if test ! -d $(SHAREDIR); then mkdir -p $(SHAREDIR); fi
|
|
|
|
- cp -f $(INTERFACE_LUA) $(SHAREDIR) && \
|
|
|
|
- chmod 0644 $(SHAREDIR)/$(INTERFACE_LUA)
|
|
|
|
- cp -f $(AUXILIARY_LUA) $(SHAREDIR) && \
|
|
|
|
- chmod 0644 $(SHAREDIR)/$(AUXILIARY_LUA)
|
2002-12-01 16:38:34 +01:00
|
|
|
- if test ! -d $(MANDIR)/man1; then mkdir -p $(MANDIR)/man1; fi
|
2006-01-15 15:28:07 +01:00
|
|
|
- cp -f $(MAN_BIN) $(MANDIR)/man1 && \
|
|
|
|
- chmod 0644 $(MANDIR)/man1/$(MAN_BIN)
|
2002-12-01 16:38:34 +01:00
|
|
|
- if test ! -d $(MANDIR)/man5; then mkdir -p $(MANDIR)/man5; fi
|
2006-01-15 15:28:07 +01:00
|
|
|
- cp -f $(MAN_CONFIG) $(MANDIR)/man5 && \
|
|
|
|
- chmod 0644 $(MANDIR)/man5/$(MAN_CONFIG)
|
2003-08-23 22:52:57 +02:00
|
|
|
+ $(BSD_INSTALL_PROGRAM_DIR) $(BINDIR)
|
2004-05-23 22:52:09 +02:00
|
|
|
+ $(BSD_INSTALL_PROGRAM) $(BIN) $(BINDIR)/$(BIN)
|
|
|
|
+ $(BSD_INSTALL_DATA_DIR) $(SHAREDIR)
|
|
|
|
+ $(BSD_INSTALL_DATA) $(INTERFACE_LUA) $(SHAREDIR)/$(INTERFACE_LUA)
|
|
|
|
+ $(BSD_INSTALL_DATA) $(AUXILIARY_LUA) $(SHAREDIR)/$(AUXILIARY_LUA)
|
2003-08-23 22:52:57 +02:00
|
|
|
+ $(BSD_INSTALL_MAN_DIR) $(MANDIR)/man1
|
2004-05-23 22:52:09 +02:00
|
|
|
+ $(BSD_INSTALL_MAN) $(MAN_BIN) $(MANDIR)/man1/$(MAN_BIN)
|
2003-08-23 22:52:57 +02:00
|
|
|
+ $(BSD_INSTALL_MAN_DIR) $(MANDIR)/man5
|
2004-05-23 22:52:09 +02:00
|
|
|
+ $(BSD_INSTALL_MAN) $(MAN_CONFIG) $(MANDIR)/man5/$(MAN_CONFIG)
|
2002-05-04 02:03:29 +02:00
|
|
|
|
2003-08-23 22:52:57 +02:00
|
|
|
deinstall:
|
2004-05-23 22:52:09 +02:00
|
|
|
rm -f $(BINDIR)/$(BIN) $(SHAREDIR)/$(INTERFACE_LUA) \
|