Compare commits
No commits in common. "master" and "upstream/1.08" have entirely different histories.
master
...
upstream/1
12
.github/dependabot.yml
vendored
12
.github/dependabot.yml
vendored
|
@ -1,12 +0,0 @@
|
||||||
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
36
.github/workflows/packaging_test.yml
vendored
|
@ -1,36 +0,0 @@
|
||||||
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
71
.github/workflows/release.yml
vendored
|
@ -1,71 +0,0 @@
|
||||||
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
32
.travis.yml
|
@ -1,32 +0,0 @@
|
||||||
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
14
debian/.gitlab-ci.yml
vendored
|
@ -1,14 +0,0 @@
|
||||||
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
10
debian/NEWS
vendored
|
@ -1,10 +0,0 @@
|
||||||
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
24
debian/README.Debian
vendored
|
@ -1,24 +0,0 @@
|
||||||
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
188
debian/bin/github-release.sh
vendored
|
@ -1,188 +0,0 @@
|
||||||
#!/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
249
debian/changelog
vendored
|
@ -1,249 +0,0 @@
|
||||||
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
24
debian/control
vendored
|
@ -1,24 +0,0 @@
|
||||||
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
54
debian/copyright
vendored
|
@ -1,54 +0,0 @@
|
||||||
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
14
debian/default
vendored
|
@ -1,14 +0,0 @@
|
||||||
# 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
3
debian/docs
vendored
|
@ -1,3 +0,0 @@
|
||||||
NEWS
|
|
||||||
THANKS
|
|
||||||
TODO
|
|
88
debian/init.d
vendored
88
debian/init.d
vendored
|
@ -1,88 +0,0 @@
|
||||||
#! /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
15
debian/patches/ps_binary
vendored
|
@ -1,15 +0,0 @@
|
||||||
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
1
debian/patches/series
vendored
|
@ -1 +0,0 @@
|
||||||
ps_binary
|
|
17
debian/postinst
vendored
17
debian/postinst
vendored
|
@ -1,17 +0,0 @@
|
||||||
#!/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
8
debian/preinst
vendored
|
@ -1,8 +0,0 @@
|
||||||
#!/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
80
debian/rules
vendored
|
@ -1,80 +0,0 @@
|
||||||
#!/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
14
debian/service
vendored
|
@ -1,14 +0,0 @@
|
||||||
[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
1
debian/source/format
vendored
|
@ -1 +0,0 @@
|
||||||
3.0 (quilt)
|
|
1
debian/source/options
vendored
1
debian/source/options
vendored
|
@ -1 +0,0 @@
|
||||||
extend-diff-ignore = '(^|/)(ps-watcher|\.travis\.yml|\.git|\.github|\.gitgnore|config\.sub|config\.guess)'
|
|
4
debian/upstream/metadata
vendored
4
debian/upstream/metadata
vendored
|
@ -1,4 +0,0 @@
|
||||||
---
|
|
||||||
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
2
debian/watch
vendored
|
@ -1,2 +0,0 @@
|
||||||
version=4
|
|
||||||
http://sf.net/ps-watcher ps-watcher-(.*)\.tar\.gz
|
|
Loading…
Reference in a new issue