-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1420 from garberg/repackage_nipap
WIP: Repackage nipapd
- Loading branch information
Showing
16 changed files
with
141 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,27 @@ Source: nipap | |
Maintainer: Lukas Garberg <[email protected]> | ||
Section: python | ||
Priority: optional | ||
Build-Depends: python3 (>= 3.6), debhelper (>= 10), dh-python | ||
Standards-Version: 4.4.0 | ||
|
||
Build-Depends: debhelper-compat (= 13), | ||
dh-python, | ||
python3-all, | ||
python3-setuptools | ||
Standards-Version: 4.6.1 | ||
Homepage: https://spritelink.github.io/NIPAP/ | ||
Rules-Requires-Root: no | ||
|
||
Package: nipap-common | ||
Architecture: all | ||
Depends: python3 (>= 3.6), ${misc:Depends}, python3-ipy | ||
Multi-Arch: foreign | ||
Depends: ${misc:Depends}, ${python3:Depends} | ||
Suggests: python3-ldap | ||
Description: Neat IP Address Planner | ||
The Neat IP Address Planner, NIPAP, is a system built for efficiently managing | ||
large amounts of IP addresses. This is the common libraries. | ||
|
||
|
||
Package: nipapd | ||
Architecture: all | ||
Depends: debconf, nipap-common, python3 (>= 3.6), ${misc:Depends}, python3-psycopg2, python3-flask, python3-flask-xml-rpc-re, python3-flask-restx, python3-flask-compress, python3-tornado, python3-parsedatetime, python3-tz, python3-dateutil, python3-psutil, python3-pyparsing, python3-jwt, python3-requests | ||
Multi-Arch: foreign | ||
Depends: ${misc:Depends}, ${python3:Depends}, nipap-common | ||
Description: Neat IP Address Planner XML-RPC daemon | ||
The Neat IP Address Planner, NIPAP, is a system built for efficiently managing | ||
large amounts of IP addresses. This is the XML-RPC daemon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
etc | ||
usr/sbin/nipap-passwd | ||
usr/sbin/nipapd | ||
usr/bin/nipapd | ||
usr/bin/nipap-passwd | ||
usr/share/nipap | ||
usr/share/nipap/nipap.conf.dist etc/nipap | ||
usr/share/man/man8/nipapd.8 | ||
usr/share/man/man1/nipap-passwd.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
flask-restx python3-flask-restx | ||
Flask python3-flask (>= 2.0.0) | ||
flask-xml-rpc-re python3-flask-xml-rpc-re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/sh | ||
|
||
envtpl --allow-missing --keep-template /nipap/nipap.conf.dist -o /etc/nipap/nipap.conf | ||
mkdir -p /etc/nipap/ | ||
envtpl --allow-missing --keep-template /usr/local/share/nipap/nipap.conf.dist -o /etc/nipap/nipap.conf | ||
/bin/bash /nipap/wait-for-it.sh -t 60 $DB_HOST:$DB_PORT -- sleep 5 | ||
|
||
/usr/sbin/nipap-passwd create-database | ||
/usr/local/bin/nipap-passwd create-database | ||
if [ -n "$NIPAP_USERNAME" -a -n "$NIPAP_PASSWORD" ]; then | ||
echo "Creating user '$NIPAP_USERNAME'" | ||
/usr/sbin/nipap-passwd add --username $NIPAP_USERNAME --name "NIPAP user" --password $NIPAP_PASSWORD | ||
/usr/local/bin/nipap-passwd add --username $NIPAP_USERNAME --name "NIPAP user" --password $NIPAP_PASSWORD | ||
fi | ||
echo "Starting nipap daemon.." | ||
exec /usr/sbin/nipapd --debug --foreground --auto-install-db --auto-upgrade-db --no-pid-file | ||
exec /usr/local/bin/nipapd --debug --foreground --auto-install-db --auto-upgrade-db --no-pid-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[project] | ||
name = "nipap" | ||
dynamic = ["version", "description"] | ||
readme = "README.rst" | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: System Administrators', | ||
'License :: OSI Approved :: MIT License', | ||
'Natural Language :: English', | ||
'Operating System :: POSIX :: Linux', | ||
'Programming Language :: Python :: 3' | ||
] | ||
keywords = ["nipap"] | ||
dependencies = [ | ||
"zipp==3.21.0", | ||
"importlib_metadata==8.5.0", | ||
"Flask==3.0.3", | ||
"Flask-Compress==1.17", | ||
"flask-xml-rpc-re==0.1.4", | ||
"flask-restx==1.3.0", | ||
"requests==2.32.3", | ||
"IPy==1.01", | ||
"Jinja2==3.1.5", | ||
"MarkupSafe==3.0.2", | ||
"Werkzeug==3.1.3", | ||
"certifi==2024.12.14", | ||
"itsdangerous==2.2.0", | ||
"parsedatetime==2.6", | ||
"psutil==6.1.1", | ||
"psycopg2==2.9.10", | ||
"pyparsing==3.2.1", | ||
"python-dateutil==2.8.2", | ||
"pytz==2024.2", | ||
"pyjwt==2.10.1", | ||
"tornado==6.4.2", | ||
# "docutils==0.21.2" | ||
] | ||
|
||
[project.optional-dependencies] | ||
instrumentation = [ | ||
"opentelemetry-api==1.29.0", | ||
"opentelemetry-exporter-otlp==1.29.0", | ||
"opentelemetry-exporter-otlp-proto-common==1.29.0", | ||
"opentelemetry-exporter-otlp-proto-grpc==1.29.0", | ||
"opentelemetry-exporter-otlp-proto-http==1.29.0", | ||
"opentelemetry-instrumentation==0.50b0", | ||
"opentelemetry-instrumentation-dbapi==0.50b0", | ||
"opentelemetry-instrumentation-flask==0.50b0", | ||
"opentelemetry-instrumentation-psycopg2==0.50b0", | ||
"opentelemetry-instrumentation-wsgi==0.50b0", | ||
"opentelemetry-proto==1.29.0", | ||
"opentelemetry-sdk==1.29.0", | ||
"opentelemetry-semantic-conventions==0.50b0", | ||
"opentelemetry-util-http==0.50b0" | ||
] | ||
|
||
ldap_auth = [ | ||
"python-ldap==3.4.4" | ||
] | ||
|
||
[project.urls] | ||
Homepage = "http://SpriteLink.github.io/NIPAP" | ||
|
||
[project.scripts] | ||
nipapd = "nipap.nipapd:run" | ||
nipap-passwd = "nipap.nipap_passwd:run" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "nipap.__version__"} | ||
|
||
[build-system] | ||
requires = [ | ||
"setuptools", | ||
# Need to be pinned to 0.20.1 in Ubuntu 24.04 as using the latest 0.21.2 | ||
# gives a diff during .deb package build. Unfortunately the files are | ||
# generated twice - first once in a virtualenv (using the version specified | ||
# here) and then once without a virtualenv using the one from the system. | ||
# There two runs produce different outputs (wich they shouldn't) causing a | ||
# diff and the package utils to b0rk out. | ||
"docutils==0.20.1" | ||
] | ||
build-backend = "setuptools.build_meta" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.