gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [ascension] 01/07: updated gitlabci and postinst script


From: gnunet
Subject: [GNUnet-SVN] [ascension] 01/07: updated gitlabci and postinst script
Date: Mon, 13 May 2019 11:10:02 +0200

This is an automated email from the git hooks/post-receive script.

rexxnor pushed a commit to branch master
in repository ascension.

commit 616f96d422468105763707227e78dea11a3d9148
Author: rexxnor <address@hidden>
AuthorDate: Mon May 13 09:13:17 2019 +0200

    updated gitlabci and postinst script
---
 .gitlab-ci.yml                                     |   6 +--
 deb_dist/ascension-0.6.1/debian/changelog          |   2 +-
 .../debian/python3-ascension.postinst              |  46 ---------------------
 .../ascension-0.6.1/debian/python3-ascension.prerm |  22 ----------
 .../debian/python3-ascension/DEBIAN/control        |   2 +-
 .../debian/python3-ascension/DEBIAN/md5sums        |   2 +-
 .../debian/python3-ascension/DEBIAN/postinst       |  44 --------------------
 .../debian/python3-ascension/DEBIAN/prerm          |  20 ---------
 .../doc/python3-ascension/changelog.Debian.gz      | Bin 162 -> 161 bytes
 deb_dist/ascension-0.6.1/debian/rules              |   2 +-
 deb_dist/python3-ascension_0.6.1-1_all.deb         | Bin 11738 -> 11284 bytes
 helpers/python3-ascension.postinst                 |   1 -
 12 files changed, 6 insertions(+), 141 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7bc6a9d..ec9e956 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,14 +18,12 @@ run-build_deb:
     - cp ../../helpers/copyright debian/copyright
     - dpkg-buildpackage -rfakeroot -uc -us
     - cd ../../
-    - apt install -y ./deb_dist/python3-ascension_0.6.1-1_all.deb
-    - ascension -h
     - bash helpers/gnunet-installer-0.11-debian.sh Production
     - apt install -y bind9 dnsutils procps
-    - gnunet-arm -Esq
+    - apt install -y ./deb_dist/python3-ascension_0.6.1-1_all.deb
+    - su ascension -s /bin/bash -c "ascension -h"
     - cd ascension/test/
     - bash test_ascension_simple.sh
-    - gnunet-arm -e
     - apt install -y dh-make
   artifacts:
     paths:
diff --git a/deb_dist/ascension-0.6.1/debian/changelog 
b/deb_dist/ascension-0.6.1/debian/changelog
index 14d75ee..d7cc82e 100644
--- a/deb_dist/ascension-0.6.1/debian/changelog
+++ b/deb_dist/ascension-0.6.1/debian/changelog
@@ -2,4 +2,4 @@ ascension (0.6.1-1) unstable; urgency=low
 
   * source package automatically created by stdeb 0.8.5
 
- -- rexxnor <address@hidden>  Fri, 10 May 2019 08:52:57 +0000
+ -- rexxnor <address@hidden>  Mon, 13 May 2019 07:11:09 +0000
diff --git a/deb_dist/ascension-0.6.1/debian/python3-ascension.postinst 
b/deb_dist/ascension-0.6.1/debian/python3-ascension.postinst
deleted file mode 100644
index 0921bcf..0000000
--- a/deb_dist/ascension-0.6.1/debian/python3-ascension.postinst
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-# postinst script for ascension-bind
-#
-# see: dh_installdeb(1)
-# load debconf library
-set -e
-
-if ! id ascension; then
-    adduser --system ascension
-fi
-# ok if this fails as gnunet is not yet a dependency
-if ! id gnunet; then
-    addgroup --system gnunet
-    adduser ascension gnunet
-fi
-
-mkdir -p /etc/ascension.d/
-
-# add systemd unit file
-    cat > "/etc/ascension.d/gnunet-ascension.service" << EOF
-[Unit]
-Description=Starting GNUnet peer for ascension
-After=network.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-User=ascension
-ExecStart=/usr/bin/gnunet-arm -s
-ExecStop=/usr/bin/gnunet-arm -e
-ExecReload=/usr/bin/gnunet-arm -r
-
-[Install]
-WantedBy=multi-user.target
-EOF
-
-# link the systemd unit file
-ln -sf "/etc/ascension.d/gnunet-ascension.service" 
"/lib/systemd/system/gnunet-ascension.service"
-systemctl daemon-reload
-
-# start and enable service
-systemctl start gnunet-ascension
-systemctl enable gnunet-ascension
-
-exit 0
-#DEBHELPER#
diff --git a/deb_dist/ascension-0.6.1/debian/python3-ascension.prerm 
b/deb_dist/ascension-0.6.1/debian/python3-ascension.prerm
deleted file mode 100644
index e0dce86..0000000
--- a/deb_dist/ascension-0.6.1/debian/python3-ascension.prerm
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-# prerm script for ascension-bind
-#
-# see: dh_installdeb(1)
-# load debconf library
-set -e
-
-mkdir -p /etc/ascension.d/
-
-# remove systemd stuff
-systemctl disable gnunet-ascension
-systemctl stop gnunet-ascension
-
-# remove the systemd files
-unlink /lib/systemd/system/gnunet-ascension.service
-rm /etc/ascension.d/gnunet-ascension.service
-
-# link the systemd unit file
-systemctl daemon-reload
-
-exit 0
-#DEBHELPER#
diff --git a/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/control 
b/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/control
index d799377..c10bcb1 100644
--- a/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/control
+++ b/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/control
@@ -3,7 +3,7 @@ Source: ascension
 Version: 0.6.1-1
 Architecture: all
 Maintainer: rexxnor <address@hidden>
