From 21e56c9558a0db6f03993330907b1d5dd76c6bec Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 11 Nov 2018 22:31:11 +0100 Subject: [PATCH] Attempting to satisfy lintian --- .gitlab-ci.yml | 7 +++++-- package/debian/matemat/DEBIAN/compat | 1 - package/debian/matemat/DEBIAN/matemat.links | 1 - package/debian/matemat/DEBIAN/postinst | 1 + package/debian/matemat/DEBIAN/rules | 3 --- 5 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 package/debian/matemat/DEBIAN/compat delete mode 100644 package/debian/matemat/DEBIAN/matemat.links delete mode 100755 package/debian/matemat/DEBIAN/rules diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc4cba3..82536aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,7 +71,10 @@ build_debian: - cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/ - python3.6 setup.py egg_info install --root=package/debian/matemat/ --prefix=/usr --optimize=1 - cd package/debian - - chmod 0755 -R matemat/DEBIAN + - sed -re 's$#!/usr/local/bin/python3.6$#!/usr/bin/python3.6$' -i matemat/usr/lib/matemat/matemat + - find matemat -type f -exec chmod 0644 {} \; + - find matemat -type d -exec chmod 755 {} \; + - chmod +x matemat/usr/lib/matemat/matemat - mkdir -p matemat/usr/lib/python3/dist-packages/ - rsync -a matemat/usr/lib/python3.6/site-packages/ matemat/usr/lib/python3/dist-packages/ - rm -rf matemat/usr/lib/python3.6/ @@ -81,7 +84,7 @@ build_debian: - rm -rf matemat/usr/bin - dpkg-deb --build matemat - mv matemat.deb "matemat_${MATEMAT_VERSION}-1_all.deb" - - lintian "matemat_${MATEMAT_VERSION}-1_all.deb" + - sudo -u nobody lintian "matemat_${MATEMAT_VERSION}-1_all.deb" - sha256sum *.deb > SHA256SUMS artifacts: paths: diff --git a/package/debian/matemat/DEBIAN/compat b/package/debian/matemat/DEBIAN/compat deleted file mode 100644 index 9a03714..0000000 --- a/package/debian/matemat/DEBIAN/compat +++ /dev/null @@ -1 +0,0 @@ -10 \ No newline at end of file diff --git a/package/debian/matemat/DEBIAN/matemat.links b/package/debian/matemat/DEBIAN/matemat.links deleted file mode 100644 index e789bc0..0000000 --- a/package/debian/matemat/DEBIAN/matemat.links +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/matemat/static/upload /var/lib/matemat/upload \ No newline at end of file diff --git a/package/debian/matemat/DEBIAN/postinst b/package/debian/matemat/DEBIAN/postinst index f18f7fb..28448bc 100755 --- a/package/debian/matemat/DEBIAN/postinst +++ b/package/debian/matemat/DEBIAN/postinst @@ -15,6 +15,7 @@ if [[ "$1" == "configure" ]]; then chown matemat:matemat -R /var/lib/matemat find /var/lib/matemat -type d -exec chmod 0750 {} \; find /var/lib/matemat -type f -exec chmod 0640 {} \; + ln -sf /var/lib/matemat/upload /usr/lib/matemat/static/upload systemctl daemon-reload diff --git a/package/debian/matemat/DEBIAN/rules b/package/debian/matemat/DEBIAN/rules deleted file mode 100755 index cbe925d..0000000 --- a/package/debian/matemat/DEBIAN/rules +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/make -f -%: - dh $@