Compare commits

..

165 commits

Author SHA1 Message Date
waja ffebf7f518
Merge pull request #5 from waja/dependabot-github_actions-actions-checkout-4
build(deps): bump actions/checkout from 3 to 4
2023-09-05 09:04:17 +02:00
dependabot[bot] ce92cd06b4
build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 04:19:04 +00:00
waja 267aa83a68
Merge pull request #4 from waja/dependabot-github_actions-dawidd6-action-debian-package-1.5.0 2023-03-07 06:06:02 +01:00
dependabot[bot] 16b8293653
build(deps): bump dawidd6/action-debian-package from 1.4.4 to 1.5.0
Bumps [dawidd6/action-debian-package](https://github.com/dawidd6/action-debian-package) from 1.4.4 to 1.5.0.
- [Release notes](https://github.com/dawidd6/action-debian-package/releases)
- [Commits](https://github.com/dawidd6/action-debian-package/compare/v1.4.4...v1.5.0)

---
updated-dependencies:
- dependency-name: dawidd6/action-debian-package
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 05:00:23 +00:00
waja d076cb2f9a
Merge pull request #3 from waja/dependabot-github_actions-dawidd6-action-debian-package-1.4.4
build(deps): bump dawidd6/action-debian-package from 1.4.0 to 1.4.4
2023-01-24 06:11:29 +01:00
dependabot[bot] 1b91db0783
build(deps): bump dawidd6/action-debian-package from 1.4.0 to 1.4.4
Bumps [dawidd6/action-debian-package](https://github.com/dawidd6/action-debian-package) from 1.4.0 to 1.4.4.
- [Release notes](https://github.com/dawidd6/action-debian-package/releases)
- [Commits](https://github.com/dawidd6/action-debian-package/compare/v1.4.0...v1.4.4)

---
updated-dependencies:
- dependency-name: dawidd6/action-debian-package
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-24 04:05:07 +00:00
Jan Wagner 65d65c4174 New changelog 2023-01-23 12:35:19 +00:00
Jan Wagner d6b6724967 Prepare release 2023-01-23 12:31:45 +00:00
Jan Wagner ea639a6b57 Bump debhelper from old 12 to 13. 2023-01-23 09:46:52 +00:00
Jan Wagner ec1d2affe1 Set Rules-Requires-Root: no.
Changes-By: lintian-brush
Fixes: lintian: silent-on-rules-requiring-root
See-also: https://lintian.debian.org/tags/silent-on-rules-requiring-root.html
2023-01-23 09:17:49 +00:00
Jan Wagner 032d1f7590 Set upstream metadata fields: Archive, Bug-Database.
Changes-By: lintian-brush
2023-01-23 09:17:49 +00:00
Jan Wagner a009193ed0 Adding unitfile 2023-01-23 09:17:27 +00:00
Jan Wagner cacafc832c Merge branch 'master' of github.com:waja/ps-watcher 2023-01-18 14:38:46 +00:00
Jan Wagner 2fed3743b8 disable not working ci pipelines 2023-01-18 14:34:50 +00:00
Jan Wagner 97dd2ee6db Drop lsb-base, sysvinit-utils is essential 2023-01-18 14:22:55 +00:00
Jan Wagner e427efab7a Update watch file format version to 4.
Changes-By: lintian-brush
Fixes: lintian: older-debian-watch-file-standard
See-also: https://lintian.debian.org/tags/older-debian-watch-file-standard.html
2023-01-18 12:35:46 +00:00
Jan Wagner 7339857ddb Bump Standards-Version to 4.6.2 2023-01-18 12:35:10 +00:00
Jan Wagner 02612c6f87 Use secure URI in Homepage field.
Changes-By: lintian-brush
Fixes: lintian: homepage-field-uses-insecure-uri
See-also: https://lintian.debian.org/tags/homepage-field-uses-insecure-uri.html
2023-01-18 12:34:33 +00:00
Jan Wagner a32dc0d4de Updating build pipelines 2022-10-20 13:08:52 +02:00
waja a5926be575
Merge pull request #1 from waja/dependabot-github_actions-actions-checkout-3 2022-03-02 08:06:31 +01:00
dependabot[bot] 05ad103568
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 04:25:04 +00:00
Jan Wagner ec4e93abda ci: pin action versions 2021-07-21 15:44:41 +02:00
Jan Wagner b8ef5714ec Do not remove .git* anymore 2021-07-16 23:31:16 +02:00
Jan Wagner 21a8edf68d Adding Dependabot config 2021-07-16 23:10:48 +02:00
Jan Wagner 1c64860e1b Adding d/.gitlab-ci.yml 2021-02-05 13:23:54 +01:00
Jan Wagner c390306e93 d/source/options: Adding .github to diff ignore 2021-02-05 12:40:24 +01:00
Jan Wagner 829bf29dc3 Set upstream metadata fields: Repository.
Changes-By: lintian-brush
Fixes: lintian: upstream-metadata-file-is-missing
See-also: https://lintian.debian.org/tags/upstream-metadata-file-is-missing.html
2021-02-04 21:39:01 +01:00
Jan Wagner 5f175a7e67 Use secure copyright file specification URI.
Changes-By: lintian-brush
Fixes: lintian: insecure-copyright-format-uri
See-also: https://lintian.debian.org/tags/insecure-copyright-format-uri.html
2021-02-04 21:38:51 +01:00
Jan Wagner 2dfb8419d5 New changelog 2021-01-06 22:04:52 +01:00
Jan Wagner 1597e17c3c Prepare release 2021-01-06 22:02:40 +01:00
Jan Wagner 412e691155 d/control: Raise compat level to 12 2020-12-29 18:43:18 +01:00
Jan Wagner 559d2a8088 Adding Github CI 2020-12-27 23:39:54 +01:00
Jan Wagner 75383b3a61 Bump Standards-Version to 4.5.1.0, no changes needed 2020-12-08 22:54:40 +01:00
Jan Wagner ed0099b0b6 Raising compat level to 9, debhelper is already on 9 (Closes: #965785) 2020-12-08 22:49:05 +01:00
Jan Wagner 88e095e7ae New changelog entry 2019-01-24 08:26:46 +01:00
Jan Wagner 92680969c0 Prepare release 2019-01-24 08:19:22 +01:00
Jan Wagner 14f90ddfbf d/control: Priority extra is deprecated, using optional 2019-01-24 08:17:18 +01:00
Jan Wagner 910f8b91fa d/control: Bump Standards-Version to 4.3.0, no changes needed 2019-01-24 08:14:22 +01:00
Jan Wagner adb45ae116 travis-ci: Use xenial image 2018-11-08 16:47:24 +01:00
Jan Wagner 93fe2e97b8 d/changelog: Add missing entry 2016-12-05 14:32:03 +01:00
Jan Wagner 3914d47a2a d/changelog: New changelog 2016-12-05 11:48:56 +01:00
Jan Wagner 1122c12698 d/changelog: Prepare release 2016-12-05 11:23:47 +01:00
Jan Wagner 0ba1b56b65 travis-ci: Add my own trusty ppa for newer lintian 2016-11-18 18:03:27 +01:00
Jan Wagner 212f8e2c67 travis-ci: Testing stable too and fetching all tags 2016-11-18 17:42:45 +01:00
Jan Wagner 3f09626ea0 travis-ci: Make use of travis.d.n 2016-11-14 11:35:51 +01:00
Jan Wagner 5d47daa3b9 d/control: Droping perl-modules build dep 2016-11-14 00:52:35 +01:00
Jan Wagner e77e9ec3e7 d/rules: Use dh_prep instead of 'dh_clean -k' 2016-11-14 00:45:38 +01:00
Jan Wagner f37bba04a8 d/control: Depend on lsb-base 2016-11-14 00:42:34 +01:00
Jan Wagner e87e5a8c79 d/control: Bump Standards-Version to 3.9.8, no changes needed 2016-11-14 00:42:04 +01:00
Jan Wagner c408d41ece travis-ci: automatically install dependencies 2015-10-19 16:40:44 +02:00
Jan Wagner bf74eadb21 travis-ci: Adding requried arguments for trusty 2015-10-19 16:39:07 +02:00
Jan Wagner ec7e507d7b travis-ci: grab actual used upstream version 2015-08-21 11:16:49 +02:00
Jan Wagner 811040721f debian/control: reformating with warp-and-sort 2015-08-20 14:12:03 +02:00
Jan Wagner 14ced40700 Updating copyright and author of debian/bin/github-release.sh 2015-03-18 21:32:42 +01:00
Jan Wagner f0203f7f52 Merging upstream changes of github-release.sh 2015-03-17 00:02:39 +01:00
Jan Wagner 93f9a0b37d travis-ci: Fix setting environment variables 2015-03-15 17:54:08 +01:00
Jan Wagner 0ab833e3e9 travis-ci: Initial support for uploading releases to github 2015-03-15 16:46:01 +01:00
Jan Wagner 730cbe8743 travis-ci: bypass certificate validation of uscan 2015-03-11 14:45:50 +01:00
Jan Wagner 4717c8d55a travis-ci: bypassing #687834 2015-03-11 09:33:47 +01:00
Jan Wagner 6f42c4c78c travis-ci: install ca-certificates to get certs for uscan 2015-03-11 09:24:08 +01:00
Jan Wagner 97be2474f7 travis-ci: build package with dpkg-buildpackage 2015-03-10 16:02:19 +01:00
Jan Wagner cb6a23cab4 travis-ci: don't install build-deps manual 2015-03-10 16:02:03 +01:00
Jan Wagner 0d63c8c880 Bump Standards-Version to 3.9.6, no changes needed 2014-10-13 15:17:51 +02:00
Jan Wagner bb3b349fb7 New changelog 2014-10-13 15:17:34 +02:00
Jan Wagner 9c24a6a862 Prepare changelog for release 2014-03-10 00:42:45 +01:00
Jan Wagner a36ddd64ca Ignore modifications of ps-watcher script 2014-03-10 00:36:55 +01:00
Jan Wagner f2c794754f Update Vcs-headers to selfhosted VCS
Conflicts:
	debian/control
2014-03-10 00:34:11 +01:00
Jan Wagner 056d770640 Prepare changelog for release 2014-03-02 16:44:39 +01:00
Jan Wagner 1a95e5d755 Remove obsolete lintian override file 2014-02-27 23:14:18 +01:00
Jan Wagner a4f22b31e0 Update VCS-* fields to current canonical URIs 2014-02-27 23:10:46 +01:00
Jan Wagner 84de0bcdc0 Remove asterisks from NEWS file 2014-02-27 23:07:23 +01:00
Jan Wagner 7fab357410 travis-ci: Add lintian checks after build 2014-02-27 23:02:41 +01:00
Jan Wagner 8ec3e395db travcis-ci: Reorder and comment 2014-02-27 23:02:13 +01:00
Jan Wagner 9d9887c769 travis-ci: Add travis-ci config 2014-02-27 23:01:51 +01:00
Jan Wagner a154d1ab70 Remove ps-watcher binary when making clean 2014-02-19 21:48:10 +01:00
Jan Wagner b9b8758e67 Updating standards version to 3.9.5, no changes needed 2013-11-09 17:41:40 +01:00
Jan Wagner d7faae5a2b Update Vcs-headers 2013-11-09 00:09:13 +01:00
Jan Wagner e5bc30b3f0 Update debian/copyright to latest machine-readable format 2013-11-08 23:29:48 +01:00
Jan Wagner 6f0b2fa64b Source init functions in init script 2013-11-08 22:32:29 +01:00
Jan Wagner dc0bca0b52 Updating standards version to 3.9.4, no changes needed 2013-11-08 22:30:31 +01:00
Jan Wagner 62ebac8c57 Adjusting clean target in debian/rules to completely cleanup 2013-11-08 22:22:24 +01:00
Jan Wagner 9f9bacd9ea Add needed changes to patches/ps_binary 2013-11-08 22:16:25 +01:00
Jan Wagner a20812d2bc Merge tag 'upstream/1.08'
Upstream version 1.08
2013-11-06 09:53:41 +01:00
Jan Wagner 5959c0309d Merge tag 'upstream/1.07'
Upstream version 1.07
2013-11-06 09:53:33 +01:00
Jan Wagner a3087cfc85 new changelog 2012-03-29 17:43:17 +00:00
Jan Wagner e1c0a488fe Fix comparation 2012-03-29 17:31:24 +00:00
Jan Wagner 600c2c7d4e new changelog 2012-03-28 17:36:00 +00:00
Jan Wagner 293d757eb6 Depend on procps 2012-03-28 17:35:40 +00:00
Jan Wagner 739b42c6ad new changelog 2012-03-28 06:55:27 +00:00
Jan Wagner df6e1606b3 prepare release 2012-03-28 06:55:05 +00:00
Jan Wagner f24ac4d4f7 set ps_prog to "/bin/ps" 2012-03-28 06:50:43 +00:00
Jan Wagner 5cf9d869f4 add build-arch and build-indep targets 2012-03-28 06:22:26 +00:00
Jan Wagner 8aa3e507ac switch to packaging 3.0 and bump standards 2012-03-28 06:14:25 +00:00
Jan Wagner a87a8a38fa new changelog 2010-03-10 11:47:38 +00:00
Jan Wagner 57b0f54dab prepare release 2010-03-10 11:44:58 +00:00
Jan Wagner 16f0e23a66 fixing #523405 2010-03-10 11:42:07 +00:00
Jan Wagner 13e3215b4c Add trailing trunk/ at Vcs-Svn-field 2010-03-10 08:16:46 +00:00
Jan Wagner 1247f08ec9 * Bump Standards-Version to 3.8.4, no changes needed
* Migrate Vcs-Fields over to scm.uncompleted.org
* Add 1.0 to debian/source/format
2010-02-23 15:46:31 +00:00
Jan Wagner e88343e79b fixup copyright 2009-07-25 23:41:11 +00:00
Jan Wagner f0401d2e35 make lintian happy 2009-07-24 18:00:29 +00:00
Jan Wagner 8bd82d31a9 be smarter 2009-07-24 18:00:08 +00:00
Jan Wagner 5992785d51 remove path from pidof 2009-07-24 17:29:11 +00:00
Jan Wagner 6754ae7828 bump policy 2009-07-24 17:23:05 +00:00
Jan Wagner 817c835598 move start and stop positions 2009-07-24 17:21:00 +00:00
Jan Wagner dd87cc4560 new upstream release 2009-03-16 09:17:56 +00:00
Jan Wagner 4b9e10612f released 2009-02-19 16:31:51 +00:00
Jan Wagner a8cf5121a6 new release 2009-02-19 16:25:10 +00:00
Jan Wagner 9aca40eb19 removed use of pidof from init-script 2008-10-01 09:08:17 +00:00
Jan Wagner 7364475f62 new version 2008-07-20 13:47:05 +00:00
Jan Wagner c4b6006011 some more improvements 2008-07-20 12:35:52 +00:00
Jan Wagner 95e5324a90 move autotools-dev to Build-Depends-Indep 2008-07-20 11:49:31 +00:00
Jan Wagner 25b9c2fbb4 release 2008-07-20 11:44:04 +00:00
Jan Wagner b1f9fae73c machine-interpretable copyright 2008-07-20 11:43:51 +00:00
Jan Wagner bea45a9703 Updating standards version to 3.8.0 2008-06-07 10:02:29 +00:00
Jan Wagner be6a1368e2 bump copyright of packaging to 2008 2008-04-14 21:36:55 +00:00
Jan Wagner 137520de05 move copy of config.guess and and config.sub into config.status target 2008-04-02 22:32:31 +00:00
Jan Wagner 9d3aeffac5 add missing changelog entry 2008-04-02 22:01:32 +00:00
Jan Wagner 6d3ebb24e8 adjust init script since daemon supports writing pidfiles 2008-04-02 21:38:04 +00:00
Jan Wagner bd1517fc23 add dpatch infrastructure 2008-04-02 21:37:11 +00:00
Jan Wagner e87dd33c7c add pidfile patch 2008-04-02 21:35:56 +00:00
Jan Wagner 72cbbca83b remove whitespaces from changelog and change Priority to extra 2008-04-02 10:55:50 +00:00
Jan Wagner 09b4e8a07b update to standards 3.7.3, added Vcs- fields, moved Homepage 2007-12-09 22:14:30 +00:00
Jan Wagner 5a687c0f94 fix clean target 2007-11-08 08:26:03 +00:00
Jan Wagner c2af72554c preinst 2007-07-06 21:18:24 +00:00
Jan Wagner 6174521123 use postinst instead of prerm 2007-07-06 21:16:07 +00:00
Jan Wagner 1d902759cf foo 2007-07-06 21:15:18 +00:00
Jan Wagner 7d8b6199ba fix init script 2007-07-06 21:13:00 +00:00
Jan Wagner 1344d0b133 provide upgrade path for versions where no (correct) pidfile was written 2007-07-05 09:05:04 +00:00
Jan Wagner 1e0f3e9ca4 provide upgrade path for versions where no (correct) pidfile was written 2007-07-05 09:03:08 +00:00
Jan Wagner 6bb457582f drop handling of upstream code 2007-07-04 19:33:56 +00:00
Jan Wagner 7836491e0d update changelog 2007-07-04 19:28:27 +00:00
Jan Wagner 5360efdfa7 generate pidfile in some ugly way and drop use of killall 2007-07-04 19:28:02 +00:00
Jan Wagner 8c1a633017 drop and use debhelper instead 2007-07-04 19:24:33 +00:00
Jan Wagner 60e412165e fix package upgrade 2007-03-17 21:55:41 +00:00
Jan Wagner f54be892ca fix debhelper scripts and revert other changes to -5 2007-03-08 10:26:35 +00:00
Jan Wagner 09f8c009bf new revision 2007-03-08 08:19:30 +00:00
Jan Wagner 5b5a109700 fix typo 2007-03-08 08:19:19 +00:00
Jan Wagner 88f9eeafa0 ajust year in copyright 2007-01-28 12:52:17 +00:00
Jan Wagner 29a1268138 change urgency 2006-12-03 20:48:16 +00:00
Jan Wagner 92d180b60b and removed from builddeps 2006-12-03 20:38:42 +00:00
Jan Wagner aa2dc95550 move libsys-syslog-perl to Recommands 2006-12-03 20:36:21 +00:00
Jan Wagner 02f361cb41 some details about startup sequence 2006-11-16 12:31:12 +00:00
Jan Wagner 1e321fc09a changes 2006-11-16 11:30:30 +00:00
Jan Wagner f9dd6ccfb1 released 2006-11-09 13:08:29 +00:00
Jan Wagner 24d768fda7 fixies 2006-11-09 08:14:51 +00:00
Jan Wagner cbd315a9a4 fixies 2006-11-09 08:13:34 +00:00
Jan Wagner d35c0315dd own postinst and prerm 2006-11-09 08:07:34 +00:00
Jan Wagner 6f07969451 aprove initscript 2006-11-09 07:51:37 +00:00
Jan Wagner 8359c5ead7 adjust deps 2006-11-09 07:51:19 +00:00
Jan Wagner afbfaf2575 remove dh_strip from rules 2006-11-04 20:40:41 +00:00
Jan Wagner 1219badc1c remove CFLAGS 2006-11-04 20:20:15 +00:00
Jan Wagner e42dfa138a final fixes 2006-11-04 20:17:46 +00:00
Jan Wagner 26b0497c99 final fix 2006-11-04 20:01:01 +00:00
Jan Wagner 40bc40e2f4 make daniel happy 2006-11-04 19:56:37 +00:00
Jan Wagner a2ce371df5 remove senseless whitespaces 2006-11-04 19:24:07 +00:00
Jan Wagner ee0f239133 remove unused stuff 2006-11-04 19:22:47 +00:00
Jan Wagner 7c23e0bc6c make daniel happy 2006-11-04 17:33:15 +00:00
Jan Wagner ae74b6922f make daniel happy 2006-11-04 17:20:16 +00:00
Jan Wagner 725970179d make denial happy 2006-11-04 12:27:13 +00:00
Jan Wagner 9e824f218c make daniel happy 2006-11-04 12:25:45 +00:00
Jan Wagner 41651a2446 remove unused stuff 2006-11-03 22:25:10 +00:00
Jan Wagner 27e15cf3e6 add bug nr of itp 2006-11-03 21:51:01 +00:00
Jan Wagner b6b7899638 ajust dh_installinit 2006-11-03 21:44:36 +00:00
Jan Wagner 4191237ca8 make init-script install 2006-11-03 21:38:35 +00:00
Jan Wagner 4beee71c47 readd ... got lost somewhere 2006-11-03 21:35:23 +00:00
24 changed files with 962 additions and 0 deletions

12
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: "04:00"
reviewers:
- "waja"
pull-request-branch-name:
separator: "-"
open-pull-requests-limit: 10

36
.github/workflows/packaging_test.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Packaging Test
on:
push:
branches:
- $default-branch
- development
- master
# Run tests for any PRs
pull_request:
env:
SOURCE_DIR: ./
ARTIFACTS_DIR: debian/build/release/
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
env:
DEBIAN_FRONTEND: "noninteractive"
- name: Remove github artefacts
run: |
rm -rf .github*
- name: Adjust distibution in changelog file
run: |
sed -i '0,/restricted/s//stable/' debian/changelog
- name: Build Debian package
uses: dawidd6/action-debian-package@v1.5.0
with:
artifacts_directory: debian/build/release/
os_distribution: testing
- name: Debug
run: |
ls -la

71
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,71 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'debian/*' # Push events to matching debian/*, i.e. debian/1.0-2, debian/20.15.10, debian/23.20020326
name: Release Process
env:
SOURCE_DIR: ./
ARTIFACTS_DIR: debian/build/release/
jobs:
create-release:
name: Create Release
runs-on: ubuntu-latest
outputs:
release-id: ${{ steps.create_release.outputs.id }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install needed packages
run: |
if [ $(dpkg -l | grep -c dpkg-dev) -ne 1 ]; then sudo apt-get update && sudo apt-get install -y dpkg-dev; fi
- name: Gather changelog
run: |
ls -la
dpkg-parsechangelog | tail -n +9 > debian.changelog
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: debian.changelog
draft: false
prerelease: false
build:
name: Build and upload packages
needs: create-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
env:
DEBIAN_FRONTEND: "noninteractive"
- name: Remove github artefacts
run: |
rm -rf .github*
- name: Adjust distibution in changelog file
run: |
sed -i '0,/restricted/s//stable/' debian/changelog
- name: Build Debian package
uses: dawidd6/action-debian-package@v1.5.0
with:
artifacts_directory: debian/build/release/
os_distribution: testing
# - name: Build Debian package
# uses: pi-top/action-debian-package@v0.2.0
# with:
# artifacts_directory: debian/build/release/
# target_architectures: "amd64,i386"
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@release-2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ needs.create-release.outputs.release-id }}
args: debian/build/release/*

32
.travis.yml Normal file
View file

@ -0,0 +1,32 @@
dist: xenial
sudo: required
env:
- TRAVIS_DEBIAN_DISTRIBUTION=unstable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/" TRAVIS_DEBIAN_SECURITY_UPDATES=false
- TRAVIS_DEBIAN_DISTRIBUTION=testing TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
- TRAVIS_DEBIAN_DISTRIBUTION=stable TRAVIS_DEBIAN_MIRROR="http://httpredir.debian.org/debian/"
services:
- docker
before_script:
# fetch all tags (not done due travis cloning with depth=50)
- git fetch --tags
script:
# build the debian package
- wget -O- http://travis.debian.net/script.sh | sh -
after_script:
# run lintian after build
- sudo add-apt-repository -y ppa:waja/trusty-backports
- sudo apt-get update -qq
- sudo apt-get install -qq --no-install-recommends lintian
- lintian --info --display-info --display-experimental --pedantic --show-overrides ../*.deb && lintian --info --display-info --display-experimental --pedantic --show-overrides ../*.dsc
#notifications:
# email: false
branches:
except:
- /^debian\/\d/

14
debian/.gitlab-ci.yml vendored Normal file
View file

@ -0,0 +1,14 @@
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
variables:
RELEASE: 'unstable'
SALSA_CI_DISABLE_APTLY: 0
SALSA_CI_DISABLE_AUTOPKGTEST: 1
SALSA_CI_DISABLE_BLHC: 0
SALSA_CI_DISABLE_LINTIAN: 0
SALSA_CI_DISABLE_PIUPARTS: 1
SALSA_CI_DISABLE_REPROTEST: 1
SALSA_CI_DISABLE_BUILD_PACKAGE_ALL: 0
SALSA_CI_DISABLE_BUILD_PACKAGE_ANY: 0

10
debian/NEWS vendored Normal file
View file

@ -0,0 +1,10 @@
ps-watcher (1.08-1) unstable; urgency=low
moved startup to the end of the boot process and terminating to the
beginning of the shutdown process
If you modified the order of ps-watcher runlevel scripts for your own, this
adjustment will not happen automatically and you have to handle it for
yourself.
-- Jan Wagner <waja@cyconet.org> Fri, 24 Jul 2009 19:16:09 +0200

24
debian/README.Debian vendored Normal file
View file

@ -0,0 +1,24 @@
ps-watcher for Debian
---------------------
1. PROVIDE A CONFIGFILE
-----------------------
Please provide a config file, usually /etc/ps-watcher.conf. Examples are
located in /usr/share/doc/ps-watcher/examples/.
2. AUTOMATIC STARTUP
--------------------
In order to avoid the startup of the daemon on an unconfigured machine,
automatic startup, on boot, is disabled by default. To enable it just edit the
file /etc/default/ps-watcher and set the "startup" variable to 1.
3. POSITION IN STARTUP SCRIPTS
------------------------------
If you want to keep track on daemon (restart if not running any more), you
should start ps-watcher on startup after all daemons running and stop at first
on shutdown. You can use update-rc.d to updated the postition in start-scripts.
-- Jan Wagner <waja@cyconet.org> Wed, 8 Nov 2006 22:44:24 +0100

188
debian/bin/github-release.sh vendored Executable file
View file

@ -0,0 +1,188 @@
#!/bin/bash
# Copyright (c) 2014 Terry Burton
#
# https://github.com/terryburton/travis-github-release
#
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without
# limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of
# the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice
# shall be included in all copies or substantial portions
# of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
# PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
# This script provides a simple continuous deployment
# solution that allows Travis CI to publish a new GitHub
# release and upload assets to it whenever a tag is pushed:
# git tag; git push --tags
#
# It is created as a temporary solution whilst we wait for
# Travis DPL to support GitHub:
#
# https://github.com/travis-ci/dpl
#
# Place this script somewhere in your project repository (perhaps by forking
# the github-travis-release repo and adding your fork as a git submodule) then
# put something like this to your .travis.yml:
#
# after_success: .travis/github-release.sh "$TRAVIS_REPO_SLUG" "`head -1 src/VERSION`" build/release/*
#
# The first argument is your repository in the format
# "username/repository", which Travis provides in the
# TRAVIS_REPO_SLUG environment variable.
#
# The second argument is the release version which as a
# sanity check should match the tag that you are releasing.
# You could pass "`git describe`" to satisfy this check.
#
# The remaining arguments are a list of asset files that you
# want to publish along with the release.
#
# The script requires that you create a GitHub OAuth access
# token to facilitate the upload:
#
# https://help.github.com/articles/creating-an-access-token-for-command-line-use
#
# You must pass this securely in the GITHUBTOKEN environment
# variable:
#
# http://docs.travis-ci.com/user/encryption-keys/
#
# For testing purposes you can create a local convenience
# file in the script directory called GITHUBTOKEN that sets
# the GITHUBTOKEN environment variable. If you do so you MUST
# ensure that this doesn't get pushed to your repository,
# perhaps by adding it to a .gitignore file.
#
# Should you get stuck then look at a working example. This
# code is being used by Barcode Writer in Pure PostScript
# for automated deployment:
#
# https://github.com/terryburton/postscriptbarcode
set -e
REPO=$1 && shift
RELEASE=$1 && shift
RELEASEFILES=$@
if ! TAG=`git describe --exact-match --tags 2>/dev/null`; then
echo "This commit is not a tag so not creating a release"
exit 0
fi
if [ "$TRAVIS" = "true" ] && [ -z "$TRAVIS_TAG" ]; then
echo "This build is not for the tag so not creating a release"
exit 0
fi
if [ "$TRAVIS" = "true" ] && [ "$TRAVIS_TAG" != "$RELEASE" ]; then
echo "Error: TRAVIS_TAG ($TRAVIS_TAG) does not match the indicated release ($RELEASE)"
exit 1
fi
if [ "$TAG" != "$RELEASE" ]; then
echo "Error: The tag ($TAG) does not match the indicated release ($RELEASE)"
exit 1
fi
if [[ -z "$RELEASEFILES" ]]; then
echo "Error: No release files provided"
exit 1
fi
SCRIPTDIR=`dirname $0`
[ -e "$SCRIPTDIR/GITHUBTOKEN" ] && . "$SCRIPTDIR/GITHUBTOKEN"
if [[ -z "$GITHUBTOKEN" ]]; then
echo "Error: GITHUBTOKEN is not set"
exit 1
fi
echo "Creating GitHub release for $RELEASE"
echo -n "Create draft release... "
JSON=$(cat <<EOF
{
"tag_name": "$TAG",
"target_commitish": "master",
"name": "$TAG: New release",
"draft": true,
"prerelease": false
}
EOF
)
RESULT=`curl -s -w "\n%{http_code}\n" \
-H "Authorization: token $GITHUBTOKEN" \
-d "$JSON" \
"https://api.github.com/repos/$REPO/releases"`
if [ "`echo "$RESULT" | tail -1`" != "201" ]; then
echo FAILED
echo "$RESULT"
exit 1
fi
RELEASEID=`echo "$RESULT" | sed -ne 's/^ "id": \(.*\),$/\1/p'`
if [[ -z "$RELEASEID" ]]; then
echo FAILED
echo "$RESULT"
exit 1
fi
echo DONE
for FILE in $RELEASEFILES; do
if [ ! -f $FILE ]; then
echo "Warning: $FILE not a file"
continue
fi
FILESIZE=`stat -c '%s' "$FILE"`
FILENAME=`basename $FILE`
echo -n "Uploading $FILENAME... "
RESULT=`curl -s -w "\n%{http_code}\n" \
-H "Authorization: token $GITHUBTOKEN" \
-H "Accept: application/vnd.github.manifold-preview" \
-H "Content-Type: application/zip" \
--data-binary "@$FILE" \
"https://uploads.github.com/repos/$REPO/releases/$RELEASEID/assets?name=$FILENAME&size=$FILESIZE"`
if [ "`echo "$RESULT" | tail -1`" != "201" ]; then
echo FAILED
echo "$RESULT"
exit 1
fi
echo DONE
done
echo -n "Publishing release... "
JSON=$(cat <<EOF
{
"draft": false
}
EOF
)
RESULT=`curl -s -w "\n%{http_code}\n" \
-X PATCH \
-H "Authorization: token $GITHUBTOKEN" \
-d "$JSON" \
"https://api.github.com/repos/$REPO/releases/$RELEASEID"`
if [ "`echo "$RESULT" | tail -1`" = "200" ]; then
echo DONE
else
echo FAILED
echo "$RESULT"
exit 1
fi

249
debian/changelog vendored Normal file
View file

@ -0,0 +1,249 @@
ps-watcher (1.08-12) UNRELEASED; urgency=medium
*
-- Jan Wagner <waja@cyconet.org> Mon, 23 Jan 2023 12:34:15 +0000
ps-watcher (1.08-11) unstable; urgency=medium
* [5f175a7] Use secure copyright file specification URI.
* [829bf29] Set upstream metadata fields: Repository.
* [c390306] d/source/options: Adding .github to diff ignore
* [1c64860] Adding d/.gitlab-ci.yml
* [b8ef571] Do not remove .git* anymore
* [02612c6] Use secure URI in Homepage field.
* [7339857] Bump Standards-Version to 4.6.2
* [e427efa] Update watch file format version to 4.
* [97dd2ee] Drop lsb-base, sysvinit-utils is essential
* [a009193] Adding unitfile
* [032d1f7] Set upstream metadata fields: Archive, Bug-Database.
* [ec1d2af] Set Rules-Requires-Root: no.
* [ea639a6] Bump debhelper from old 12 to 13.
-- Jan Wagner <waja@cyconet.org> Mon, 23 Jan 2023 12:24:01 +0000
ps-watcher (1.08-10) unstable; urgency=medium
* [ed0099b] Raising compat level to 9, debhelper is already on 9
(Closes: #965785)
* [75383b3] Bump Standards-Version to 4.5.1.0, no changes needed
* [559d2a8] Adding Github CI
* [412e691] d/control: Raise compat level to 12
-- Jan Wagner <waja@cyconet.org> Wed, 06 Jan 2021 21:59:48 +0100
ps-watcher (1.08-9.1) unstable; urgency=medium
* Non maintainer upload by the Reproducible Builds team.
* No source change upload to rebuild on buildd with .buildinfo files.
-- Holger Levsen <holger@debian.org> Wed, 06 Jan 2021 17:28:10 +0100
ps-watcher (1.08-9) unstable; urgency=medium
* [adb45ae] travis-ci: Use xenial image
* [910f8b9] d/control: Bump Standards-Version to 4.3.0, no changes needed
* [14f90dd] d/control: Priority extra is deprecated, using optional
-- Jan Wagner <waja@cyconet.org> Thu, 24 Jan 2019 08:18:46 +0100
ps-watcher (1.08-8) unstable; urgency=medium
* [0d63c8c] Bump Standards-Version to 3.9.6, no changes needed
* [cb6a23c] travis-ci: don't install build-deps manual
* [97be247] travis-ci: build package with dpkg-buildpackage
* [6f42c4c] travis-ci: install ca-certificates to get certs for uscan
* [4717c8d] travis-ci: bypassing #687834
* [730cbe8] travis-ci: bypass certificate validation of uscan
* [0ab833e] travis-ci: Initial support for uploading releases to github
* [93f9a0b] travis-ci: Fix setting environment variables
* [f0203f7] Merging upstream changes of github-release.sh
* [14ced40] Updating copyright and author of debian/bin/github-release.sh
* [8110407] debian/control: reformating with warp-and-sort
* [ec7e507] travis-ci: grab actual used upstream version
* [bf74ead] travis-ci: Adding required arguments for trusty
* [c408d41] travis-ci: automatically install dependencies
* [e87e5a8] d/control: Bump Standards-Version to 3.9.8, no changes needed
* [f37bba0] d/control: Depend on lsb-base
* [e77e9ec] d/rules: Use dh_prep instead of 'dh_clean -k'
* [5d47daa] d/control: Droping perl-modules build dep
* [3f09626] travis-ci: Make use of travis.d.n
* [212f8e2] travis-ci: Testing stable too and fetching all tags
* [0ba1b56] travis-ci: Add my own trusty ppa for newer lintian
-- Jan Wagner <waja@cyconet.org> Mon, 05 Dec 2016 11:22:36 +0100
ps-watcher (1.08-7) unstable; urgency=medium
* [f2c7947] Update Vcs-headers to selfhosted VCS
* [a36ddd6] Ignore modifications of ps-watcher script
-- Jan Wagner <waja@cyconet.org> Mon, 10 Mar 2014 00:40:49 +0100
ps-watcher (1.08-6) unstable; urgency=low
* [9f9bacd] Add needed changes to patches/ps_binary
* [62ebac8] Adjusting clean target in debian/rules to completely cleanup
* [dc0bca0] Updating standards version to 3.9.4, no changes needed
* [6f0b2fa] Source init functions in init script
* [e5bc30b] Update debian/copyright to latest machine-readable format
* [d7faae5] Update Vcs-headers
* [b9b8758] Updating standards version to 3.9.5, no changes needed
* [a154d1a] Remove ps-watcher binary when making clean
* [9d9887c] travis-ci: Add travis-ci config
* [8ec3e39] travis-ci: Reorder and comment
* [7fab357] travis-ci: Add lintian checks after build
* [84de0bc] Remove asterisks from NEWS file
* [a4f22b3] Update VCS-* fields to current canonical URIs
* [1a95e5d] Remove obsolete lintian override file
-- Jan Wagner <waja@cyconet.org> Sun, 02 Mar 2014 16:42:19 +0100
ps-watcher (1.08-5) unstable; urgency=low
* Fix comparation in preinst script, realy (Closes: #666097)
-- Jan Wagner <waja@cyconet.org> Thu, 29 Mar 2012 11:56:23 +0200
ps-watcher (1.08-4) unstable; urgency=low
* Depend on procps, cause we need /bin/ps, thanks to Cristian Ionescu-Idbohrn
(Closes: #666097)
-- Jan Wagner <waja@cyconet.org> Wed, 28 Mar 2012 19:28:35 +0200
ps-watcher (1.08-3) unstable; urgency=low
* Bump Standards-Version to 3.9.3, no changes needed
* Raise debhelper version to 9
* Switch packaging format to "3.0 (quilt)"
* Add build-arch and build-indep targets to debian/rules
* Add patches/ps_binary to set ps_prog to "/bin/ps", thank to Gregory Davis
(Closes: 645791)
-- Jan Wagner <waja@cyconet.org> Wed, 28 Mar 2012 08:53:20 +0200
ps-watcher (1.08-2) unstable; urgency=low
* Add "Copyright" to all copyrights in debian/copyright
* Bump Standards-Version to 3.8.4, no changes needed
* Migrate Vcs-Fields over to scm.uncompleted.org
* Add 1.0 to debian/source/format
* refer README.Debian* in initscript (Closes: #523405)
-- Jan Wagner <waja@cyconet.org> Wed, 10 Mar 2010 12:44:44 +0100
ps-watcher (1.08-1) unstable; urgency=low
* new upstream release
- pidfile support
- darwin support
* remove dpatch infrastructure
* moved initscritps to S99 and K01, thanks Tim Miller Dyck (Closes: #508189)
* created NEWS.Debian
* bump standards version to 3.8.2 (no changes needed)
* calling pidof in preinst without absolute path
* adjust lintian overrides for config* files
-- Jan Wagner <waja@cyconet.org> Fri, 24 Jul 2009 19:12:00 +0200
ps-watcher (1.07-1) unstable; urgency=low
* new upstream release
- improve logfile handling
- new sample config file using perl-action
- minor typo fixes
-- Jan Wagner <waja@cyconet.org> Thu, 19 Feb 2009 17:24:47 +0100
ps-watcher (1.06-11) unstable; urgency=low
* removed use of pidof from restart|force-reload init-script target,
since daemon has pidfile support and it never worked anyways
(Closes: #500741)
-- Jan Wagner <waja@cyconet.org> Wed, 01 Oct 2008 11:05:25 +0200
ps-watcher (1.06-10) unstable; urgency=low
* bump copyright of packaging to 2008
* Updating standards version to 3.8.0, no changes needed
* implement machine-interpretable copyright file
* move autotools-dev to Build-Depends-Indep
* cleanup rules a bit
* create lintian override for "outdated-autotools-helper-file", which we
copy over from autotools-dev
* add ${misc:Depends} to Depends
-- Jan Wagner <waja@cyconet.org> Sun, 20 Jul 2008 13:43:55 +0200
ps-watcher (1.06-9) unstable; urgency=low
* added Vcs- fields, moved Homepage into source header's field
* bump standards version to 3.7.3 (no changes needed)
* change Priority to extra since libconfig-inifiles-perl is also extra and
we depend on it
* remove whitespaces trailing whitespaces from changelog
* add dpatch infrastructure
* add 01_add_pidfile_support.dpatch to implement writing pidfiles into the
daemon
* adjust init script since the daemon supports writing pidfiles
* make use of pidof in preinst
* move copy of config.guess and and config.sub into config.status target
-- Jan Wagner <waja@cyconet.org> Thu, 03 Apr 2008 00:23:39 +0200
ps-watcher (1.06-8) unstable; urgency=low
* fix clean target in rules
-- Jan Wagner <waja@cyconet.org> Thu, 08 Nov 2007 09:25:25 +0100
ps-watcher (1.06-7) unstable; urgency=low
* update copyright
* use native debhelper prerm and postinst script
* make start-stop-daemon working instead of using kill
* providing upgrade path via preinst
-- Jan Wagner <waja@cyconet.org> Wed, 4 Jul 2007 12:26:57 +0200
ps-watcher (1.06-6) unstable; urgency=medium
* fix prerm and postinst to prevent trouble when updating
-- Jan Wagner <waja@cyconet.org> Thu, 8 Mar 2007 09:20:58 +0100
ps-watcher (1.06-5) unstable; urgency=medium
* fix typo in init script which prevents from start
-- Jan Wagner <waja@cyconet.org> Wed, 28 Feb 2007 23:00:39 +0100
ps-watcher (1.06-4) unstable; urgency=medium
* moved libsys-syslog-perl from Depends to Recommands and removed from
Builddeps since Sys::Syslog is also provided by perl
-- Jan Wagner <waja@cyconet.org> Tue, 28 Nov 2006 12:01:46 +0100
ps-watcher (1.06-3) unstable; urgency=low
* moved from binary-arch to binary-indep
-- Jan Wagner <waja@cyconet.org> Thu, 9 Nov 2006 14:08:15 +0100
ps-watcher (1.06-2) unstable; urgency=low
* remove dh_strip from rules
* adjust depencies (libconfig-inifiles-perl, libsys-syslog-perl)
* modifying initscript to prevent to start without config file
* provide own postinst and prerm scripts
-- Jan Wagner <waja@cyconet.org> Sat, 4 Nov 2006 21:38:44 +0100
ps-watcher (1.06-1) unstable; urgency=low
* Initial release (Closes: #396953).
-- Jan Wagner <waja@cyconet.org> Fri, 3 Nov 2006 14:39:48 +0100

24
debian/control vendored Normal file
View file

@ -0,0 +1,24 @@
Source: ps-watcher
Section: admin
Priority: optional
Maintainer: Jan Wagner <waja@cyconet.org>
Build-Depends: debhelper-compat (= 13)
Build-Depends-Indep: autotools-dev, libconfig-inifiles-perl
Homepage: https://ps-watcher.sourceforge.net/
Vcs-Browser: https://gitlab.uncompleted.org/debian/ps-watcher
Vcs-Git: https://gitlab.uncompleted.org/debian/ps-watcher.git
Standards-Version: 4.6.2
Rules-Requires-Root: no
Package: ps-watcher
Architecture: all
Depends: libconfig-inifiles-perl, procps, ${misc:Depends}, ${perl:Depends}
Recommends: libsys-syslog-perl
Description: monitoring a system via ps-like commands
This program runs the ps command periodically and triggers commands on matches.
The match patterns are Perl regular expressions which can refer to the process
information via variables.
.
For example it can be used to ensure that a daemon is running, or is not
running too many times. It can also be used to determine when a process has
consumed too many resources, perhaps due to a memory leak.

54
debian/copyright vendored Normal file
View file

@ -0,0 +1,54 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ps-watcher
Upstream-Contact: Rocky Bernstein <rocky@panix.com>
Source: http://ps-watcher.sf.net
Files: *
Copyright: Copyright (C) 2000-2008 Rocky Bernstein <rocky@panix.com>
License: GPL-2+
Files: debian/*
Copyright: Copyright (C) 2006, 2013 Jan Wagner <waja@cyconet.org>
License: GPL-2+
Files: debian/bin/github-release.sh
Copyright: Copyright (c) 2014 Terry Burton
License: Expat
License: Expat
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, the complete text of the GNU General Public License can be
found in /usr/share/common-licenses/GPL-2 file.

14
debian/default vendored Normal file
View file

@ -0,0 +1,14 @@
# Defaults for ps-watcher initscript
# sourced by /etc/init.d/ps-watcher
# installed at /etc/default/ps-watcher by the maintainer scripts
# prevent startup without configuration file
# set the below varible to 1 in order to allow ps-watcher to start
# startup=1
# Specify your configfile here
CONFIG="/etc/ps-watcher.conf"
# Additional options that are passed to the Daemon.
# here: check every 150 secs
DAEMON_OPTS="--sleep 150"

3
debian/docs vendored Normal file
View file

@ -0,0 +1,3 @@
NEWS
THANKS
TODO

88
debian/init.d vendored Normal file
View file

@ -0,0 +1,88 @@
#! /bin/sh
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
# /etc/init.d/ps-watcher: v1 2006/11/03 Jan Wagner <waja@cyconet.org>
### BEGIN INIT INFO
# Provides: ps-watcher
# Required-Start: $local_fs $network $remote_fs $syslog
# Required-Stop: $local_fs $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop the ps-watcher daemon
# Description: monitoring a system via ps-like commands
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/ps-watcher
NAME=ps-watcher
DESC=ps-watcher
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
# Include ps-watcher defaults if available
if [ -f /etc/default/ps-watcher ] ; then
. /etc/default/ps-watcher
fi
set -e
not_configured () {
echo "#### WARNING ####"
echo "ps-watcher won't be started/stopped unless it is configured"
if [ "$1" != "stop" ]
then
echo ""
echo "Please pease provide a configfile!"
echo "See /usr/share/doc/ps-watcher/README.Debian*."
fi
echo "#################"
exit 0
}
# check if ps-watcher is configured or not
if [ -f "/etc/default/ps-watcher" ]
then
. /etc/default/ps-watcher
if [ "$startup" != "1" ] || [ ! -f $CONFIG ]
then
not_configured
fi
else
not_configured
fi
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- -c $CONFIG --daemon $DAEMON_OPTS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
sleep 1
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- -c $CONFIG --daemon $DAEMON_OPTS
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0

15
debian/patches/ps_binary vendored Normal file
View file

@ -0,0 +1,15 @@
From: Jan Wagner <waja@cyconet.org>
Subject: Patch path of ps, so we don't need to have the binary installed on compiletime
Index: ps-watcher-1.08/ps-watcher.in.in
===================================================================
--- ps-watcher-1.08.orig/ps-watcher.in.in 2012-03-28 08:37:45.000000000 +0200
+++ ps-watcher-1.08/ps-watcher.in.in 2012-03-28 08:38:13.000000000 +0200
@@ -339,7 +339,7 @@
$opts{syslog} = 1; # Log errors to syslog
$opts{logfile} = $DEVNULL;
$opts{daemon} = 1; # Run as daemon;
- $opts{ps_prog} = '@PS@'; # Where is ps?
+ $opts{ps_prog} = '/bin/ps'; # Where is ps?
$opts{ps_pid_opts} = '@PS_PID_OPTS@'; # How do I get pids and commands?
$ps_arg_opts = '@PS_ARGS@'; # How do I get full process command?

1
debian/patches/series vendored Normal file
View file

@ -0,0 +1 @@
ps_binary

17
debian/postinst vendored Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
set -e
if [ "$1" = "configure" ] && [ "$2" ] && dpkg --compare-versions "$2" lt "1.08-1"; then
if [ -e /etc/rc2.d/S40ps-watcher ] && \
[ -e /etc/rc3.d/S40ps-watcher ] && \
[ -e /etc/rc4.d/S40ps-watcher ] && \
[ -e /etc/rc5.d/S40ps-watcher ] && \
[ -e /etc/rc0.d/K40ps-watcher ] && \
[ -e /etc/rc1.d/K40ps-watcher ] && \
[ -e /etc/rc6.d/K40ps-watcher ]; then
update-rc.d -f ps-watcher remove >/dev/null
fi
fi
#DEBHELPER#

8
debian/preinst vendored Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
set -e
# generate correct pid file, for versions where was non or incorrect
if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" le "1.06-6"; then
pidof ps-watcher > /var/run/ps-watcher.pid
fi
#DEBHELPER#

80
debian/rules vendored Executable file
View file

@ -0,0 +1,80 @@
#!/usr/bin/make -f
# written by Jan Wagner <waja@cyconet.org>
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
config.status: configure
dh_testdir
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
# Add here commands to configure the package.
./configure --prefix=/usr --mandir=\$${prefix}/share/man
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: config.status
dh_testdir
# Add here commands to compile the package.
$(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
# remove target stamps
rm -f build-stamp
rm -f ps-watcher.stamp
# remove autoconf files
rm -f config.guess config.sub
# Add here commands to clean up after the build process.
[ ! -f Makefile ] || $(MAKE) clean && find . -name Makefile -exec rm {} +
# clean files left behind make clean
rm -f config.* ps-watcher.in post-configure docs/pod2htmd.tmp
# delete modified (regenerated) files
rm -f docs/ps-watcher.8 docs/ps-watcher.html
# remove ps-watcher binary as this would we regenerated on building the package
rm -f ps-watcher
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
# Add here commands to install the package into debian/ps-watcher.
$(MAKE) DESTDIR=$(CURDIR)/debian/ps-watcher install
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples samples/*
dh_installinit -- defaults 99 01
dh_installsystemd --no-enable
dh_link
dh_compress
dh_fixperms
dh_perl
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch:
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

14
debian/service vendored Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Description=monitoring a system via ps-like commands
[Service]
Environment=PIDFILE=/var/run/ps-watcher.pid
EnvironmentFile=-/etc/default/ps-watcher
ExecStart=/usr/sbin/ps-watcher -c $CONFIG --daemon $DAEMON_OPTS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Type=notify
[Install]
WantedBy=multi-user.target

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View file

@ -0,0 +1 @@
extend-diff-ignore = '(^|/)(ps-watcher|\.travis\.yml|\.git|\.github|\.gitgnore|config\.sub|config\.guess)'

4
debian/upstream/metadata vendored Normal file
View file

@ -0,0 +1,4 @@
---
Archive: SourceForge
Bug-Database: http://sourceforge.net/tracker/?func=add&group_id=63944&atid=505723
Repository: https://git.code.sf.net/p/ps-watcher/code

2
debian/watch vendored Normal file
View file

@ -0,0 +1,2 @@
version=4
http://sf.net/ps-watcher ps-watcher-(.*)\.tar\.gz