Attempting to satisfy lintian
This commit is contained in:
parent
0d88e683f6
commit
21e56c9558
5 changed files with 6 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
10
|
|
@ -1 +0,0 @@
|
|||
/usr/lib/matemat/static/upload /var/lib/matemat/upload
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
Loading…
Reference in a new issue