Commit 2266f8ff authored by Jochen Sprickerhof's avatar Jochen Sprickerhof Committed by Michael Tremer

Improvements from Debian packaging

parent 96e25805
Source: libloc Source: libloc
Maintainer: Stefan Schantl <stefan.schantl@ipfire.org> Maintainer: Stefan Schantl <stefan.schantl@ipfire.org>
Section: misc Section: net
Priority: optional Priority: optional
Standards-Version: 4.3.0 Standards-Version: 4.6.1
Build-Depends: Build-Depends:
debhelper (>= 11), debhelper-compat (= 13),
dh-python <!nopython>, dh-sequence-python3,
asciidoc <!nodoc>, asciidoc,
intltool (>=0.40.0), intltool,
libpython3-dev <!nopython>,
libssl-dev, libssl-dev,
libsystemd-dev, libsystemd-dev,
python3-dev:any <!nopython>,
pkg-config, pkg-config,
python3-all-dev,
systemd, systemd,
xsltproc <!nodoc>, xsltproc,
docbook-xsl <!nodoc>, docbook-xsl,
git,
Rules-Requires-Root: no Rules-Requires-Root: no
Homepage: https://location.ipfire.org/ Homepage: https://location.ipfire.org/
Vcs-Git: https://git.ipfire.org/pub/git/location/libloc.git Vcs-Git: https://salsa.debian.org/debian/libloc.git
Vcs-Browser: https://git.ipfire.org/pub/git/location/libloc.git Vcs-Browser: https://salsa.debian.org/debian/libloc
Description: IP geolocation query library
libloc is a lightweight library to query the IPFire Location database and
determine the location of someone else on the Internet based on their IP
address.
Package: libloc1 Package: libloc1
Architecture: any Architecture: any
Section: libs Section: libs
Pre-Depends:
${misc:Pre-Depends}
Depends: Depends:
${shlibs:Depends}, ${shlibs:Depends},
${misc:Depends} ${misc:Depends},
Recommends:
location (= ${binary:Version})
Multi-Arch: same Multi-Arch: same
Description: Location library Description: ${source:Synopsis}
A library to determine the location of someone on the Internet ${source:Extended-Description}
.
This package provides the shared library.
Package: libloc-dev Package: libloc-dev
Architecture: any Architecture: any
...@@ -42,42 +42,46 @@ Section: libdevel ...@@ -42,42 +42,46 @@ Section: libdevel
Depends: Depends:
libloc1 (= ${binary:Version}), libloc1 (= ${binary:Version}),
${misc:Depends}, ${misc:Depends},
Suggests:
pkg-config
Multi-Arch: same Multi-Arch: same
Description: Development files for libloc Description: ${source:Synopsis} (development files)
Install this package if you wish to develop your own programs using ${source:Extended-Description}
libloc. .
This package provides the headers and development files needed to use libloc
in your own programs.
Package: location Package: location
Architecture: any Architecture: all
Pre-Depends:
${misc:Pre-Depends}
Depends: Depends:
python3-location, python3-location,
${misc:Depends}, ${misc:Depends},
${python3:Depends} ${python3:Depends},
Recommends:
libloc-database,
Replaces: location-importer (<< 0.9.14-1~) Replaces: location-importer (<< 0.9.14-1~)
Breaks: location-importer (<< 0.9.14-1~) Breaks: location-importer (<< 0.9.14-1~)
Multi-Arch: same Description: ${source:Synopsis} (CLI utilities)
Description: CLI utilities for libloc ${source:Extended-Description}
Commands to determine someone's location on the Internet .
This package provides CLI utilities based on libloc.
Package: python3-location Package: python3-location
Architecture: any Architecture: any
Section: python Section: python
Pre-Depends:
${misc:Pre-Depends}
Depends: Depends:
${misc:Depends}, ${misc:Depends},
${python3:Depends}, ${python3:Depends},
${shlibs:Depends}, ${shlibs:Depends},
python3-psycopg2, python3-psycopg2,
Replaces: location-python (<< 0.9.14-1~) Replaces:
Breaks: location-python (<< 0.9.14-1~), location-importer (<< 0.9.14-1~) location-python (<< 0.9.14-1~),
Breaks:
location-python (<< 0.9.14-1~),
location-importer (<< 0.9.14-1~),
Multi-Arch: foreign Multi-Arch: foreign
Description: Python modules for libloc Description: ${source:Synopsis} (Python 3 bindings)
This package contains Python bindings for libloc ${source:Extended-Description}
.
This package provides the Python 3 bindings for libloc.
Package: location-python Package: location-python
Depends: python3-location, ${misc:Depends} Depends: python3-location, ${misc:Depends}
......
This diff is collapsed.
usr/include/libloc usr/include/libloc
usr/lib/*/libloc.so usr/lib/*/libloc.so
usr/lib/*/pkgconfig usr/lib/*/pkgconfig
usr/share/man/man3
usr/lib/*/libloc.so.* usr/lib/*/libloc.so.*
usr/share/locale/*/LC_MESSAGES/libloc.mo
...@@ -13,6 +13,7 @@ libloc.so.1 libloc1 #MINVER# ...@@ -13,6 +13,7 @@ libloc.so.1 libloc1 #MINVER#
loc_as_list_new@LIBLOC_1 0.9.5 loc_as_list_new@LIBLOC_1 0.9.5
loc_as_list_ref@LIBLOC_1 0.9.5 loc_as_list_ref@LIBLOC_1 0.9.5
loc_as_list_size@LIBLOC_1 0.9.5 loc_as_list_size@LIBLOC_1 0.9.5
loc_as_list_sort@LIBLOC_1 0.9.12
loc_as_list_unref@LIBLOC_1 0.9.5 loc_as_list_unref@LIBLOC_1 0.9.5
loc_as_new@LIBLOC_1 0.9.4 loc_as_new@LIBLOC_1 0.9.4
loc_as_ref@LIBLOC_1 0.9.4 loc_as_ref@LIBLOC_1 0.9.4
...@@ -32,6 +33,7 @@ libloc.so.1 libloc1 #MINVER# ...@@ -32,6 +33,7 @@ libloc.so.1 libloc1 #MINVER#
loc_country_list_new@LIBLOC_1 0.9.5 loc_country_list_new@LIBLOC_1 0.9.5
loc_country_list_ref@LIBLOC_1 0.9.5 loc_country_list_ref@LIBLOC_1 0.9.5
loc_country_list_size@LIBLOC_1 0.9.5 loc_country_list_size@LIBLOC_1 0.9.5
loc_country_list_sort@LIBLOC_1 0.9.12
loc_country_list_unref@LIBLOC_1 0.9.5 loc_country_list_unref@LIBLOC_1 0.9.5
loc_country_new@LIBLOC_1 0.9.4 loc_country_new@LIBLOC_1 0.9.4
loc_country_ref@LIBLOC_1 0.9.4 loc_country_ref@LIBLOC_1 0.9.4
......
usr/bin/location usr/bin
usr/bin/location-importer
var/lib/location/signing-key.pem var/lib/location/signing-key.pem
src/systemd/*.service /lib/systemd/system/ lib/systemd/system
src/systemd/*.timer /lib/systemd/system/ usr/share/man/man8
#!/bin/sh
set -e
case "$1" in
configure)
mkdir -p /var/lib/location || true
ln -s /usr/share/libloc-location/location.db /var/lib/location/database.db 2>/dev/null || true
;;
esac
#DEBHELPER#
exit 0
#!/bin/sh
set -e
case "$1" in
purge)
rm -f /var/lib/location/database.db 2>/dev/null
rm -f /var/lib/location/signing-key.pem 2>/dev/null
rmdir /var/lib/location || true
;;
esac
#DEBHELPER#
exit 0
usr/lib/python3*/site-packages usr/lib/python3*
#!/usr/bin/make -f #!/usr/bin/make -f
# enable verbose mode
#export DH_VERBOSE=1
# enable all hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_SYSTEM=custom
export PYBUILD_CLEAN_ARGS=dh_auto_clean
export PYBUILD_CONFIGURE_ARGS=intltoolize --force --automake; \
PYTHON={interpreter} dh_auto_configure -- \
--disable-perl
export PYBUILD_BUILD_ARGS=dh_auto_build
export PYBUILD_INSTALL_ARGS=dh_auto_install --destdir={destdir}; \
mkdir -p {destdir}/usr/lib/python{version}/dist-packages; \
mv {destdir}/usr/lib/python3/dist-packages/_location.so {destdir}/usr/lib/python{version}/dist-packages/_location.so; \
rm -f {destdir}/usr/lib/python3/dist-packages/_location.la {destdir}/usr/lib/*/libloc.la
export PYBUILD_TEST_ARGS=dh_auto_test
%: %:
dh $@ --with python3 --with-systemd dh $@ --buildsystem=pybuild
override_dh_auto_configure:
intltoolize --force --automake
dh_auto_configure -- --disable-perl
override_dh_perl:
dh_perl -d
override_dh_systemd_enable:
dh_systemd_enable location-update.timer
override_dh_install:
dh_install
# lintian: unknown-file-in-python-module-directory
rm debian/python3-location/usr/lib/python3*/site-packages/_location.la
version=4 version=4
https://source.ipfire.org/releases/libloc/ \ https://source.ipfire.org/releases/libloc/ \
@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@ debian uupdate @PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment