113 lines
3.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.20 2017/10/21 20:18:45 sthen Exp $
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
# Some of this comes from www/firefox-esr as apropos, since Tor
# browser is a fork of ESR. It is a good idea to look at that
# Makefile when editing this one (ESR versions not always the same).
COMMENT = modified version of Firefox ESR for browsing over Tor
ONLY_FOR_ARCHS = amd64 i386
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
GH_PROJECT = torb
GH_TAGNAME = v${TB_VERSION}-esr52.4.0
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
MOZILLA_VERSION = ${TB_VERSION}
MOZILLA_PROJECT = ${BROWSER_NAME}
MOZILLA_CODENAME = browser
MASTER_SITES = https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/archive/
EXTRACT_SUFX = .tar.gz
DIST_SUBDIR = ${BROWSER_NAME}
WRKDIST = ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME:C/^v//}
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
PATCHORIG = .pat.orig
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
PKGNAME = ${TB_PREFIX}-browser-${TB_VERSION}
DISTNAME = ${GH_TAGNAME}
SO_VERSION = 2.0
MOZILLA_LIBS = xul lgpllibs mozavcodec mozavutil
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
MOZILLA_LIBS += freebl3 nss3 nssckbi nssdbm3
MOZILLA_LIBS += nssutil3 smime3 softokn3 ssl3
MOZILLA_LIBS += mozsqlite3
# mozilla public license
PERMIT_PACKAGE_CDROM= Yes
MODULES = www/mozilla lang/python
MODPY_RUNDEP = No
COMPILER = clang
MODCLANG_ARCHS = amd64 i386
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
MOZILLA_USE_BUNDLED_NSS = Yes
MOZILLA_USE_BUNDLED_LIBEVENT = Yes
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
MOZILLA_USE_BUNDLED_SQLITE = Yes
WANTLIB += X11-xcb xcb xcb-shm intl ${LIBECXX}
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
LIB_DEPENDS += devel/gettext
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
# Regression tests are too hard to adapt to run here
NO_TEST = Yes
CONFIGURE_STYLE = simple
CONFIGURE_ARGS += --prefix=${PREFIX}
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
# for nss build system
MAKE_ENV += BUILD_OPT=1 \
LOCALBASE="${LOCALBASE}" \
NSS_ENABLE_ECC=1 \
XCFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
BUILD_DEPENDS += devel/py-virtualenv
CONFIGURE_ARGS += --with-app-name=${BROWSER_NAME} \
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
--with-tor-browser-version=${TB_VERSION} \
--disable-tor-browser-update
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
RUN_DEPENDS += net/tor>=0.3.1.7
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
# bug 857628
CONFIGURE_ARGS += --enable-pie
post-patch:
# hack config/baseconfig.mk to not use MOZ_APP_VERSION in a few places
sed -i.bak -e 's/-$$(MOZ_APP_VERSION)/-${TB_VERSION}/' \
${WRKSRC}/config/baseconfig.mk
# drop in sh front end to configure.py so CONFIGURE_STYLE=simple works
${SUBST_PROGRAM} ${FILESDIR}/configure ${WRKSRC}/configure
${SUBST_PROGRAM} ${FILESDIR}/configure ${WRKSRC}/js/src/configure
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
BROWSER_DIR = ${PREFIX}/lib/${BROWSER_NAME}-${TB_VERSION}
BROWSER_CFG = ${BROWSER_DIR}/${BROWSER_NAME}.cfg
BROWSER_INI = ${BROWSER_DIR}/distribution/distribution.ini
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
post-install:
# install prefs, bookmarks, app config file for Tor browser
${INSTALL_DATA_DIR} ${BROWSER_DIR}/browser/defaults/preferences
${SUBST_DATA} ${FILESDIR}/all-openbsd.js \
${BROWSER_DIR}/browser/defaults/preferences/all-openbsd.js
${INSTALL_DATA_DIR} ${BROWSER_DIR}/browser/defaults/profile
${INSTALL_DATA} ${FILESDIR}/bookmarks.html \
${BROWSER_DIR}/browser/defaults/profile
# put tor-browser.cfg together
(sed -e 's/^#/\/\/#/' < ${FILESDIR}/extension-overrides.js; \
cat ${FILESDIR}/tor-browser-cfg-tail.js) > ${BROWSER_CFG}
chown ${SHAREOWN}:${SHAREGRP} ${BROWSER_CFG}
chmod ${SHAREMODE} ${BROWSER_CFG}
# install distribution.ini file
${INSTALL_DATA_DIR} ${BROWSER_DIR}/distribution
echo "[Global]\nid=OpenBSD\nversion=${OSREV}\n" > ${BROWSER_INI}
echo "about=Packaged by ${MAINTAINER}\n" >> ${BROWSER_INI}
# install desktop file
Import (finally!) Tor Browser 6.0.5. All the credit goes to Sean Levy - attila at stalphonsos dot com, from the tor BSD diversity project, https://torbsd.github.io/ - who spent countless hours polishing and improving this out of tree. This bundles 5 ports: * tb-browser, a Firefox ESR fork * torbutton 1.9.5.7, a button to configure parameters * tor-launcher 0.2.9.3, to manage a tor instance * tb-noscript 2.9.0.14, a well known js blocker * tb-https-everwhere 5.2.4, try to force https where possible Note that the extensions are installed within tb-browser directory and won't work as-is in a regular Firefox instance. ====================================================================== Tor Browser (TB) is a customized version of Firefox Extended Service Release built specifically for internet browsing over the Tor anonymity network. TB's configuration aims to mitigate attacks on a client's anonymity, including determining the client's actual IP address and browser fingerprinting. Other aspects of Firefox have also been patched to plug privacy leaks in ways not possible any other way. TB includes custom Firefox add-ons only meant for TB, including NoScript, HTTPS Everywhere, TorButton and Tor-Launcher. This package provides merely the modified version of Firefox ESR. Please install the tor-browser meta-package to make sure you have everything installed correctly. Remember that there are no perfect privacy or anonymity solutions, and this includes TB. As always you must pay attention and in many cases modify your behavior to ensure your privacy online. Note that JS is blocked everywhere by default in TB using NoScript. ====================================================================== On a personal note (as a Mozilla developer), i'll just add that Tor Browser is heavily patched in various ways, so think before putting your browsing habits in someone's hands - read https://www.torproject.org/projects/torbrowser/design/ to make up your mind. Of course, having this in the ports tree doesn't mean that the OpenBSD project specifically endorses or recommends usage of Tor or Tor Browser. If you want to keep your privacy, *use your brain* or stay offline. ok danj@
2016-11-13 21:15:43 +00:00
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
${SUBST_DATA} ${FILESDIR}/${BROWSER_NAME}.desktop \
${PREFIX}/share/applications/${BROWSER_NAME}.desktop
# install icon for desktop file
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
${INSTALL_DATA} ${BROWSER_DIR}/browser/icons/mozicon128.png \
${PREFIX}/share/pixmaps/${BROWSER_NAME}.png
# link default48.png to default.png to be used by default
# by non-icccm compliant wm
ln -f ${BROWSER_DIR}/browser/chrome/icons/default/default{48,}.png
.include <bsd.port.mk>