2eb593c94d
patch from Oleg Safiullin <form@vs.itam.nsc.ru>
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
--- Makefile.orig Thu Jul 31 18:00:30 1997
|
|
+++ Makefile Mon Apr 27 14:48:12 1998
|
|
@@ -1,30 +1,29 @@
|
|
#$Id: patch-aa,v 1.2 1998/04/28 17:23:10 marc Exp $
|
|
|
|
-BASENAME= /usr
|
|
+BASENAME= $(PREFIX)
|
|
|
|
GCC_WARNINGS = -O2 -pedantic -Wreturn-type -Wunused -Wformat \
|
|
-Wpointer-arith -Wconversion -Waggregate-return \
|
|
#-Wimplicit -Wshadow #-Wuninitialized
|
|
|
|
-CFLAGS = -O #$(GCC_WARNINGS)
|
|
-LDFLAGS =
|
|
+CFLAGS = -O -DMAILSPOOLDIR=\"/var/mail/\" #$(GCC_WARNINGS)
|
|
+LDFLAGS +=
|
|
|
|
O=o
|
|
|
|
-BINDIR=$(BASENAME)/sbin
|
|
+BINDIR=$(BASENAME)/libexec
|
|
MANDIR=$(BASENAME)/man/man8
|
|
|
|
-INSTALL=install -o root -m
|
|
-BINPERM=02755 -s -g mail
|
|
-REGPERM=0644
|
|
+INSTALL=install -o bin -m
|
|
+BINPERM=0555 -s -g bin
|
|
+REGPERM=0444 -g bin
|
|
|
|
#
|
|
# When compiling without APOP support, the md5 library can be omitted.
|
|
|
|
MD5_OBJ=md5/md5c.$(O)
|
|
|
|
-OBJS=cucipop.$(O) authenticate.$(O) atotime.$(O) locking.$(O) xcreat.$(O) \
|
|
- $(MD5_OBJ)
|
|
+OBJS=cucipop.$(O) authenticate.$(O) atotime.$(O) locking.$(O) xcreat.$(O)
|
|
|
|
all: cucipop
|
|
|
|
@@ -44,7 +43,8 @@
|
|
|
|
install: cucipop cucipop.8
|
|
$(INSTALL) $(BINPERM) cucipop $(BINDIR)
|
|
- $(INSTALL) $(REGPERM) cucipop.8 $(MANDIR)
|
|
+ sed -e 's,!!PREFIX!!,$(PREFIX),g' cucipop.8 > cucipop.8-out
|
|
+ $(INSTALL) $(REGPERM) cucipop.8-out $(MANDIR)/cucipop.8
|
|
ls -l $(BINDIR)/cucipop $(MANDIR)/cucipop.8
|
|
|
|
deinstall:
|