aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2006-08-05 18:10:34 +0800
committererwin <erwin@FreeBSD.org>2006-08-05 18:10:34 +0800
commita8c4e72c1690afb281427207a61c622fdbdf9b44 (patch)
treec15fe64ac253727aa99acd6b80f13315c3eae6c0 /security
parentbcfa1dd7324357b34a3e0604f625ff2dc211e3d8 (diff)
downloadfreebsd-ports-gnome-a8c4e72c1690afb281427207a61c622fdbdf9b44.tar.gz
freebsd-ports-gnome-a8c4e72c1690afb281427207a61c622fdbdf9b44.tar.zst
freebsd-ports-gnome-a8c4e72c1690afb281427207a61c622fdbdf9b44.zip
Fix build after DESTDIR update.
Submitted by: gabor
Diffstat (limited to 'security')
-rw-r--r--security/openssh/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/security/openssh/Makefile b/security/openssh/Makefile
index 96b7d722779c..8eb9563458a5 100644
--- a/security/openssh/Makefile
+++ b/security/openssh/Makefile
@@ -56,7 +56,7 @@ PAM=no
CRYPTOLIBS= -L${OPENSSLLIB} -lcrypto
# Here, MANDIR is concetenated to DESTDIR which all forms the man install dir...
-MAKE_ENV+= DESTDIR=${PREFIX} MANDIR=/man/man CRYPTOLIBS="${CRYPTOLIBS}"
+MAKE_ENV+= LIBDATADIR=${PREFIX}/libdata MANDIR=${MANPREFIX}/man/man CRYPTOLIBS="${CRYPTOLIBS}"
.if ${OSVERSION} < 400014
MAKE_ENV+= COMPAT_GETADDRINFO=yes
@@ -102,6 +102,16 @@ post-extract:
@${CP} ${FILESDIR}/${i} ${WRKSRC}/
.endfor
+post-patch:
+.for i in scp sftp ssh ssh-add ssh-agent ssh-keygen ssh-keyscan
+ @${REINPLACE_CMD} "s|BINDIR= /bin|BINDIR= ${PREFIX}/bin|" ${WRKSRC}/${i}/Makefile
+.endfor
+.for i in sftp-server ssh-keysign
+ @${REINPLACE_CMD} "s|BINDIR= /libexec|BINDIR= ${PREFIX}/libexec|" ${WRKSRC}/${i}/Makefile
+.endfor
+ @${REINPLACE_CMD} "s|BINDIR= /sbin|BINDIR= ${PREFIX}/sbin|" ${WRKSRC}/sshd/Makefile
+ @${REINPLACE_CMD} "s|DATADIR= /libdata/ssh|DATADIR= ${PREFIX}/libdata/ssh|" ${WRKSRC}/scard/Makefile
+
pre-configure:
.for i in ${MODIFY:S/pathnames.h//} ${MAN1:S/slogin.1//} ${MAN5} ${MAN8}
@${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.sed