mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
Update MASTER_SITES, fix build on -current, fix distfile extensions.
PR: 26444 Submitted by: maintainer
This commit is contained in:
parent
76fa7f79dd
commit
47fd0683ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41536
@ -7,26 +7,27 @@
|
|||||||
|
|
||||||
PORTNAME= apache_fp
|
PORTNAME= apache_fp
|
||||||
PORTVERSION= 1.3.19
|
PORTVERSION= 1.3.19
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= http://www.apache.org/dist/ \
|
MASTER_SITES= http://www.apache.org/dist/httpd/ \
|
||||||
ftp://ftp.microsoft.com/products/frontpage/ \
|
ftp://ftp.microsoft.com/products/frontpage/ \
|
||||||
ftp://www.westbend.net/Mirrors/ftp.microsoft.com/Products/frontpage/ \
|
ftp://www.westbend.net/Mirrors/ftp.microsoft.com/Products/frontpage/ \
|
||||||
http://www.freebsd.org/gifs/ \
|
http://www.freebsd.org/gifs/ \
|
||||||
http://officeupdate.microsoft.com/frontpage/wpp/serk/ \
|
http://officeupdate.microsoft.com/frontpage/wpp/serk/ \
|
||||||
ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apache/dist/ \
|
ftp://ftp.ccs.neu.edu/net/mirrors/ftp.apache.org/apache/dist/httpd/ \
|
||||||
ftp://ftp.rge.com/pub/infosystems/apache/dist/ \
|
ftp://ftp.rge.com/pub/infosystems/apache/dist/httpd/ \
|
||||||
ftp://apache.compuex.com/pub/apache/dist/ \
|
ftp://apache.compuex.com/pub/apache/dist/httpd/ \
|
||||||
ftp://apache.arctic.org/pub/apache/dist/ \
|
ftp://apache.arctic.org/pub/apache/dist/httpd/ \
|
||||||
ftp://ftp.epix.net/pub/apache/dist/ \
|
ftp://ftp.epix.net/pub/apache/dist/httpd/ \
|
||||||
ftp://ftp.ameth.org/pub/mirrors/ftp.apache.org/apache/dist/ \
|
ftp://ftp.ameth.org/pub/mirrors/ftp.apache.org/apache/dist/httpd/ \
|
||||||
ftp://ftp.connectnet.com/pub/www/apache/ \
|
ftp://ftp.connectnet.com/pub/www/apache/httpd/ \
|
||||||
ftp://apache.technomancer.com/mirrors/apache/dist/ \
|
ftp://apache.technomancer.com/mirrors/apache/dist/httpd/ \
|
||||||
ftp://ftp.raver.net/pub/ftp.apache.org/ \
|
ftp://ftp.raver.net/pub/ftp.apache.org/httpd/ \
|
||||||
ftp://www3.service.digital.com/apache/dist/ \
|
ftp://www3.service.digital.com/apache/dist/httpd/ \
|
||||||
ftp://galileo.galilei.com/pub/apache/ \
|
ftp://galileo.galilei.com/pub/apache/httpd/ \
|
||||||
ftp://ftp.mtnranch.net/pub/apache/dist/ \
|
ftp://ftp.mtnranch.net/pub/apache/dist/httpd/ \
|
||||||
ftp://ftp.iodynamics.com/pub/mirror/apache/dist/ \
|
ftp://ftp.iodynamics.com/pub/mirror/apache/dist/httpd/ \
|
||||||
ftp://apache.nextpath.com/pub/apache/dist/
|
ftp://apache.nextpath.com/pub/apache/dist/httpd/
|
||||||
DISTNAME= apache_${PORTVERSION}
|
DISTNAME= apache_${PORTVERSION}
|
||||||
DISTFILES= ${APACHE} ${FRONTPAGE} powerlogo.gif fplogo.gif
|
DISTFILES= ${APACHE} ${FRONTPAGE} powerlogo.gif fplogo.gif
|
||||||
|
|
||||||
@ -37,27 +38,26 @@ MAINTAINER= hetzels@westbend.net
|
|||||||
|
|
||||||
APACHE= ${DISTNAME}${EXTRACT_SUFX}
|
APACHE= ${DISTNAME}${EXTRACT_SUFX}
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if !defined(ARCH)
|
ONLY_FOR_ARCHS= i386 alpha
|
||||||
ARCH!= /usr/bin/uname -m
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${ARCH} == i386
|
.if ${ARCH} == i386
|
||||||
.ifdef WANT_FREEBSD_EXT
|
.ifdef WANT_FREEBSD_EXT
|
||||||
FRONTPAGE= fp40.freebsd.tar.z
|
FRONTPAGE= fp40.freebsd.tar.Z
|
||||||
|
.if ${OSVERSION} < 500016
|
||||||
PKGMESSAGE= pkg-message.freebsd
|
PKGMESSAGE= pkg-message.freebsd
|
||||||
|
.endif
|
||||||
.else
|
.else
|
||||||
FRONTPAGE= fp40.bsdi.tar.z
|
FRONTPAGE= fp40.bsdi.tar.Z
|
||||||
EXTRA_PATCHES= ${FILESDIR}/change_server.bsdi ${FILESDIR}/fp_install.bsdi
|
EXTRA_PATCHES= ${FILESDIR}/change_server.bsdi ${FILESDIR}/fp_install.bsdi
|
||||||
|
.if ${OSVERSION} < 50016
|
||||||
PKGMESSAGE= pkg-message.bsdi
|
PKGMESSAGE= pkg-message.bsdi
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
.elif ${ARCH} == alpha
|
.elif ${ARCH} == alpha
|
||||||
FRONTPAGE= fp40.alpha.tar.z
|
FRONTPAGE= fp40.alpha.tar.Z
|
||||||
EXTRA_PATCHES= ${FILESDIR}/change_server.alpha ${FILESDIR}/fp_install.alpha
|
EXTRA_PATCHES= ${FILESDIR}/change_server.alpha ${FILESDIR}/fp_install.alpha
|
||||||
.else
|
|
||||||
.BEGIN:
|
|
||||||
@${ECHO} "Unsupported system ${ARCH}"
|
|
||||||
@${FALSE}
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
EXTRACT_ONLY= ${APACHE}
|
EXTRACT_ONLY= ${APACHE}
|
||||||
@ -139,6 +139,7 @@ CONFIGURE_ARGS+= --enable-suexec \
|
|||||||
MAN8+= suexec.8
|
MAN8+= suexec.8
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${OSVERSION} < 500016
|
||||||
pre-extract:
|
pre-extract:
|
||||||
@if ! ${LDCONFIG} -r | ${GREP} -q -e "-ldescrypt"; then \
|
@if ! ${LDCONFIG} -r | ${GREP} -q -e "-ldescrypt"; then \
|
||||||
${ECHO} ; \
|
${ECHO} ; \
|
||||||
@ -161,6 +162,7 @@ pre-extract:
|
|||||||
${FALSE} ; \
|
${FALSE} ; \
|
||||||
fi
|
fi
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${ECHO} "===> Extracting FrontPage install scripts"
|
@${ECHO} "===> Extracting FrontPage install scripts"
|
||||||
@ -211,8 +213,10 @@ post-install:
|
|||||||
@${INSTALL_FILE} ${WRKSRC}/${CHANGESERVER} ${PREFIX}/${CHANGESERVER}-dist
|
@${INSTALL_FILE} ${WRKSRC}/${CHANGESERVER} ${PREFIX}/${CHANGESERVER}-dist
|
||||||
@${INSTALL_FILE} ${WRKSRC}/${FPSETPERM} ${PREFIX}/${FPSETPERM}
|
@${INSTALL_FILE} ${WRKSRC}/${FPSETPERM} ${PREFIX}/${FPSETPERM}
|
||||||
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
@PKG_PREFIX=${PREFIX} BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||||
|
.if ${OSVERSION} < 500016
|
||||||
.if ${ARCH} == i386
|
.if ${ARCH} == i386
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
.endif
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
MD5 (apache_1.3.19.tar.gz) = e9b12b6fbf9a566110f09ac1f3791855
|
MD5 (apache_1.3.19.tar.gz) = e9b12b6fbf9a566110f09ac1f3791855
|
||||||
MD5 (fp40.bsdi.tar.z) = f469ea85b69d69f80f32c58fb0d273c4
|
MD5 (fp40.bsdi.tar.Z) = f469ea85b69d69f80f32c58fb0d273c4
|
||||||
MD5 (fp40.freebsd.tar.z) = 8893bec896e36d3f4a0e20b52ad9f5d7
|
MD5 (fp40.freebsd.tar.Z) = 8893bec896e36d3f4a0e20b52ad9f5d7
|
||||||
MD5 (fp40.alpha.tar.z) = 6e6832c9dbe0975420020c06da9ae44e
|
MD5 (fp40.alpha.tar.Z) = 6e6832c9dbe0975420020c06da9ae44e
|
||||||
MD5 (powerlogo.gif) = 0f106073b3c7844cf22d4df126b27c62
|
MD5 (powerlogo.gif) = 0f106073b3c7844cf22d4df126b27c62
|
||||||
MD5 (fplogo.gif) = db0fd186b50fde14ff2ec638382a85e6
|
MD5 (fplogo.gif) = db0fd186b50fde14ff2ec638382a85e6
|
||||||
|
@ -9,7 +9,28 @@
|
|||||||
pos = x;
|
pos = x;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2040,7 +2040,6 @@
|
@@ -2013,12 +2013,14 @@
|
||||||
|
int x;
|
||||||
|
|
||||||
|
if (!strchr(p->h_name, '.')) {
|
||||||
|
- for (x = 0; p->h_aliases[x]; ++x) {
|
||||||
|
- if (strchr(p->h_aliases[x], '.') &&
|
||||||
|
- (!strncasecmp(p->h_aliases[x], p->h_name, strlen(p->h_name))))
|
||||||
|
- return ap_pstrdup(a, p->h_aliases[x]);
|
||||||
|
- }
|
||||||
|
- return NULL;
|
||||||
|
+ if (p->h_aliases) {
|
||||||
|
+ for (x = 0; p->h_aliases[x]; ++x) {
|
||||||
|
+ if (p->h_aliases[x] && strchr(p->h_aliases[x], '.') &&
|
||||||
|
+ (!strncasecmp(p->h_aliases[x], p->h_name, strlen(p->h_name))))
|
||||||
|
+ return ap_pstrdup(a, p->h_aliases[x]);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ return NULL;
|
||||||
|
}
|
||||||
|
return ap_pstrdup(a, (void *) p->h_name);
|
||||||
|
}
|
||||||
|
@@ -2040,7 +2042,6 @@
|
||||||
ap_log_error(APLOG_MARK, APLOG_WARNING, NULL,
|
ap_log_error(APLOG_MARK, APLOG_WARNING, NULL,
|
||||||
"%s: gethostname() failed to determine ServerName\n",
|
"%s: gethostname() failed to determine ServerName\n",
|
||||||
ap_server_argv0);
|
ap_server_argv0);
|
||||||
@ -17,12 +38,20 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -2048,7 +2047,7 @@
|
@@ -2048,14 +2049,14 @@
|
||||||
if ((!(p = gethostbyname(str)))
|
if ((!(p = gethostbyname(str)))
|
||||||
|| (!(server_hostname = find_fqdn(a, p)))) {
|
|| (!(server_hostname = find_fqdn(a, p)))) {
|
||||||
/* Recovery - return the default servername by IP: */
|
/* Recovery - return the default servername by IP: */
|
||||||
- if (p->h_addr_list[0]) {
|
- if (p->h_addr_list[0]) {
|
||||||
+ if (p && p->h_addr_list[0]) {
|
+ if (p && p->h_addr_list && p->h_addr_list[0]) {
|
||||||
ap_snprintf(str, sizeof(str), "%pA", p->h_addr_list[0]);
|
ap_snprintf(str, sizeof(str), "%pA", p->h_addr_list[0]);
|
||||||
server_hostname = ap_pstrdup(a, str);
|
server_hostname = ap_pstrdup(a, str);
|
||||||
/* We will drop through to report the IP-named server */
|
/* We will drop through to report the IP-named server */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
- /* Since we found a fdqn, return it with no logged message. */
|
||||||
|
+ /* Since we found a fqdn, return it with no logged message. */
|
||||||
|
return server_hostname;
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user