diff options
| -rw-r--r-- | puredns/.SRCINFO | 13 | ||||
| -rw-r--r-- | puredns/PKGBUILD | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/puredns/.SRCINFO b/puredns/.SRCINFO new file mode 100644 index 0000000..4356755 --- /dev/null +++ b/puredns/.SRCINFO | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | pkgbase = puredns | ||
| 2 | pkgdesc = A fast domain resolver and subdomain bruteforcing tool that can accurately filter out wildcard subdomains and DNS poisoned entries | ||
| 3 | pkgver = 2.1.1 | ||
| 4 | pkgrel = 1 | ||
| 5 | url = https://github.com/d3mondev/puredns | ||
| 6 | arch = x86_64 | ||
| 7 | license = GPL-3.0-or-later | ||
| 8 | makedepends = go | ||
| 9 | depends = massdns | ||
| 10 | source = puredns-2.1.1.tar.gz::https://github.com/d3mondev/puredns/archive/refs/tags/v2.1.1.tar.gz | ||
| 11 | sha256sums = cff6466a422ab7db00a8277b32159cc6c416980f0921a5a7c72c43255d233c0f | ||
| 12 | |||
| 13 | pkgname = puredns | ||
diff --git a/puredns/PKGBUILD b/puredns/PKGBUILD new file mode 100644 index 0000000..4812249 --- /dev/null +++ b/puredns/PKGBUILD | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
| 2 | |||
| 3 | pkgname=puredns | ||
| 4 | pkgver=2.1.1 | ||
| 5 | pkgrel=1 | ||
| 6 | pkgdesc="A fast domain resolver and subdomain bruteforcing tool that can accurately filter out wildcard subdomains and DNS poisoned entries" | ||
| 7 | arch=('x86_64') | ||
| 8 | url="https://github.com/d3mondev/puredns" | ||
| 9 | license=('GPL-3.0-or-later') | ||
| 10 | makedepends=('go') | ||
| 11 | depends=('massdns') | ||
| 12 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") | ||
| 13 | sha256sums=('cff6466a422ab7db00a8277b32159cc6c416980f0921a5a7c72c43255d233c0f') | ||
| 14 | |||
| 15 | prepare() { | ||
| 16 | cd "${pkgname}-${pkgver}" | ||
| 17 | mkdir -p build/ | ||
| 18 | } | ||
| 19 | |||
| 20 | build() { | ||
| 21 | cd "${pkgname}-${pkgver}" | ||
| 22 | export CGO_CPPFLAGS="${CPPFLAGS}" | ||
| 23 | export CGO_CFLAGS="${CFLAGS}" | ||
| 24 | export CGO_CXXFLAGS="${CXXFLAGS}" | ||
| 25 | export CGO_LDFLAGS="${LDFLAGS}" | ||
| 26 | export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" | ||
| 27 | go build -o build . | ||
| 28 | } | ||
| 29 | |||
| 30 | package() { | ||
| 31 | cd "${pkgname}-${pkgver}" | ||
| 32 | install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname | ||
| 33 | } | ||
