From 896b6d0747f9eef103c08d5c1c32fe2bd53101cd Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Tue, 20 Feb 2024 21:40:47 +0100 Subject: [PATCH] python3-robot-detection: initial commit, version 0.4 --- python3-robot-detection/.footprint | 13 +++++++++++++ python3-robot-detection/.signature | 5 +++++ python3-robot-detection/Pkgfile | 18 ++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 python3-robot-detection/.footprint create mode 100644 python3-robot-detection/.signature create mode 100644 python3-robot-detection/Pkgfile diff --git a/python3-robot-detection/.footprint b/python3-robot-detection/.footprint new file mode 100644 index 000000000..a01c4eebe --- /dev/null +++ b/python3-robot-detection/.footprint @@ -0,0 +1,13 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/python3.10/ +drwxr-xr-x root/root usr/lib/python3.10/site-packages/ +drwxr-xr-x root/root usr/lib/python3.10/site-packages/__pycache__/ +-rw-r--r-- root/root usr/lib/python3.10/site-packages/__pycache__/robot_detection.cpython-310.pyc +drwxr-xr-x root/root usr/lib/python3.10/site-packages/robot_detection-0.4-py3.10.egg-info/ +-rw-r--r-- root/root usr/lib/python3.10/site-packages/robot_detection-0.4-py3.10.egg-info/PKG-INFO +-rw-rw-r-- root/root usr/lib/python3.10/site-packages/robot_detection-0.4-py3.10.egg-info/SOURCES.txt +-rw-rw-r-- root/root usr/lib/python3.10/site-packages/robot_detection-0.4-py3.10.egg-info/dependency_links.txt +-rw-rw-r-- root/root usr/lib/python3.10/site-packages/robot_detection-0.4-py3.10.egg-info/requires.txt +-rw-rw-r-- root/root usr/lib/python3.10/site-packages/robot_detection-0.4-py3.10.egg-info/top_level.txt +-rw-r--r-- root/root usr/lib/python3.10/site-packages/robot_detection.py diff --git a/python3-robot-detection/.signature b/python3-robot-detection/.signature new file mode 100644 index 000000000..517685f5a --- /dev/null +++ b/python3-robot-detection/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3wFmRPW0lxbmDPJn0/q1wccLKRIMAfBhiaGSKx/MlJxBotVY6qJ10wQP2d+g0CZcWmOpYp4uBacxqSLSYa8FCAs= +SHA256 (Pkgfile) = 48f3fca4f268a3e6b332555f3a12bd7085afd5bd7f5b0cb423c3897e7fdba6fe +SHA256 (.footprint) = b4b3ecea19cb6e01471d967516719aa625cde823a526c7e433a335b5880eb28a +SHA256 (robot-detection-0.4.tar.gz) = 3d8fb72ca47164b8ce55e33bdda93742f62c348def7d3cc3b42b0ceb4795a2f5 diff --git a/python3-robot-detection/Pkgfile b/python3-robot-detection/Pkgfile new file mode 100644 index 000000000..891172515 --- /dev/null +++ b/python3-robot-detection/Pkgfile @@ -0,0 +1,18 @@ +# Description: Library for detecting if a HTTP User Agent header is likely to be a bot +# URL: https://github.com/rory/robot-detection +# Maintainer: CRUX System Team, core-ports at crux dot nu +# Depends on: python3-six + +name=python3-robot-detection +version=0.4 +release=1 +source=(https://pypi.org/packages/source/r/robot-detection/robot-detection-$version.tar.gz) + +build() { + cd robot-detection-$version + + /usr/bin/python3 setup.py build + /usr/bin/python3 setup.py install --prefix=/usr \ + --root=$PKG \ + --skip-build +}