Browse Source

Makefile added to project

buster
Vítězslav Dvořák 5 years ago
parent
commit
f4be0ef777
  1. 22
      Makefile
  2. 6
      Vagrantfile
  3. 9
      build.sh
  4. 14
      debian/changelog
  5. 23
      debian/flexibee-server-backup.debhelper.log
  6. 6
      debian/flexibee-server-backup.postrm.debhelper
  7. 28
      debian/flexibee-server.postinst
  8. 2
      debian/revision
  9. 29
      fresh.sh

22
Makefile

@ -0,0 +1,22 @@
all: fresh build install
fresh:
git pull
./fresh.sh
install:
echo install
build:
echo build
clean:
rm -rf debian/flexibee-server debian/flexibee-server-backup
rm -rf tmp/* *.deb
rm -rf debian/*.substvars debian/*.log debian/*.debhelper debian/files debian/debhelper-build-stamp
deb:
debuild -i -us -uc -b
.PHONY : install

6
Vagrantfile

@ -20,9 +20,9 @@ Vagrant.configure("2") do |config|
# config.vm.synced_folder "../data", "/vagrant_data"
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
# config.push.define "atlas" do |push|
# push.app = "vitexsoftware/flexibee"
# end
config.push.define "atlas" do |push|
push.app = "vitexsoftware/flexibee"
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update

9
build.sh

@ -5,14 +5,9 @@ PACKAGE="flexibee-server"
LATESTURL=`curl -q https://www.flexibee.eu/podpora/stazeni-flexibee/stazeni-ekonomickeho-systemu-flexibee-linux/ | grep _all.deb | awk -F'"' '{print $6}'`
LATESTPKG=`basename $LATESTURL`
if [ -f $LATESTPKG ];
then
echo using already downloaded $LATESTPKG
else
wget -c $LATESTURL
fi
wget -c $LATESTURL
VERSION=`ls flexibee_*_all.deb | awk -F_ '{print $2}'`
VERSION=`echo $LATESTPKG | awk -F_ '{print $2}'`
REVISION=`cat debian/revision | perl -ne 'chomp; print join(".", splice(@{[split/\./,$_]}, 0, -1), map {++$_} pop @{[split/\./,$_]}), "\n";'`
echo XXXXXXXXXXXXXXXXXXXXXXXXXX Building $VERSION-$REVISION

14
debian/changelog

@ -1,7 +1,19 @@
flexibee-server (2017.2.0-3) UNRELEASED; urgency=medium
[ Vítězslav Dvořák ]
* backup package
* Typo fixed
* 2017.2.0-3 Typo fixed
* 2017.2.0-3 Typo fixed
* Typo fixed
-- Vítězslav Dvořák <info@vitexsoftware.cz> Tue, 26 Sep 2017 13:04:47 +0200
flexibee-server (2017.1.11-1) UNRELEASED; urgency=medium
[ Vítězslav Dvořák ]
* Added Support for Avahi
* Package update
* backup package
-- Vítězslav Dvořák <info@vitexsoftware.cz> Fri, 16 Jun 2017 12:40:19 +0200
-- Vítězslav Dvořák <info@vitexsoftware.cz> Sun, 18 Jun 2017 01:01:52 +0200

23
debian/flexibee-server-backup.debhelper.log

@ -1,23 +0,0 @@
dh_update_autotools_config
dh_auto_configure
dh_auto_build
dh_auto_test
dh_prep
dh_auto_install
override_dh_install dh_install
dh_install
dh_installdocs
dh_installchangelogs
dh_installcron
dh_installdebconf
dh_perl
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dh_builddeb
dh_builddeb

6
debian/flexibee-server-backup.postrm.debhelper

@ -1,6 +0,0 @@
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section

28
debian/flexibee-server.postinst

@ -42,27 +42,27 @@ fi
flexibee-licensecheck
if [ -f /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database /usr/share/mime/ > /dev/null || true
update-mime-database /usr/share/mime/ > /dev/null || true
fi
if [ -f /usr/bin/xdg-desktop-menu ]; then
/usr/bin/xdg-desktop-menu install --novendor /usr/share/applications/flexibee.desktop > /dev/null || true
xdg-desktop-menu install --novendor /usr/share/applications/flexibee.desktop > /dev/null || true
fi
if [ -f /usr/bin/xdg-mime ]; then
/usr/bin/xdg-mime install --novendor /usr/share/mime/packages/flexibee.xml > /dev/null || true
xdg-mime install --novendor /usr/share/mime/packages/flexibee.xml > /dev/null || true
fi
if [ -f /usr/bin/xdg-icon-resource ]; then
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-connection.png flexibee-connection
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-backup.png flexibee-backup
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-license.png flexibee-license
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-query.png flexibee-query
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-report.png flexibee-report
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-xml.png flexibee-xml
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-isdoc.png flexibee-isdoc
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-backup.png winstrom-backup
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-license.png winstrom-license
/usr/bin/xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-xml.png winstrom-xml
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-connection.png flexibee-connection
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-backup.png flexibee-backup
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-license.png flexibee-license
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-query.png flexibee-query
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-report.png flexibee-report
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-xml.png flexibee-xml
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-isdoc.png flexibee-isdoc
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-backup.png winstrom-backup
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-license.png winstrom-license
xdg-icon-resource install --context mimetypes --size 128 /usr/share/flexibee/flexibee-xml.png winstrom-xml
fi
INSTALL_DB=true

2
debian/revision

@ -1 +1 @@
1
3

29
fresh.sh

@ -0,0 +1,29 @@
#!/bin/bash
LATESTURL=`curl -q https://www.flexibee.eu/podpora/stazeni-flexibee/stazeni-ekonomickeho-systemu-flexibee-linux/ | grep _all.deb | awk -F'"' '{print $6}'`
LATESTPKG=`basename $LATESTURL`
wget -c $LATESTURL
VERSION=`echo $LATESTPKG | awk -F_ '{print $2}'`
REVISION=`cat debian/revision | perl -ne 'chomp; print join(".", splice(@{[split/\./,$_]}, 0, -1), map {++$_} pop @{[split/\./,$_]}), "\n";'`
echo XXXXXXXXXXXXXXXXXXXXXXXXXX Building $VERSION-$REVISION
rm -rf tmp debian/data data
mkdir tmp
cd tmp
ar -x ../flexibee_${VERSION}_all.deb
cd ..
#cd debian
#tar xzvf ../tmp/control.tar.gz
#cd ..
mkdir data
cd data
tar xzvf ../tmp/data.tar.gz
cd ..
CHANGES=`git log -n 1 | tail -n+5`
dch -b -v $VERSION-$REVISION --package $PACKAGE $CHANGES
Loading…
Cancel
Save