[Git][debian-gis-team/josm-installer][master] 3 commits: Add systemd timer to run josm-installer daily.
Bas Couwenberg
gitlab at salsa.debian.org
Thu Mar 12 14:13:44 GMT 2020
Bas Couwenberg pushed to branch master at Debian GIS Project / josm-installer
Commits:
a253d4e5 by Bas Couwenberg at 2020-03-12T14:59:29+01:00
Add systemd timer to run josm-installer daily.
- - - - -
2c42ccb4 by Bas Couwenberg at 2020-03-12T15:05:07+01:00
Close ITP in changelog.
- - - - -
6cceb563 by Bas Couwenberg at 2020-03-12T15:06:37+01:00
Set distribution to experimental.
- - - - -
5 changed files:
- debian/changelog
- debian/control
- debian/rules
- + josm-installer.service
- + josm-installer.timer
Changes:
=====================================
debian/changelog
=====================================
@@ -1,5 +1,5 @@
-josm-installer (0.0.1+svn16006) UNRELEASED; urgency=medium
+josm-installer (0.0.1+svn16006~exp1) experimental; urgency=medium
- * Initial release (Closes: #nnnnnn)
+ * Initial release (Closes: #953722)
- -- Bas Couwenberg <sebastic at debian.org> Thu, 12 Mar 2020 10:54:01 +0100
+ -- Bas Couwenberg <sebastic at debian.org> Thu, 12 Mar 2020 15:06:24 +0100
=====================================
debian/control
=====================================
@@ -3,7 +3,7 @@ Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
Uploaders: Bas Couwenberg <sebastic at debian.org>
Section: contrib/utils
Priority: optional
-Build-Depends: debhelper (>= 9~),
+Build-Depends: debhelper (>= 9.20160709~),
python3,
python3-flake8,
shellcheck,
=====================================
debian/rules
=====================================
@@ -7,7 +7,7 @@ BUILD_DATE=$(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
MANPAGES := $(wildcard $(CURDIR)/*.*.xml)
%:
- dh $@ --parallel
+ dh $@ --with systemd --parallel
override_dh_clean:
dh_clean *.1
@@ -32,6 +32,10 @@ override_dh_auto_install:
install -o root -g root -m 755 $(CURDIR)/josm $(CURDIR)/debian/josm-installer/usr/bin/josm
install -o root -g root -m 755 $(CURDIR)/josm-installer.py $(CURDIR)/debian/josm-installer/usr/bin/josm-installer
+ install -o root -g root -d $(CURDIR)/debian/josm-installer/lib/systemd/system
+ install -o root -g root -m 644 $(CURDIR)/josm-installer.service $(CURDIR)/debian/josm-installer/lib/systemd/system/josm-installer.service
+ install -o root -g root -m 644 $(CURDIR)/josm-installer.timer $(CURDIR)/debian/josm-installer/lib/systemd/system/josm-installer.timer
+
install -o root -g root -d $(CURDIR)/debian/josm-installer/usr/share/josm
install -o root -g root -m 644 $(CURDIR)/placeholder $(CURDIR)/debian/josm-installer/usr/share/josm/.placeholder
=====================================
josm-installer.service
=====================================
@@ -0,0 +1,8 @@
+[Unit]
+Description=josm-installer
+Documentation=man:josm-installer(1)
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/josm-installer
+PrivateTmp=true
=====================================
josm-installer.timer
=====================================
@@ -0,0 +1,10 @@
+[Unit]
+Description=josm-installer
+
+[Timer]
+OnCalendar=*-*-* 00,12:00:00
+RandomizedDelaySec=12h
+Persistent=true
+
+[Install]
+WantedBy=timers.target
View it on GitLab: https://salsa.debian.org/debian-gis-team/josm-installer/-/compare/3940059163c646b17f3b4439af2cbcaa2eff4d7b...6cceb56392a7b81d03ca26df312ee16f070519db
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/josm-installer/-/compare/3940059163c646b17f3b4439af2cbcaa2eff4d7b...6cceb56392a7b81d03ca26df312ee16f070519db
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200312/dbdcb539/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list