diff options
Diffstat (limited to 'www/tor-browser/Makefile')
-rw-r--r-- | www/tor-browser/Makefile | 94 |
1 files changed, 60 insertions, 34 deletions
diff --git a/www/tor-browser/Makefile b/www/tor-browser/Makefile index 5c7e7374eee0..7dd4f1dcfab7 100644 --- a/www/tor-browser/Makefile +++ b/www/tor-browser/Makefile @@ -1,15 +1,19 @@ PORTNAME= tor-browser -DISTVERSION= 13.5a9 -PORTREVISION= 6 +DISTVERSION= 14.0.1 CATEGORIES= www net security wayland MASTER_SITES= TOR \ https://build-sources.tbb.torproject.org/:source1 \ - LOCAL/jsm:source2 -MASTER_SITE_SUBDIR= torbrowser/${DISTVERSION} -DISTNAME= src-firefox-tor-browser-115.12.0esr-13.5-1-build2 + LOCAL/jsm:source2 \ + https://secure.informaction.com/%SUBDIR%/:source3 + DISTFILES= ${DISTNAME}.tar.xz \ - manual_112141.zip:source1 \ - firefox-tor-browser-13.0.1-build2-firefox-1l0n-out.tar:source2 + manual_215922.zip:source1 \ + fonts-3--4348e1.tar.zst:source2 \ + noscript-11.4.42.xpi:source3 +MASTER_SITE_SUBDIR= torbrowser/${DISTVERSION}/:DEFAULT \ + download/releases/:source3 + +DISTNAME= src-firefox-tor-browser-128.4.0esr-14.0-1-build2 MAINTAINER= freebsd@sysctl.cz COMMENT= Tor Browser for FreeBSD WWW= https://www.torproject.org/ @@ -32,13 +36,17 @@ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ nasm:devel/nasm \ yasm:devel/yasm \ zip:archivers/zip + +USE_GITHUB=nodefault +GH_TUPLE= mozilla-l10n:firefox-l10n:878fe6f256d52c7e5b0205b07b061829ccde4f17:ffl10n USE_GITLAB=nodefault GL_SITE= https://gitlab.torproject.org/ GL_ACCOUNT= tpo GL_PROJECT= translation:basebrowser translation:torbrowser -GL_TAGNAME= 3faf7dcd545109f7bbd8a6374838e139ca422d6c:basebrowser 51bc08246d73990d461f747fb3c8cc7b6f66c1f4:torbrowser +GL_TAGNAME= 3b1be2065b54939ed019d94174f137847bcf3c66:basebrowser ba63bd165f3fd4bdd472815c9761413d4671cfb7:torbrowser RUN_DEPENDS= tor:security/tor \ - obfs4proxy:security/obfs4proxy-tor + obfs4proxy:security/obfs4proxy-tor \ + snowflake-client:security/snowflake-tor USES= compiler:c++11-lib libtool \ perl5 pkgconfig python shebangfix localbase:ldflags tar:xz python:3 @@ -46,23 +54,25 @@ USE_GECKO= gecko SSP_UNSAFE= yes -SUB_FILES= torrc-defaults tor-browser.desktop +SUB_FILES= torrc-defaults tor-browser.desktop fonts.conf BUNDLE_LIBS= yes USE_MOZILLA= -sqlite -MOZILLA_VER=115.4.0 +MOZILLA_VER=128.4.0 CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234 CONFIGURE_ENV+= BINDGEN_CFLAGS="-I${LOCALBASE}/include" \ - MOZ_CHROME_MULTILOCALE="ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW en-US" -MAKE_ENV+= AB_CD="multi" \ - LOCALES="ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW en-US" + MOZ_CHROME_MULTILOCALE="ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW" + +MAKE_ENV+= LOCALES="ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW" + MOZ_EXPORT+= MOZ_TELEMETRY_REPORTING="" \ MOZILLA_OFFICIAL="1" \ MOZ_OFFICIAL_BRANDING="1" \ MOZ_APP_DISPLAYNAME="Tor Browser" \ MOZ_APP_NAME="tor-browser" \ - MOZ_CHROME_MULTILOCALE="ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW en-US" -MOZ_OPTIONS= --with-base-browser-version=${DISTVERSION} \ + MOZ_CHROME_MULTILOCALE="ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW" + +MOZ_OPTIONS=--with-base-browser-version=14.0.1 \ --enable-official-branding \ --enable-optimize \ --enable-bundled-fonts \ @@ -78,7 +88,7 @@ MOZ_OPTIONS= --with-base-browser-version=${DISTVERSION} \ --with-branding=browser/branding/tb-release WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} -SHEBANG_FILES+= mach + .include "${.CURDIR}/../../www/firefox/Makefile.options" .include <bsd.port.options.mk> @@ -96,31 +106,47 @@ MOZ_OPTIONS+= --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot .endif post-patch: @${REINPLACE_CMD} 's|LOCALBASE|${LOCALBASE}|g' "${WRKSRC}/browser/app/profile/000-tor-browser.js" + @${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/browser/app/nsBrowserApp.cpp ${MKDIR} ${WRKSRC}/tmp-manual - unzip -d ${WRKSRC}/tmp-manual ${DISTDIR}/manual_112141.zip - ${MKDIR} ${WRKSRC}/tmp-l10n-central - tar -C ${WRKSRC}/tmp-l10n-central -xf ${DISTDIR}/firefox-tor-browser-13.0.1-build2-firefox-1l0n-out.tar + unzip -d ${WRKSRC}/tmp-manual ${DISTDIR}/manual_215922.zip pre-configure: @${REINPLACE_CMD} 's|export MOZ_GOOGLE_.*||g' ${WRKSRC}/.mozconfig ${PYTHON_CMD} ${FILESDIR}/packagemanual.py ${WRKSRC}/tmp-manual/public ${WRKSRC}/browser/base/content/manual -post-build: - ${MKDIR} -p ${WRKSRC}/../.mozbuild/l10n-central - find ${WRKSRC}/tmp-l10n-central -name "*.tar.xz" -exec tar -C ${WRKSRC}/../.mozbuild/l10n-central -xvf {} \; - cd ${WRKSRC}/../.build/ && MOZBUILD_STATE_PATH=${WRKSRC}/../.mozbuild MOZ_AUTOMATION="1" ${WRKSRC}/mach package-multi-locale --locales ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW +post-configure: + ${MKDIR} ${WRKDIR}/.mozbuild/l10n-central + ${CP} -r ${WRKDIR}/firefox-l10n-878fe6f256d52c7e5b0205b07b061829ccde4f17/* ${WRKDIR}/.mozbuild/l10n-central + .for i in ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW - ${CP} ${WRKDIR}/translation-3faf7dcd545109f7bbd8a6374838e139ca422d6c/${i}/base-browser.ftl ${WRKDIR}/.build/dist/bin/browser/localization/${i}/browser/base-browser.ftl - ${CP} ${WRKDIR}/translation-3faf7dcd545109f7bbd8a6374838e139ca422d6c/${i}/newIdentity.properties ${WRKDIR}/.build/dist/bin/browser/chrome/${i}/locale/browser/newIdentity.properties - ${CP} ${WRKDIR}/translation-3faf7dcd545109f7bbd8a6374838e139ca422d6c/${i}/securityLevel.properties ${WRKDIR}/.build/dist/bin/browser/chrome/${i}/locale/browser/securityLevel.properties - ${MKDIR} ${WRKDIR}/.build/dist/bin/chrome/torbutton/locale/${i}/browser - test -f ${WRKDIR}/translation-51bc08246d73990d461f747fb3c8cc7b6f66c1f4/${i}/tor-browser.ftl && ${CP} ${WRKDIR}/translation-51bc08246d73990d461f747fb3c8cc7b6f66c1f4/${i}/tor-browser.ftl ${WRKDIR}/.build/dist/bin/browser/localization/${i}/browser/tor-browser.ftl - ${CP} ${WRKDIR}/translation-51bc08246d73990d461f747fb3c8cc7b6f66c1f4/${i}/cryptoSafetyPrompt.properties ${WRKDIR}/.build/dist/bin/browser/chrome/${i}/locale/browser/cryptoSafetyPrompt.properties -.for j in brand.dtd aboutDialog.dtd aboutTBUpdate.dtd torbutton.dtd onboarding.properties brand.properties torlauncher.properties branding/brand.ftl rulesets.properties settings.properties torConnect.properties onionLocation.properties aboutTor.dtd torbutton.properties browserOnboarding.properties - ${MKDIR} ${WRKDIR}/.build/dist/bin/chrome/torbutton/locale/${i}/branding - ${CP} ${WRKDIR}/translation-51bc08246d73990d461f747fb3c8cc7b6f66c1f4/${i}/${j} ${WRKDIR}/.build/dist/bin/chrome/torbutton/locale/${i}/${j} -.endfor + ${CP} ${WRKDIR}/translation-3b1be2065b54939ed019d94174f137847bcf3c66/${i}/base-browser.ftl ${WRKDIR}/.mozbuild/l10n-central/${i}/toolkit/toolkit/global/ + ${CP} ${WRKDIR}/translation-3b1be2065b54939ed019d94174f137847bcf3c66/${i}/newIdentity.properties ${WRKDIR}/.mozbuild/l10n-central/${i}/browser/chrome/browser/ + ${CP} ${WRKDIR}/translation-3b1be2065b54939ed019d94174f137847bcf3c66/${i}/securityLevel.properties ${WRKDIR}/.mozbuild/l10n-central/${i}/browser/chrome/browser/ + ${CP} ${WRKDIR}/translation-ba63bd165f3fd4bdd472815c9761413d4671cfb7/${i}/tor-browser.ftl ${WRKDIR}/.mozbuild/l10n-central/${i}/toolkit/toolkit/global/ + ${MKDIR} ${WRKSRC}/toolkit/torbutton/chrome/locale/${i}/ +.for j in aboutTBUpdate.dtd brand.properties onionLocation.properties torbutton.properties torlauncher.properties brand.dtd settings.properties torbutton.dtd torConnect.properties + ${CP} ${WRKDIR}/translation-ba63bd165f3fd4bdd472815c9761413d4671cfb7/${i}/${j} ${WRKSRC}/toolkit/torbutton/chrome/locale/${i}/ + .endfor + ${CP} -r ${WRKDIR}/translation-ba63bd165f3fd4bdd472815c9761413d4671cfb7/${i}/branding ${WRKSRC}/toolkit/torbutton/chrome/locale/${i} +.endfor + +post-build: + MOZBUILD_STATE_PATH=${WRKDIR}/.mozbuild AB_CD="multi" MOZ_AUTOMATION="1" PATH="`find ${WRKRDIR}/.mozbuild/srcdirs -name build -type d -print`/bin:${PATH}" ${WRKSRC}/mach package-multi-locale --locales ar ca cs da de el es-ES fa fi fr ga-IE he hu id is it ja ka ko lt mk ms my nb-NO nl pl pt-BR ro ru sq sv-SE th tr uk vi zh-CN zh-TW + post-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKDIR}/torrc-defaults ${STAGEDIR}${DATADIR}/torrc-defaults ${INSTALL_DATA} ${WRKDIR}/tor-browser.desktop ${STAGEDIR}${PREFIX}/share/applications/tor-browser.desktop + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/tor-browser/fontconfig + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/tor-browser/fonts + ${INSTALL_DATA} ${WRKDIR}/fonts.conf ${STAGEDIR}${PREFIX}/lib/tor-browser/fontconfig/fonts.conf + ${CP} ${WRKDIR}/fonts/*.ttf ${STAGEDIR}${PREFIX}/lib/tor-browser/fonts/ + ${CP} ${WRKDIR}/fonts/*.otf ${STAGEDIR}${PREFIX}/lib/tor-browser/fonts/ + ${CHMOD} 0744 ${STAGEDIR}${PREFIX}/lib/tor-browser/fonts + ${CHMOD} 0744 ${STAGEDIR}${PREFIX}/lib/tor-browser/fontconfig/ + ${CHMOD} 0644 ${STAGEDIR}${PREFIX}/lib/tor-browser/fontconfig/fonts.conf + ${CHMOD} 0644 ${STAGEDIR}${PREFIX}/lib/tor-browser/fonts/*.ttf + ${CHMOD} 0644 ${STAGEDIR}${PREFIX}/lib/tor-browser/fonts/*.otf + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/tor-browser/distribution/extensions + ${CP} ${DISTDIR}/noscript-11.4.42.xpi "${STAGEDIR}${PREFIX}/lib/tor-browser/distribution/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi" + .include <bsd.port.mk> |