9df0e6660d
Patch the project Makefile to direct manpages into ${PKGMANDIR} instead of ${PREFIX}/man.
50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
$NetBSD: patch-aa,v 1.4 2017/08/19 00:20:13 jlam Exp $
|
|
|
|
--- Makefile.orig 2017-08-13 00:33:32.000000000 +0000
|
|
+++ Makefile
|
|
@@ -28,7 +28,8 @@ RCONFIG=-DRELEASESTATE=\"Alpha1\"
|
|
# -DLOGDEBUG LOGGING DEBUG
|
|
#
|
|
OPTIONS= -DSYSLOG -DISSUE -DSUBJALIAS -DADDVERSION \
|
|
- -DSYSLOG_FACILITY=LOG_LOCAL4 -DCCMAIL -DUSEMIMEKIT
|
|
+ -DSYSLOG_FACILITY=LOG_LOCAL4 -DCCMAIL
|
|
+#OPTIONS+= -DMIMEKIT
|
|
|
|
#
|
|
# DEFAULT parameters -- YOU SHOULD EDIT THESE
|
|
@@ -71,7 +72,7 @@ OPTIONS= -DSYSLOG -DISSUE -DSUBJALIAS -D
|
|
#
|
|
# External Library -- you should change this if mimekit is in different loc.
|
|
#
|
|
-MIMELIB = -L/usr/local/lib -lmimekit
|
|
+#MIMELIB = -L/usr/local/lib -lmimekit
|
|
|
|
#
|
|
DESTDIR=
|
|
@@ -84,9 +85,9 @@ MAKE= make
|
|
CC= ${PURIFY} ${PURIFYOPTS} gcc
|
|
#-D__USE_FIXED_PROTOTYPES__
|
|
|
|
-PREFIX= /usr/local
|
|
+PREFIX?= /usr/pkg
|
|
WHERE= ${PREFIX}/libexec
|
|
-MANDIR= ${PREFIX}/man
|
|
+MANDIR= ${PREFIX}/${PKGMANDIR}
|
|
MANSEC= 1
|
|
|
|
# Install as
|
|
@@ -140,11 +141,11 @@ xarchive: ${AOBJS}
|
|
@size xarchive
|
|
|
|
install: xdistribute distribute.1 xarchive
|
|
- ${INSTALL} -s -o ${OWNER} -g ${GROUP} -m 511 xdistribute \
|
|
+ ${BSD_INSTALL_PROGRAM} xdistribute \
|
|
${DESTDIR}${WHERE}/distribute
|
|
- ${INSTALL} -s -o ${OWNER} -g ${GROUP} -m 511 xarchive \
|
|
+ ${BSD_INSTALL_PROGRAM} xarchive \
|
|
${DESTDIR}${WHERE}/archive
|
|
- ${INSTALL} -m 444 distribute.1 \
|
|
+ ${BSD_INSTALL_MAN} distribute.1 \
|
|
${DESTDIR}${MANDIR}/man${MANSEC}/distribute.${MANSEC}
|
|
|
|
testinst: xdistribute xarchive
|