1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- fix DESTDIR for config stage

This commit is contained in:
Dirk Meyer 2007-08-06 10:39:24 +00:00
parent ee3634f598
commit 4cf26145e8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197208
3 changed files with 22 additions and 22 deletions

View File

@ -2,7 +2,7 @@
# Date created: 31 May 2002
# Whom: dinoex
#
# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.35 2007-08-04 11:37:23 gabor Exp $
# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.openssl.mk,v 1.36 2007-08-06 10:39:24 dinoex Exp $
#
# Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk
#
@ -62,7 +62,7 @@ WITH_OPENSSL_BASE=yes
OPENSSLBASE= /usr
OPENSSLDIR= /etc/ssl
.if !exists(/usr/lib/libcrypto.so)
.if !exists(${DESTDIR}/usr/lib/libcrypto.so)
check-depends::
@${ECHO_CMD} "Dependency error: this port requires the OpenSSL library, which is part of"
@${ECHO_CMD} "the FreeBSD crypto distribution but not installed on your"
@ -121,7 +121,7 @@ OPENSSL_SHLIBVER?= 3
.if !defined(OPENSSL_PORT) && \
exists(${LOCALBASE}/lib/libcrypto.so)
# find installed port and use it for dependency
PKG_DBDIR?= /var/db/pkg
PKG_DBDIR?= ${DESTDIR}/var/db/pkg
OPENSSL_INSTALLED!= grep -l -r "^lib/libssl.so." "${PKG_DBDIR}" | \
while read contents; do \
sslprefix=`grep "^@cwd " "$${contents}" | ${HEAD} -n 1`; \

View File

