Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/build-and-publish-distfile-httpx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and Publish httpx go-mod distfile (manual dispatch)

on:
workflow_dispatch:
inputs:
version:
description: "httpx version (e.g. 1.8.1)"
required: true

permissions:
contents: write

jobs:
deps:
runs-on: ubuntu-latest
steps:
- name: Checkout upstream httpx
uses: actions/checkout@v4
with:
repository: projectdiscovery/httpx
ref: "v${{ github.event.inputs.version }}"
path: httpx

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "httpx/go.mod"

- name: Generate go-mod cache
working-directory: httpx
run: |
rm -rf go-mod
GOMODCACHE="${PWD}/go-mod" go mod download -modcacherw

- name: Create deps tarball
working-directory: httpx
run: |
XZ_OPT='-T0 -9' tar -acf "httpx-${{ github.event.inputs.version }}-deps.tar.xz" go-mod
sha256sum "httpx-${{ github.event.inputs.version }}-deps.tar.xz" > "httpx-${{ github.event.inputs.version }}-deps.tar.xz.sha256"

- name: Create/Update GitHub Release and upload asset
uses: softprops/action-gh-release@v2
with:
tag_name: "httpx-${{ github.event.inputs.version }}"
name: "httpx deps ${{ github.event.inputs.version }}"
files: |
httpx/httpx-${{ github.event.inputs.version }}-deps.tar.xz
httpx/httpx-${{ github.event.inputs.version }}-deps.tar.xz.sha256
2 changes: 2 additions & 0 deletions net-analyzer/httpx/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST httpx-1.8.1-deps.tar.xz 288085776 BLAKE2B 80f6c77383b5c043cb376291d022d3b162f7969a61f5ea48a171a8a9b6e30136406ffda1a091c5c00fb0c44f9749b32bd957cc7eb9b3188c00ce6d60aaffa9d9 SHA512 6c74db9735afe07f93a770137b9bde99e8a1558330405d2e9aa081b95463eb67bea0b9d76ee0098a38ab21a2130d3db419cef2c8bda0dd7701ea2ee85479bec8
DIST httpx-1.8.1.gh.tar.gz 1766962 BLAKE2B e779c2249b4bb44f7ebb1c294cbebb7b92bf3402ec2cd6de8436943d2418892b21bebd453bd60a64b9b84e3dd66895db38e9b11358e1fb8f3856d6ffeeac624c SHA512 c2360a839284f722b91b33376ea9bcc48f1a5f372bb1070bcdec92d882bab03ac98af39dcf40cbf21c3b6430ae41315756a0363e893403ad63cbf77557c163a8
29 changes: 29 additions & 0 deletions net-analyzer/httpx/httpx-1.8.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Fast and multi-purpose HTTP toolkit that allows running multiple probes"
HOMEPAGE="https://docs.projectdiscovery.io/opensource/httpx/overview"

SRC_URI="
https://github.com/projectdiscovery/httpx/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
https://github.com/techtruth/pentoo-overlay/releases/download/httpx-${PV}-deps.tar.xz
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"

BDEPEND=">=dev-lang/go-1.24.0"

src_compile() {
einfo "Building httpx"
ego build -trimpath -o httpx ./cmd/httpx || die "Failed to build httpx"
}

src_install() {
dobin httpx
}
18 changes: 18 additions & 0 deletions net-analyzer/httpx/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>

<longdescription lang="en">
httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library. It is designed to maintain result reliability with an increased number of threads.
</longdescription>

<upstream>
<remote-id type="github">projectdiscovery/httpx</remote-id>
<doc>https://docs.projectdiscovery.io/opensource/httpx/overview</doc>
<bugs-to>https://github.com/projectdiscovery/httpx/issues</bugs-to>
</upstream>
</pkgmetadata>