Skip to content
Open
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
42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 2
jobs:
build:
docker:
- image: circleci/stretch
steps:
- checkout
- run:
name: Install dependencies
command: |
sudo dpkg --add-architecture armhf
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y gcc python3-dev python3-dbg pkg-config \
nmap iptables devscripts ruby2.3-dev rubygems \
build-essential:native python-setuptools python3-all python3-setuptools \
crossbuild-essential-armhf binutils-multiarch
- run:
name: Install PackageCloud
command: |
sudo gem install rake package_cloud
- run:
name: Build dpkg amd64
command: |
debuild -i -us -uc -b
mkdir -p /tmp/deb
mv ../*.deb /tmp/deb
- run:
name: Build dpkg armhf
command: |
sudo apt-get install -y python3-all:armhf
debuild -aarmhf -i -us -uc -b
mkdir -p /tmp/deb
mv ../*.deb /tmp/deb
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
package_cloud push wott/python-iptables/debian/stretch /tmp/deb/*.deb
package_cloud push wott/python-iptables/raspbian/stretch /tmp/deb/*.deb
fi
- store_artifacts:
path: /tmp/deb
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
python-iptables (0.14.0) stable; urgency=medium

* update debian changelog

-- Artem Martynovich <artem.martynovich@gmail.com> Mon, 06 May 2019 23:02:50 +0600

python-iptables (0.12.0) xenial; urgency=low

* update debian changelog
Expand Down
34 changes: 10 additions & 24 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,20 @@ Source: python-iptables
Section: net
Priority: extra
Maintainer: Juliano Martinez <juliano@martinez.io>
Build-depends: python-all-dev (>= 2.7), python-all-dbg (>= 2.7), python3-all-dev (>= 3.2), python3-all-dbg, debhelper (>= 7)
X-Python-Version: >= 2.7
X-Python3-Version: >= 3.2
Standards-Version: 3.8.4
Build-Depends:
debhelper (>= 8),
dh-python,
python3-dbg,
python-setuptools,
python3-all,
python3-setuptools
Standards-Version: 3.9.8
X-Python3-Version: >= 3.5
Homepage: https://github.com/ldx/python-iptables

Package: python-iptables
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
Provides: ${python:Provides}
Description: Python bindings for iptables
Python-iptables is a Python project that provides bindings to the iptables C libraries in Linux.
Interoperability with iptables is achieved using the iptables C libraries (libiptc, libxtables,
and iptables extensions), not calling the iptables executable and parsing its output as most other
iptables wrapper libraries do; this makes python-iptables faster and not prone to parsing errors,
at the same time leveraging all available iptables match and target extensions without further work.

Package: python-iptables-dbg
Section: debug
Priority: extra
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-iptables (= ${binary:Version})
Provides: ${python:Provides}
Description: Python bindings for iptables

Package: python3-iptables
Architecture: any
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, python3-pkg-resources
Description: Python3 bindings for iptables

Package: python3-iptables-dbg
Expand Down
16 changes: 2 additions & 14 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
# Thu, 14 Nov 2013 16:04:50 +0100

PY3VERS := $(shell py3versions -r)
PY2VERS := $(shell pyversions -r)

%:
dh $@ --with python2,python3 --buildsystem=python_distutils
dh $@ --with python3 --buildsystem=python_distutils

.PHONY: override_dh_clean
override_dh_clean:
Expand All @@ -27,22 +26,11 @@ override_dh_auto_install:
set -e; \
mkdir -p $(CURDIR)/debian/python3-iptables/etc/ld.so.conf.d; \
echo "/usr/lib/python3/dist-packages" > $(CURDIR)/debian/python3-iptables/etc/ld.so.conf.d/python3-dist-packages.conf

set -e; \
for py in $(PY2VERS); do \
$$py -B setup.py install --root debian/python-iptables --install-layout deb; \
$$py-dbg -B setup.py install --root debian/python-iptables-dbg --install-layout deb; \
done

.PHONY: override_dh_strip
override_dh_strip:
set -e; \
dh_strip -ppython-ev --dbg-package=python-iptables-dbg; \
dh_strip -ppython3-ev --dbg-package=python3-iptables-dbg;

override_dh_python2:
dh_python2 -ppython-iptables
dh_python2 -ppython-iptables-dbg
dh_strip -ppython3-ev --dbg-package=python3-iptables-dbg;

override_dh_python3:
dh_python3 -ppython3-iptables
Expand Down