@ -123,7 +123,7 @@ CONFLICTS2!= ${MAKE_PKGNAMES} | grep -v "${PORTNAME}${PKGNAMESUFFIX}-8."
CONFLICTS+= ${CONFLICTS2}
# Build site.config.m4
.if exists(/etc/mail/mailer.conf)
.if exists(${DESTDIR}/etc/mail/mailer.conf)
SITE+= ${FILESDIR}/site.config.m4
.endif
.if !defined(SENDMAIL_WITHOUT_IPV6)
@ -143,7 +143,7 @@ USE_OPENSSL= yes
.endif
# install directly if no mailwrapper support
.if ! exists(/etc/mail/mailer.conf)
.if ! exists(${DESTDIR}/etc/mail/mailer.conf)
PREFIX?= /usr
MANPREFIX?= /usr/share
PLIST_SUB+= ETCPORT="@comment "
@ -290,7 +290,7 @@ post-install:
${LN} -sf libmilter.so.${MILTER_SOVER} ${PREFIX}/lib/libmilter.so
.endif
.endif
.if exists(/etc/mail/mailer.conf)
.if exists(${DESTDIR}/etc/mail/mailer.conf)
${INSTALL_SCRIPT} ${WRKSRC}/sm-client.sh \
${LOCALBASE}/etc/rc.d/sm-client.sh.sample
${INSTALL_SCRIPT} ${WRKSRC}/sendmail.sh \
@ -332,7 +332,7 @@ post-install:
${INSTALL_DATA} ${FILESDIR}/CYRUS_LOOKUP ${DOCSDIR}/CYRUS_LOOKUP
.endif
.endif
.if exists(/etc/mail/mailer.conf)
.if exists(${DESTDIR}/etc/mail/mailer.conf)
@${CAT} ${PKGMESSAGE}
mailer.base:
@ -343,9 +343,9 @@ mailer.base:
-e "s=^newaliases[ ]*/.*$$=newaliases ${BASEMAIL}=" \
-e "s=^hoststat[ ]*/.*$$=hoststat ${BASEMAIL}=" \
-e "s=^purgestat[ ]*/.*$$=purgestat ${BASEMAIL}=" \
/etc/mail/mailer.conf > /etc/mail/mailer.conf.new
${MV} /etc/mail/mailer.conf.new \
/etc/mail/mailer.conf
${DESTDIR}/etc/mail/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
${MV} ${DESTDIR}/etc/mail/mailer.conf.new \
${DESTDIR}/etc/mail/mailer.conf
mailer.conf:
@${SED} \
@ -355,21 +355,21 @@ mailer.conf:
-e "s=^newaliases[ ]*/.*$$=newaliases ${SENDMAIL}=" \
-e "s=^hoststat[ ]*/.*$$=hoststat ${SENDMAIL}=" \
-e "s=^purgestat[ ]*/.*$$=purgestat ${SENDMAIL}=" \
/etc/mail/mailer.conf > /etc/mail/mailer.conf.new
${MV} /etc/mail/mailer.conf.new \
/etc/mail/mailer.conf
${DESTDIR}/etc/mail/mailer.conf > ${DESTDIR}/etc/mail/mailer.conf.new
${MV} ${DESTDIR}/etc/mail/mailer.conf.new \
${DESTDIR}/etc/mail/mailer.conf
.endif
# create sumbit.cf on older systems
#
submit.cf: /etc/mail/submit.cf
submit.cf: ${DESTDIR}/etc/mail/submit.cf
/etc/mail/submit.mc:
${DESTDIR}/etc/mail/submit.mc:
${INSTALL_DATA} ${PREFIX}/share/sendmail/cf/cf/submit.mc \
/etc/mail/submit.mc
${DESTDIR}/etc/mail/submit.mc
/etc/mail/submit.cf: /etc/mail/submit.mc
@( cd /etc/mail && ${MAKE} \
${DESTDIR}/etc/mail/submit.cf: ${DESTDIR}/etc/mail/submit.mc
@( cd ${DESTDIR}/etc/mail && ${MAKE} \
SENDMAIL_CF_DIR=${PREFIX}/share/sendmail/cf \
SENDMAIL_MC=submit )
@ -394,7 +394,7 @@ tls-install:
help:
@${ECHO_CMD} "# additional targets:"
@${ECHO_CMD} "#"
@${ECHO_CMD} "# configure /etc/mail/mailer.conf"
@${ECHO_CMD} "# configure ${DESTDIR}/etc/mail/mailer.conf"
@${ECHO_CMD} "# for sendmail from ports"
@${ECHO_CMD} "make mailer.conf"
@${ECHO_CMD} "# for sendmail in the base"
@ -420,7 +420,7 @@ SITE+= ${FILESDIR}/site.config.m4.tls
SITE+= ${FILESDIR}/site.config.m4.local
.endif
.if exists(/etc/mail/mailer.conf) && ${PREFIX} == "/usr"
.if exists(${DESTDIR}/etc/mail/mailer.conf) && ${PREFIX} == "/usr"
pre-everything::
@${ECHO_CMD} "#"
@${ECHO_CMD} "# You can't override the base sendmail this way."

View File

@ -886,7 +886,7 @@ MLINKS+= \
.include <bsd.port.pre.mk>
OPENSSL_BASE_SONAME!= readlink /usr/lib/libcrypto.so || true
OPENSSL_BASE_SONAME!= readlink ${DESTDIR}/usr/lib/libcrypto.so || true
OPENSSL_SHLIBVER_BASE= ${OPENSSL_BASE_SONAME:E}
OPENSSL_BASE_SOPATH= ${OPENSSL_BASE_SONAME:H}
@ -937,7 +937,7 @@ pre-everything::
@${FALSE}
.endif
.if exists(/usr/lib/libcrypto.so.3) && ${OPENSSL_SHLIBVER} != 3
.if exists(${DESTDIR}/usr/lib/libcrypto.so.3) && ${OPENSSL_SHLIBVER} != 3
pre-everything::
@${ECHO_CMD} "#"
@${ECHO_CMD} "# this ports conflicts with your base system"