aboutsummaryrefslogtreecommitdiff
path: root/DEBIAN
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2016-10-27 09:57:35 -0400
committerB Stack <bgstack15@gmail.com>2016-10-27 09:57:35 -0400
commitb37d1fa1f1deda881eef751358917c29f38871b8 (patch)
tree9ce4a391f1ace15689fa55b8f321ec20cfc722cf /DEBIAN
downloadkeepalive-b37d1fa1f1deda881eef751358917c29f38871b8.tar.gz
keepalive-b37d1fa1f1deda881eef751358917c29f38871b8.tar.bz2
keepalive-b37d1fa1f1deda881eef751358917c29f38871b8.zip
Added to git
Diffstat (limited to 'DEBIAN')
-rw-r--r--DEBIAN/conffiles1
-rw-r--r--DEBIAN/control13
-rw-r--r--DEBIAN/md5sums14
-rwxr-xr-xDEBIAN/postinst5
-rwxr-xr-xDEBIAN/postrm4
-rwxr-xr-xDEBIAN/preinst17
-rwxr-xr-xDEBIAN/prerm18
7 files changed, 72 insertions, 0 deletions
diff --git a/DEBIAN/conffiles b/DEBIAN/conffiles
new file mode 100644
index 0000000..8dafbff
--- /dev/null
+++ b/DEBIAN/conffiles
@@ -0,0 +1 @@
+/etc/keepalive/keepalive.conf
diff --git a/DEBIAN/control b/DEBIAN/control
new file mode 100644
index 0000000..8d42833
--- /dev/null
+++ b/DEBIAN/control
@@ -0,0 +1,13 @@
+Package: keepalive
+Version: 1.0-6
+Architecture: all
+Essential: no
+Priority: extra
+Section: utils
+Maintainer: B G Stack <bgstack15@gmail.com>
+Installed-Size: 350
+Homepage: https://bgstack15.wordpress.com/
+Source: keepalive.tgz
+Pre-Depends: bgscripts (>= 1.1-17), sssd, python3
+Description: Keepalive uses a system kerberos ticket (generating one if necessary) to stay authenticated to the http proxy.
+ The user defines http_proxy and https_proxy. Keepalive assumes the system joined to an AD domain.
diff --git a/DEBIAN/md5sums b/DEBIAN/md5sums
new file mode 100644
index 0000000..3307807
--- /dev/null
+++ b/DEBIAN/md5sums
@@ -0,0 +1,14 @@
+317bad02db12ba2340b5c4ef30c9376b usr/lib/systemd/system/keepalive.service
+5aa43c0360a508ad909cfe2ac4495179 etc/keepalive/packaging.txt
+76803e4e6e9f74fc8de2ae4ddfc7c470 etc/keepalive/bin/keepalive
+4e750e3f9ce8e00feaa34d614405f066 etc/keepalive/keepalive.conf
+5c34e36e9838a29d59f3ed9fa0b4c8e7 etc/keepalive/docs/debian/postinst
+061b27636d5dd3ab9ca7fa00b5a6e0a6 etc/keepalive/docs/debian/control
+391dcefa7356b76dfdc7eebae9e450ba etc/keepalive/docs/debian/postrm
+eb54ab3395cf1a7f9ffd558b5142679d etc/keepalive/docs/debian/prerm
+2a7ad29f5f70879eca2d71a01152ac19 etc/keepalive/docs/debian/preinst
+7b84e6ef73c48a2474789f8daf76a8d7 etc/keepalive/docs/debian/conffiles
+7c2ef5667400f3fa3166bbfe41a835e2 etc/keepalive/docs/keepalive.spec
+ec2f0bc9c707cb03aa933d203e1506ef etc/keepalive/README.txt
+cf972826834f5cce6d48266bc9f18110 etc/logrotate.d/keepalive
+3b4332e514014ed750012692a75dc572 etc/rsyslog.d/keepalivelog.conf
diff --git a/DEBIAN/postinst b/DEBIAN/postinst
new file mode 100755
index 0000000..4c3092b
--- /dev/null
+++ b/DEBIAN/postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+systemctl daemon-reload 1>/dev/null 2>&1
+systemctl enable keepalive 1>/dev/null 2>&1
+systemctl start keepalive 1>/dev/null 2>&1
diff --git a/DEBIAN/postrm b/DEBIAN/postrm
new file mode 100755
index 0000000..2c475d8
--- /dev/null
+++ b/DEBIAN/postrm
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# whether removing an updated package or just removing it entirely, this is a good idea:
+systemctl daemon-reload 1>/dev/null 2>&1
diff --git a/DEBIAN/preinst b/DEBIAN/preinst
new file mode 100755
index 0000000..75ff571
--- /dev/null
+++ b/DEBIAN/preinst
@@ -0,0 +1,17 @@
+#!/bin/sh
+#https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
+thisservice=keepalive.service
+
+case "${1}" in
+ upgrade)
+ # This preinst is being run before an upgrade.
+ # $2 is old-version-number
+ systemctl stop keepalive.service 1>/dev/null 2>&1
+ ;;
+ install)
+ # Brand new installation of the package.
+ [ ]
+ ;;
+esac
+
+exit 0
diff --git a/DEBIAN/prerm b/DEBIAN/prerm
new file mode 100755
index 0000000..99a4f6a
--- /dev/null
+++ b/DEBIAN/prerm
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+thisservice=keepalive.service
+
+case "${1}" in
+ upgrade)
+ # This prerm upgrade is running because a newer version of this package is being installed.
+ # $2 is new-version-number
+ [ ]
+ ;;
+ remove)
+ # No new package being installed. Just remove it.
+ systemctl stop "${thisservice}" 1>/dev/null 2>&1
+ systemctl disable "${thisservice}" 1>/dev/null 2>&1
+ ;;
+esac
+
+exit 0
bgstack15