-Installed-Size: 59
+Installed-Size: 58
 Depends: python3-coverage, python3-dnspython, python3-docopt, python3-mock, 
python3-pbr, python3-six, python3:any (>= 3.3.2-2~)
 Section: python
 Priority: optional
diff --git a/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/md5sums 
b/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/md5sums
index c1de06a..4924c2f 100644
--- a/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/md5sums
+++ b/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/md5sums
@@ -7,4 +7,4 @@ e616e4373e7b199db038fd8e938a3188  
usr/lib/python3/dist-packages/ascension-0.6.1.
 d41d8cd98f00b204e9800998ecf8427e  
usr/lib/python3/dist-packages/ascension/__init__.py
 8037c2638d715efd5ad70ce603c15912  
usr/lib/python3/dist-packages/ascension/ascension.py
 3211ad0ee8099a5512e496e8a4a39816  usr/man/man1/ascension.1
-f8c929864bed72e1a7f4f6cfb7dc4cab  
usr/share/doc/python3-ascension/changelog.Debian.gz
+0db5c9c566e2b68a9e71dda6a515a697  
usr/share/doc/python3-ascension/changelog.Debian.gz
diff --git a/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/postinst 
b/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/postinst
index 3c0f52c..c9ab70b 100755
--- a/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/postinst
+++ b/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/postinst
@@ -1,53 +1,9 @@
 #!/bin/sh
-# postinst script for ascension-bind
-#
-# see: dh_installdeb(1)
-# load debconf library
 set -e
 
-if ! id ascension; then
-    adduser --system ascension
-fi
-# ok if this fails as gnunet is not yet a dependency
-if ! id gnunet; then
-    addgroup --system gnunet
-    adduser ascension gnunet
-fi
-
-mkdir -p /etc/ascension.d/
-
-# add systemd unit file
-    cat > "/etc/ascension.d/gnunet-ascension.service" << EOF
-[Unit]
-Description=Starting GNUnet peer for ascension
-After=network.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-User=ascension
-ExecStart=/usr/bin/gnunet-arm -s
-ExecStop=/usr/bin/gnunet-arm -e
-ExecReload=/usr/bin/gnunet-arm -r
-
-[Install]
-WantedBy=multi-user.target
-EOF
-
-# link the systemd unit file
-ln -sf "/etc/ascension.d/gnunet-ascension.service" 
"/lib/systemd/system/gnunet-ascension.service"
-systemctl daemon-reload
-
-# start and enable service
-systemctl start gnunet-ascension
-systemctl enable gnunet-ascension
-
-exit 0
-
 # Automatically added by dh_python3:
 if which py3compile >/dev/null 2>&1; then
        py3compile -p python3-ascension 
 fi
 
 # End automatically added section
-
diff --git a/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/prerm 
b/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/prerm
index f3ba583..0f8785b 100755
--- a/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/prerm
+++ b/deb_dist/ascension-0.6.1/debian/python3-ascension/DEBIAN/prerm
@@ -1,25 +1,6 @@
 #!/bin/sh
-# prerm script for ascension-bind
-#
-# see: dh_installdeb(1)
-# load debconf library
 set -e
 
-mkdir -p /etc/ascension.d/
-
-# remove systemd stuff
-systemctl disable gnunet-ascension
-systemctl stop gnunet-ascension
-
-# remove the systemd files
-unlink /lib/systemd/system/gnunet-ascension.service
-rm /etc/ascension.d/gnunet-ascension.service
-
-# link the systemd unit file
-systemctl daemon-reload
-
-exit 0
-
 # Automatically added by dh_python3:
 if which py3clean >/dev/null 2>&1; then
        py3clean -p python3-ascension 
@@ -29,4 +10,3 @@ else
 fi
 
 # End automatically added section
-
diff --git 
a/deb_dist/ascension-0.6.1/debian/python3-ascension/usr/share/doc/python3-ascension/changelog.Debian.gz
 
b/deb_dist/ascension-0.6.1/debian/python3-ascension/usr/share/doc/python3-ascension/changelog.Debian.gz
index 89c9a11..d9147ed 100644
Binary files 
a/deb_dist/ascension-0.6.1/debian/python3-ascension/usr/share/doc/python3-ascension/changelog.Debian.gz
 and 
b/deb_dist/ascension-0.6.1/debian/python3-ascension/usr/share/doc/python3-ascension/changelog.Debian.gz
 differ
diff --git a/deb_dist/ascension-0.6.1/debian/rules 
b/deb_dist/ascension-0.6.1/debian/rules
index bc762e3..c31c4f9 100755
--- a/deb_dist/ascension-0.6.1/debian/rules
+++ b/deb_dist/ascension-0.6.1/debian/rules
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 # This file was automatically generated by stdeb 0.8.5 at
-# Fri, 10 May 2019 08:52:57 +0000
+# Mon, 13 May 2019 07:11:09 +0000
 
 %:
        dh $@ --with python3 --buildsystem=python_distutils
diff --git a/deb_dist/python3-ascension_0.6.1-1_all.deb 
b/deb_dist/python3-ascension_0.6.1-1_all.deb
index 0288559..a186673 100644
Binary files a/deb_dist/python3-ascension_0.6.1-1_all.deb and 
b/deb_dist/python3-ascension_0.6.1-1_all.deb differ
diff --git a/helpers/python3-ascension.postinst 
b/helpers/python3-ascension.postinst
index 0f7d4e9..3ef3e55 100644
--- a/helpers/python3-ascension.postinst
+++ b/helpers/python3-ascension.postinst
@@ -42,5 +42,4 @@ deb-systemd-invoke daemon-reload
 deb-systemd-invoke start gnunet-ascension
 deb-systemd-invoke enable gnunet-ascension
 
-exit 0
 #DEBHELPER#

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]