pkgsrc/security/tor-browser/Makefile

106 lines
3.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.51 2019/11/04 21:13:03 rillig Exp $
tor-browser: update to 8.5.4. 8.5.4: All platforms Update Firefox to 60.8.0esr Update Torbutton to 2.1.12 Bug 30577: Add Fundraising Banner Bug 31041: Stop syncing network.cookie.lifetimePolicy Translations update Update HTTPS Everywhere to 2019.6.27 Bug 31055+31058: Remove four default bridges Bug 30712: Backport fix for Mozilla's bug 1552993 Bug 30849: Backport fixes for Mozilla's bug 1552627 and 1549833 Windows + OS X + Linux Update Tor to 0.4.0.5 Update OpenSSL to 1.0.2s Bug 29045: Ensure that tor does not start up in dormant mode OS X Bug 30631: Blurry Tor Browser icon on macOS app switcher 8.5.3: All platforms Pick up fix for Mozilla's bug 1560192 8.5.2: All platforms Pick up fix for Mozilla's bug 1544386 Update NoScript to 10.6.3 Bug 29904: NoScript blocks MP4 on higher security levels Bug 30624+29043+29647: Prevent XSS protection from freezing the browser 8.5.1: All platforms Update Torbutton to 2.1.10 Bug 30565: Sync nocertdb with privatebrowsing.autostart at startup Bug 30464: Add WebGL to safer descriptions Translations update Update NoScript to 10.6.2 Bug 29969: Remove workaround for Mozilla's bug 1532530 Update HTTPS Everywhere to 2019.5.13 Bug 30541: Disable WebGL readPixel() for web content Windows + OS X + Linux Bug 30560: Better match actual toolbar in onboarding toolbar graphic Bug 30571: Correct more information URL for security settings Android Bug 30635: Sync mobile default bridges list with desktop one Build System All platforms Bug 30480: Check that signed tag contains expected tag name
2019-07-23 00:41:24 +02:00
DISTNAME= src-firefox-tor-browser-60.8.0esr-8.5-1-build2
PKGNAME= tor-browser-8.5.4
PKGREVISION= 2
CATEGORIES= www
tor-browser: update to 8.5.4. 8.5.4: All platforms Update Firefox to 60.8.0esr Update Torbutton to 2.1.12 Bug 30577: Add Fundraising Banner Bug 31041: Stop syncing network.cookie.lifetimePolicy Translations update Update HTTPS Everywhere to 2019.6.27 Bug 31055+31058: Remove four default bridges Bug 30712: Backport fix for Mozilla's bug 1552993 Bug 30849: Backport fixes for Mozilla's bug 1552627 and 1549833 Windows + OS X + Linux Update Tor to 0.4.0.5 Update OpenSSL to 1.0.2s Bug 29045: Ensure that tor does not start up in dormant mode OS X Bug 30631: Blurry Tor Browser icon on macOS app switcher 8.5.3: All platforms Pick up fix for Mozilla's bug 1560192 8.5.2: All platforms Pick up fix for Mozilla's bug 1544386 Update NoScript to 10.6.3 Bug 29904: NoScript blocks MP4 on higher security levels Bug 30624+29043+29647: Prevent XSS protection from freezing the browser 8.5.1: All platforms Update Torbutton to 2.1.10 Bug 30565: Sync nocertdb with privatebrowsing.autostart at startup Bug 30464: Add WebGL to safer descriptions Translations update Update NoScript to 10.6.2 Bug 29969: Remove workaround for Mozilla's bug 1532530 Update HTTPS Everywhere to 2019.5.13 Bug 30541: Disable WebGL readPixel() for web content Windows + OS X + Linux Bug 30560: Better match actual toolbar in onboarding toolbar graphic Bug 30571: Correct more information URL for security settings Android Bug 30635: Sync mobile default bridges list with desktop one Build System All platforms Bug 30480: Check that signed tag contains expected tag name
2019-07-23 00:41:24 +02:00
MASTER_SITES= https://dist.torproject.org/torbrowser/8.5.4/
EXTRACT_SUFX= .tar.xz
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://www.torproject.org/projects/torbrowser.html.en
COMMENT= Tor Browser based on Firefox
LICENSE= mpl-1.1
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
DEPENDS+= tor-[0-9]*:../../net/tor
EXTRACT_USING= bsdtar
# How to update this package:
#
# replace all patches with the one from the correspoding www/firefox${ESR_RELEASE}
# BUT keep patch-xpcom_io_TorFileUtils.cpp!
# make the patches apply
#
# when packaged up, read MESSAGE and test by visiting https://check.torproject.org
# Remove hardcoded build directory.
SUBST_CLASSES+= fix-build-dir
SUBST_STAGE.fix-build-dir= pre-configure
SUBST_FILES.fix-build-dir+= .mozconfig
SUBST_SED.fix-build-dir+= -e 's,mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@,,'
MOZILLA_DIR= # empty
2018-10-23 14:33:03 +02:00
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --enable-tor-browser-data-outside-app-dir
CFLAGS+= -DTOR_BROWSER_DATA_IN_HOME_DIR=1
CFLAGS+= -DTOR_BROWSER_DATA_OUTSIDE_APP_DIR=1
CFLAGS+= -fPIC
# workaround for link of libxul.so etc.
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/${PKGBASE}
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib
LDFLAGS.DragonFly+= -lplc4 -lnspr4
LDFLAGS.FreeBSD+= -lplc4 -lnspr4
LDFLAGS.Linux+= -lnspr4
LDFLAGS.SunOS+= -lm
ALL_ENV+= MOZ_APP_NAME=${PKGBASE}
NOT_PAX_MPROTECT_SAFE+= lib/${PKGBASE}/tor-browser
NOT_PAX_MPROTECT_SAFE+= lib/${PKGBASE}/tor-browser-bin
2016-06-11 14:59:48 +02:00
# Avoid ld "invalid section index" errors.
2016-02-26 10:41:05 +01:00
BUILDLINK_TRANSFORM.SunOS+= rm:-fdata-sections
BUILDLINK_TRANSFORM.SunOS+= rm:-ffunction-sections
.include "../../www/firefox60/mozilla-common.mk"
.include "options.mk"
CHECK_INTERPRETER_SKIP+= lib/firefox-sdk/sdk/bin/header.py
CHECK_INTERPRETER_SKIP+= lib/firefox-sdk/sdk/bin/typelib.py
CHECK_INTERPRETER_SKIP+= lib/firefox-sdk/sdk/bin/xpidl.py
CHECK_INTERPRETER_SKIP+= lib/firefox-sdk/sdk/bin/xpt.py
CHECK_WRKREF_SKIP+= lib/${PKGBASE}/chrome/toolkit/content/global/buildconfig.html
MOZILLA= ${PKGBASE}
MOZILLA_ICON= ${WRKSRC}/browser/branding/official/default48.png
MOZILLA_NAME= TorBrowser
post-extract:
mv ${WRKSRC}/gfx/ycbcr/yuv_row_arm.s ${WRKSRC}/gfx/ycbcr/yuv_row_arm.S
${CP} ${FILESDIR}/cubeb_sun.c ${WRKSRC}/media/libcubeb/src/cubeb_sun.c
pre-configure:
cd ${WRKSRC} && mkdir ${OBJDIR}
cd ${WRKSRC} && autoconf
cd ${WRKSRC}/${OBJDIR} && touch old-configure.vars
cd ${WRKSRC}/js/src && autoconf
post-build:
${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \
-e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g' \
-e 's|@FIREFOX_ICON@|${MOZILLA}.png|g' \
< ${FILESDIR}/desktop.in \
> ${WRKDIR}/desktop
INSTALLATION_DIRS+= share/applications share/pixmaps
post-install:
${ECHO} '#! /bin/sh' > ${DESTDIR}${PREFIX}/bin/${MOZILLA}
${ECHO} '${PREFIX}/lib/tor-browser/tor-browser-bin "$$@"' >> \
${DESTDIR}${PREFIX}/bin/${MOZILLA}
${CHMOD} 755 ${DESTDIR}${PREFIX}/bin/${MOZILLA}
${INSTALL_DATA} ${WRKDIR}/desktop \
${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
${INSTALL_DATA} ${MOZILLA_ICON} \
${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"