2021-03-27 02:30:16 -04:00
|
|
|
all: install.exe
|
2018-12-11 16:20:20 +00:00
|
|
|
|
2021-07-01 16:55:29 -04:00
|
|
|
jpackage: I2P all
|
|
|
|
|
2021-03-29 23:10:46 -04:00
|
|
|
prep: profile.tgz app-profile.tgz profile build/licenses build/I2P build/I2P/config
|
2018-12-11 16:20:20 +00:00
|
|
|
cp src/nsis/*.nsi build
|
|
|
|
cp src/nsis/*.nsh build
|
|
|
|
cp src/icons/*.ico build
|
2021-03-26 23:59:42 -04:00
|
|
|
|
|
|
|
install.exe: prep
|
2019-01-08 10:29:04 +00:00
|
|
|
cd build && makensis i2pbrowser-installer.nsi && cp I2P-Profile-Installer-*.exe ../ && echo "built windows installer"
|
2018-12-11 09:29:44 +00:00
|
|
|
|
2021-03-26 00:52:45 -04:00
|
|
|
export RES_DIR="../i2p.i2p/installer/resources"
|
|
|
|
export PKG_DIR="../i2p.i2p/pkg-temp"
|
|
|
|
|
2021-07-03 22:39:54 -04:00
|
|
|
distclean: clean
|
|
|
|
rm -rf I2P
|
|
|
|
|
2021-07-01 16:55:29 -04:00
|
|
|
I2P:
|
|
|
|
./build.sh
|
|
|
|
|
2021-03-29 23:12:36 -04:00
|
|
|
build/I2P: build
|
2021-03-29 23:28:58 -04:00
|
|
|
rm -rf build/I2P
|
|
|
|
cp -rv I2P build/I2P ; true
|
|
|
|
|
2021-03-29 23:32:43 -04:00
|
|
|
configdir: src/I2P/config
|
|
|
|
|
2021-03-29 23:28:58 -04:00
|
|
|
src/I2P/config:
|
2021-07-06 14:06:23 -04:00
|
|
|
mkdir src/I2P/config
|
2021-03-29 23:28:58 -04:00
|
|
|
rm -rf src/I2P/config/geoip src/I2P/config/webapps src/I2P/config/certificates
|
2021-07-06 14:06:23 -04:00
|
|
|
echo true | tee src/I2P/config/jpackaged
|
|
|
|
cp -v $(RES_DIR)/clients.config src/I2P/config/
|
|
|
|
cp -v $(RES_DIR)/i2ptunnel.config src/I2P/config/
|
|
|
|
cp -v $(RES_DIR)/wrapper.config src/I2P/config/
|
|
|
|
cp -v $(RES_DIR)/hosts.txt src/I2P/config/hosts.txt
|
|
|
|
cp -R $(RES_DIR)/certificates src/I2P/config/certificates
|
|
|
|
mkdir -p src/I2P/config/geoip
|
|
|
|
cp -v $(RES_DIR)/GeoLite2-Country.mmdb.gz src/I2P/config/geoip/GeoLite2-Country.mmdb.gz
|
|
|
|
cp -R "$(PKG_DIR)"/webapps src/I2P/config/webapps
|
|
|
|
cd src/I2P/config/geoip && gunzip GeoLite2-Country.mmdb.gz; cd ../../..
|
|
|
|
|
2021-07-15 16:01:15 -04:00
|
|
|
build/I2P/config: build/I2P src/I2P/config
|
2021-03-29 23:10:46 -04:00
|
|
|
cp -rv src/I2P/config build/I2P/config ; true
|
2021-07-01 18:20:16 -04:00
|
|
|
cp -rv src/I2P/config build/I2P/.i2p ; true
|
2021-03-29 23:10:46 -04:00
|
|
|
|
2019-01-07 18:35:37 +00:00
|
|
|
#
|
|
|
|
# Warning: a displayed license file of more than 28752 bytes
|
|
|
|
# will cause makensis V3.03 to crash.
|
|
|
|
# Possibly related: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895064
|
|
|
|
#
|
2019-01-07 17:41:49 +00:00
|
|
|
build/licenses: build
|
|
|
|
mkdir -p build/licenses
|
|
|
|
cp license/* build/licenses
|
2021-04-03 22:52:47 -04:00
|
|
|
cp LICENSE.md build/licenses/MIT.txt
|
2019-01-07 17:41:49 +00:00
|
|
|
unix2dos build/licenses/LICENSE.index
|
2018-12-11 09:29:44 +00:00
|
|
|
|
|
|
|
clean:
|
2021-07-06 14:06:23 -04:00
|
|
|
rm -rf build app-profile-*.tgz profile-*.tgz I2P-Profile-Installer-*.exe *.deb src/I2P/config
|
2018-12-11 09:29:44 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
@echo "creating build directory"
|
2018-12-14 11:55:15 +00:00
|
|
|
mkdir -p build
|
2018-12-11 10:33:40 +00:00
|
|
|
|
2020-07-24 04:42:21 +00:00
|
|
|
profile: build/profile/user.js build/profile/prefs.js build/profile/bookmarks.html build/profile/storage-sync.sqlite copy-xpi
|
2018-12-11 16:20:20 +00:00
|
|
|
|
|
|
|
profile.tgz: profile
|
2019-01-06 16:27:47 +00:00
|
|
|
$(eval PROFILE_VERSION := $(shell cat src/profile/version.txt))
|
|
|
|
@echo "building profile tarball $(PROFILE_VERSION)"
|
2021-07-01 18:20:16 -04:00
|
|
|
bash -c 'ls I2P && cp -rv build/I2P build/profile/I2P'; true
|
2020-12-21 15:20:22 -05:00
|
|
|
install -m755 src/unix/i2pbrowser.sh build/profile/i2pbrowser.sh
|
2019-01-06 16:27:47 +00:00
|
|
|
cd build && tar -czf profile-$(PROFILE_VERSION).tgz profile && cp profile-$(PROFILE_VERSION).tgz ../
|
2018-12-11 10:33:40 +00:00
|
|
|
|
|
|
|
build/profile/user.js: build/profile src/profile/user.js
|
|
|
|
cp src/profile/user.js build/profile/user.js
|
|
|
|
|
2020-07-24 04:42:21 +00:00
|
|
|
build/profile/prefs.js: build/profile src/profile/prefs.js
|
|
|
|
cp src/profile/prefs.js build/profile/prefs.js
|
|
|
|
|
2018-12-11 10:33:40 +00:00
|
|
|
build/profile/bookmarks.html: build/profile src/profile/bookmarks.html
|
|
|
|
cp src/profile/bookmarks.html build/profile/bookmarks.html
|
|
|
|
|
2019-02-09 11:57:01 +00:00
|
|
|
build/profile/storage-sync.sqlite: build/profile src/profile/storage-sync.sqlite
|
|
|
|
cp src/profile/storage-sync.sqlite build/profile/storage-sync.sqlite
|
|
|
|
|
2021-07-01 10:26:19 -04:00
|
|
|
copy-xpi: build/NoScript.xpi build/HTTPSEverywhere.xpi build/i2prhz@eyedeekay.github.io.xpi build/profile/extensions
|
2018-12-11 11:23:27 +00:00
|
|
|
cp build/NoScript.xpi "build/profile/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi"
|
|
|
|
cp build/HTTPSEverywhere.xpi "build/profile/extensions/https-everywhere-eff@eff.org.xpi"
|
2021-07-01 10:26:19 -04:00
|
|
|
cp build/i2prhz@eyedeekay.github.io.xpi build/profile/extensions/i2prhz@eyedeekay.github.io.xpi
|
2020-09-29 14:47:32 -04:00
|
|
|
|
2021-03-06 18:42:17 +00:00
|
|
|
app-profile: build/app-profile/user.js build/app-profile/prefs.js build/app-profile/chrome/userChrome.css build/app-profile/bookmarks.html build/app-profile/storage-sync.sqlite copy-app-xpi
|
|
|
|
|
|
|
|
app-profile.tgz: app-profile
|
|
|
|
$(eval PROFILE_VERSION := $(shell cat src/app-profile/version.txt))
|
|
|
|
@echo "building app-profile tarball $(PROFILE_VERSION)"
|
2021-07-01 18:20:16 -04:00
|
|
|
bash -c 'ls I2P && cp -rv build/I2P build/app-profile/I2P'; true
|
2021-03-06 19:15:47 +00:00
|
|
|
install -m755 src/unix/i2pconfig.sh build/app-profile/i2pconfig.sh
|
2021-03-06 18:42:17 +00:00
|
|
|
cd build && tar -czf app-profile-$(PROFILE_VERSION).tgz app-profile && cp app-profile-$(PROFILE_VERSION).tgz ../
|
|
|
|
|
|
|
|
build/app-profile/user.js: build/app-profile src/app-profile/user.js
|
|
|
|
cp src/app-profile/user.js build/app-profile/user.js
|
|
|
|
|
|
|
|
build/app-profile/prefs.js: build/app-profile src/app-profile/prefs.js
|
|
|
|
cp src/app-profile/prefs.js build/app-profile/prefs.js
|
|
|
|
|
|
|
|
build/app-profile/chrome/userChrome.css: build/app-profile/chrome src/app-profile/chrome/userChrome.css
|
|
|
|
cp src/app-profile/chrome/userChrome.css build/app-profile/chrome/userChrome.css
|
|
|
|
|
|
|
|
build/app-profile/bookmarks.html: build/app-profile src/app-profile/bookmarks.html
|
|
|
|
cp src/app-profile/bookmarks.html build/app-profile/bookmarks.html
|
|
|
|
|
|
|
|
build/app-profile/storage-sync.sqlite: build/app-profile src/app-profile/storage-sync.sqlite
|
|
|
|
cp src/app-profile/storage-sync.sqlite build/app-profile/storage-sync.sqlite
|
|
|
|
|
2021-07-01 10:26:19 -04:00
|
|
|
copy-app-xpi: build/NoScript.xpi build/HTTPSEverywhere.xpi build/i2prhz@eyedeekay.github.io.xpi build/app-profile/extensions
|
2021-03-06 18:42:17 +00:00
|
|
|
cp build/HTTPSEverywhere.xpi "build/app-profile/extensions/https-everywhere-eff@eff.org.xpi"
|
2021-07-01 10:26:19 -04:00
|
|
|
cp build/i2prhz@eyedeekay.github.io.xpi build/app-profile/extensions/i2prhz@eyedeekay.github.io.xpi
|
2021-03-06 18:42:17 +00:00
|
|
|
|
2021-07-01 10:26:19 -04:00
|
|
|
build/i2prhz@eyedeekay.github.io.xpi:
|
|
|
|
curl -L `cat i2psetproxy.url` > build/i2prhz@eyedeekay.github.io.xpi
|
2018-12-11 10:33:40 +00:00
|
|
|
|
2019-01-07 18:35:37 +00:00
|
|
|
build/NoScript.xpi: NoScript.url
|
2021-04-04 01:47:33 -04:00
|
|
|
curl -L `cat NoScript.url` > build/NoScript.xpi
|
2018-12-11 11:23:27 +00:00
|
|
|
|
2019-01-07 18:35:37 +00:00
|
|
|
build/HTTPSEverywhere.xpi : HTTPSEverywhere.url
|
2021-04-04 01:47:33 -04:00
|
|
|
curl -L `cat HTTPSEverywhere.url` > build/HTTPSEverywhere.xpi
|
2018-12-11 10:33:40 +00:00
|
|
|
|
2021-03-19 16:22:42 -04:00
|
|
|
clean-extensions:
|
|
|
|
rm -fv i2psetproxy.url NoScript.url HTTPSEverywhere.url
|
|
|
|
|
|
|
|
extensions:HTTPSEverywhere.url NoScript.url i2psetproxy.url
|
|
|
|
|
|
|
|
HTTPSEverywhere.url:
|
|
|
|
@echo "https://addons.mozilla.org/firefox/downloads/file/3716461/"`./amo-version.sh https-everywhere`"/https_everywhere-"`./amo-version.sh https-everywhere`"-an+fx.xpi" > HTTPSEverywhere.url
|
|
|
|
|
|
|
|
NoScript.url:
|
|
|
|
@echo "https://addons.mozilla.org/firefox/downloads/file/3534184/"`./amo-version.sh noscript`"/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi" > NoScript.url
|
|
|
|
|
|
|
|
i2psetproxy.url:
|
2021-07-01 10:26:19 -04:00
|
|
|
@echo "https://addons.mozilla.org/firefox/downloads/file/3784917/"`./amo-version.sh i2pipb-rhizome-variant`"/i2prhz@eyedeekay.github.io" > i2psetproxy.url
|
2021-03-19 16:22:42 -04:00
|
|
|
|
2018-12-11 10:33:40 +00:00
|
|
|
build/profile/extensions: build/profile
|
2018-12-14 11:55:15 +00:00
|
|
|
mkdir -p build/profile/extensions
|
2018-12-11 10:33:40 +00:00
|
|
|
|
2018-12-11 16:20:20 +00:00
|
|
|
build/profile: build
|
2018-12-14 11:55:15 +00:00
|
|
|
mkdir -p build/profile
|
2021-03-06 18:42:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
build/app-profile/chrome: build/app-profile
|
|
|
|
mkdir -p build/app-profile/chrome
|
|
|
|
|
|
|
|
build/app-profile/extensions: build/app-profile
|
|
|
|
mkdir -p build/app-profile/extensions
|
|
|
|
|
|
|
|
build/app-profile: build
|
|
|
|
mkdir -p build/app-profile
|
2021-03-06 19:15:47 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
rm -rfv /etc/i2pbrowser \
|
|
|
|
/var/lib/i2pbrowser
|
|
|
|
mkdir -p /etc/i2pbrowser \
|
|
|
|
/var/lib/i2pbrowser
|
|
|
|
install -m644 src/unix/i2pbrowserrc /etc/i2pbrowser/i2pbrowserrc
|
2021-03-20 01:57:40 -04:00
|
|
|
install -m644 src/unix/i2pbrowserdebianrc /etc/i2pbrowser/i2pbrowserdebianrc
|
2021-03-06 19:15:47 +00:00
|
|
|
install -m755 build/profile/i2pbrowser.sh /usr/local/bin/i2pbrowser
|
|
|
|
install -m755 build/app-profile/i2pconfig.sh /usr/local/bin/i2pconfig
|
2021-03-13 16:20:04 -05:00
|
|
|
install -m755 src/unix/i2p-config-service-setup.sh /usr/local/bin/i2p-config-service-setup
|
2021-03-06 19:15:47 +00:00
|
|
|
cp -vr build/profile /var/lib/i2pbrowser/profile
|
2021-03-06 19:22:00 +00:00
|
|
|
cp -vr build/app-profile /var/lib/i2pbrowser/app-profile
|
2021-03-13 16:20:04 -05:00
|
|
|
cp -vr src/icons /var/lib/i2pbrowser/icons
|
|
|
|
cp src/unix/desktop/i2pbrowser.desktop /usr/share/applications
|
|
|
|
cp src/unix/desktop/i2pconfig.desktop /usr/share/applications
|
2021-03-06 19:15:47 +00:00
|
|
|
|
2021-03-06 20:01:23 +00:00
|
|
|
uninstall:
|
|
|
|
rm -rfv /etc/i2pbrowser \
|
|
|
|
/var/lib/i2pbrowser \
|
|
|
|
/etc/i2pbrowser/i2pbrowserrc \
|
|
|
|
/usr/local/bin/i2pbrowser \
|
2021-03-13 16:20:04 -05:00
|
|
|
/usr/local/bin/i2pconfig \
|
2021-03-20 01:57:40 -04:00
|
|
|
/usr/local/bin/i2p-config-service-setup \
|
2021-03-13 16:20:04 -05:00
|
|
|
/usr/share/applications/i2pbrowser.desktop \
|
|
|
|
/usr/share/applications/i2pconfig.desktop
|
2021-03-19 16:22:42 -04:00
|
|
|
|
|
|
|
checkinstall:
|
|
|
|
checkinstall \
|
|
|
|
--default \
|
|
|
|
--install=no \
|
|
|
|
--fstrans=yes \
|
|
|
|
--pkgname=i2p-firefox \
|
|
|
|
--pkgversion=$(PROFILE_VERSION) \
|
|
|
|
--pkggroup=net \
|
|
|
|
--pkgrelease=1 \
|
|
|
|
--pkgsource="https://i2pgit.org/i2p-hackers/i2p.firefox" \
|
|
|
|
--maintainer="hankhill19580@gmail.com" \
|
2021-03-20 01:57:40 -04:00
|
|
|
--requires="firefox,wget,i2p,i2p-router" \
|
2021-03-19 16:22:42 -04:00
|
|
|
--suggests="i2p,i2p-router,syndie,tor,tsocks" \
|
|
|
|
--nodoc \
|
|
|
|
--deldoc=yes \
|
|
|
|
--deldesc=yes \
|
|
|
|
--backup=no
|