#! /bin/sh -e
## build.dpatch by <luther@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Makefiles, configure scripts and other build stuff adapted for
## DP: debian package creation
if [ $# -ne 1 ]; then
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
exit 1
fi
case "$1" in
-patch) patch -f --no-backup-if-mismatch -p1 < $0;;
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
*)
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
exit 1;;
esac
exit 0
@DPATCH@
--- spamoracle-1.4.orig/Makefile
+++ spamoracle-1.4/Makefile
@@ -1,16 +1,16 @@
### Configuration section
# The laguages you're interested in, besides English
-LANGUAGES=-DFRENCH #-DSPANISH -DITALIAN -DGERMAN -DPORTUGUESE -DJAPANESE
+LANGUAGES=-DFRENCH -DSPANISH -DITALIAN -DGERMAN -DPORTUGUESE -DJAPANESE
# How to invoke the C preprocessor
CPP=gcc -E -P $(LANGUAGES) -
# Where to install the binary
-BINDIR=/usr/local/bin
+BINDIR=/usr/bin
# Where to install the man pages
-MANDIR=/usr/local/man
+MANDIR=/usr/share/man
### End of configuration section
@@ -30,9 +30,14 @@
all: spamoracle
install:
- cp spamoracle $(BINDIR)/spamoracle
- cp spamoracle.1 $(MANDIR)/man1/spamoracle.1
- cp spamoracle.conf.5 $(MANDIR)/man5/spamoracle.conf.5
+ cp spamoracle $(DESTDIR)$(BINDIR)/spamoracle
+ cp spamoracle.1 $(DESTDIR)$(MANDIR)/man1/spamoracle.1
+ cp spamoracle.conf.5 $(DESTDIR)$(MANDIR)/man5/spamoracle.conf.5
+
+install.byte:
+ cp spamoracle.byte $(DESTDIR)$(BINDIR)/spamoracle
+ cp spamoracle.1 $(DESTDIR)$(MANDIR)/man1/spamoracle.1
+ cp spamoracle.conf.5 $(DESTDIR)$(MANDIR)/man5/spamoracle.conf.5
spamoracle: $(NATOBJS)
$(OCAMLOPT) -o spamoracle $(NATLIBS) $(NATOBJS)