Skip to content

Commit

Permalink
Switch from i2p ppa to i2p.net deb repo (#112)
Browse files Browse the repository at this point in the history
* update i2p ppa

* update i2p ppa

* Version bump, add pr workflow

* update test_install workflow to install curl

---------

Co-authored-by: Und3rf10w <[email protected]>
  • Loading branch information
emon5122 and Und3rf10w authored Dec 23, 2024
1 parent 4ffae0c commit 0e0cb9c
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 4 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and Verify Debian Package (Pull Request)

on:
pull_request: # Triggered on pull requests
branches:
- '**' # All branches (adjust as needed)

jobs:
build-and-verify-deb:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y dpkg-dev wget curl
- name: Build the .deb package
run: |
# Build the deb package
sudo dpkg-deb -b kali-anonsurf-deb-src/ kali-anonsurf.deb
- name: Verify .deb file exists
run: |
if [ ! -f kali-anonsurf.deb ]; then
echo "ERROR: .deb file not found!"
exit 1
fi
echo ".deb file exists."
- name: Validate .deb file
run: |
dpkg --info kali-anonsurf.deb
- name: Run installer.sh
run: |
sudo chmod +x installer.sh
sudo ./installer.sh
env:
DEBIAN_FRONTEND: noninteractive # Avoid interactive prompts during package installation

- name: Verify installation
run: |
if dpkg -l | grep -qw kali-anonsurf; then
echo "kali-anonsurf installed successfully."
else
echo "ERROR: kali-anonsurf did not install successfully."
exit 1
fi
- name: Log success
run: echo "Installer script executed and verified successfully."
2 changes: 1 addition & 1 deletion .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Update packages and install dependencies
run: |
apt-get update
apt-get install -y ca-certificates
apt-get install -y ca-certificates curl
# Running installer.sh
- name: Run installer script
Expand Down
6 changes: 4 additions & 2 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ if ! command -v gpg; then
fi

# Compile the i2p ppa
echo "deb https://ppa.launchpadcontent.net/i2p-maintainers/i2p/ubuntu noble main" > /etc/apt/sources.list.d/i2p.list # Default config reads repos from sources.list.d
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AB9660B9EB2CC88B # Add i2p maintainer keys # TODO: Is there a more universal way to do this?
echo "deb [signed-by=/usr/share/keyrings/i2p-archive-keyring.gpg] https://deb.i2p.net/ $(dpkg --status tzdata | grep Provides | cut -f2 -d'-') main" > /etc/apt/sources.list.d/i2p.list
curl -o i2p-archive-keyring.gpg https://geti2p.net/_static/i2p-archive-keyring.gpg
chmod 644 i2p-archive-keyring.gpg
mv i2p-archive-keyring.gpg /usr/share/keyrings
apt-get update # Update repos

apt-get install -y secure-delete tor i2p i2p-router # install dependencies, just in case
Expand Down
2 changes: 1 addition & 1 deletion kali-anonsurf-deb-src/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: kali-anonsurf
Version: 1.2.3.1
Version: 1.2.4.0
Architecture: all
Maintainer: Und3rf10w
Installed-Size: 64
Expand Down

0 comments on commit 0e0cb9c

Please sign in to comment.