pkgsrc/time/php-mrbs/Makefile
rillig 84f2203288 all: migrate some SourceForge homepage URLs back from https to http
https://mail-index.netbsd.org/pkgsrc-changes/2020/01/18/msg205146.html

In the above commit, the homepage URLs were migrated from http to https,
assuming that SourceForge would use the same host names for both http and
https connections. This assumption was wrong. Their documentation at
https://sourceforge.net/p/forge/documentation/Custom%20VHOSTs/ states
that the https URLs use the domain sourceforge.io instead.

To make the homepages from the above commit reachable again, pkglint has
been extended to check for reachable homepages. This check is only
enabled when the --network command line option is given.

Each of the homepages that referred to https://$project.sourceforge.net
before was migrated to https://$project.sourceforge.io (27), and if that
was not reachable, to the fallback URL http://$project.sourceforge.net
(163).
2020-01-26 05:26:08 +00:00

100 lines
3 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2020/01/26 05:26:26 rillig Exp $
#
DISTNAME= mrbs-1.4.11
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
CATEGORIES= www time
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mrbs}/
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= https://mrbs.sourceforge.io/
COMMENT= Meeting Room Booking System
LICENSE= gnu-gpl-v2
DEPENDS+= ${PHP_PKG_PREFIX}-iconv>=5.3.0:../../converters/php-iconv
.include "options.mk"
USE_LANGUAGES= # none
EGDIR= ${PREFIX}/share/examples/mrbs
CONF_FILES= ${EGDIR}/config.inc.php ${PREFIX}/share/mrbs/config.inc.php
CONF_FILES+= ${EGDIR}/site_faq/site_faq.html ${PREFIX}/share/mrbs/site_faq/site_faq.html
CONF_FILES+= ${EGDIR}/site_faq/site_faq_cs.html ${PREFIX}/share/mrbs/site_faq/site_faq_cs.html
CONF_FILES+= ${EGDIR}/site_faq/site_faq_de.html ${PREFIX}/share/mrbs/site_faq/site_faq_de.html
CONF_FILES+= ${EGDIR}/site_faq/site_faq_es.html ${PREFIX}/share/mrbs/site_faq/site_faq_es.html
CONF_FILES+= ${EGDIR}/site_faq/site_faq_fr.html ${PREFIX}/share/mrbs/site_faq/site_faq_fr.html
CONF_FILES+= ${EGDIR}/site_faq/site_faq_it.html ${PREFIX}/share/mrbs/site_faq/site_faq_it.html
CONF_FILES+= ${EGDIR}/site_faq/site_faq_nl.html ${PREFIX}/share/mrbs/site_faq/site_faq_nl.html
CONF_FILES+= ${EGDIR}/site_faq/site_faq_sv.html ${PREFIX}/share/mrbs/site_faq/site_faq_sv.html
NO_BUILD= yes
.include "../../mk/bsd.prefs.mk"
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/mrbs
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}/site_faq
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mrbs
${INSTALL_DATA} ${WRKSRC}/web/config.inc.php ${DESTDIR}${EGDIR}/
${INSTALL_DATA} ${WRKSRC}/web/.htaccess ${DESTDIR}${EGDIR}/
for file in \
site_faq.html \
site_faq_cs.html \
site_faq_de.html \
site_faq_es.html \
site_faq_fr.html \
site_faq_it.html \
site_faq_nl.html \
site_faq_sv.html \
; do ${INSTALL_DATA} ${WRKSRC}/web/site_faq/$$file ${DESTDIR}${EGDIR}/site_faq; \
done
for file in \
AUTHENTICATION \
COPYING \
ChangeLog \
INSTALL \
LANGUAGE \
NEWS \
README \
README.nwauth \
README.sqlapi \
UPGRADE \
auth_ldap.pl \
auth_ldapsearch.pl \
auth_pam.pl \
badpw.pl \
checklang.php \
convert_db_to_utf8.php \
crypt_passwd.example \
crypt_passwd.pl \
destroy.pg.sql \
grant.pg.sql \
help_report.html \
purge.my.sql \
purge.pg.sql \
sample-data.sql \
smb_auth.c \
tables.my.pre41.sql \
tables.my.sql \
tables.pg.pre73.sql \
tables.pg.sql \
testdata.php \
upgrade.my.sql \
upgrade2.my.sql \
upgrade2.pg.sql \
upgrade3.my.sql \
; do ${INSTALL_DATA} ${WRKSRC}/$$file ${DESTDIR}${PREFIX}/share/doc/mrbs/; \
done
cd ${WRKSRC}/web && ${FIND} . -type f \
\! -name '*.orig' \! -name config.inc.php \! -name .htaccess \
\! -path './site_faq/*' \
-print | \
pax -rw -pmp ${DESTDIR}${PREFIX}/share/mrbs
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"