Skip to content

Commit

Permalink
Merge pull request #183 from ccztux/devel
Browse files Browse the repository at this point in the history
Release 3.0.0
  • Loading branch information
ccztux authored Jan 11, 2023
2 parents 92b9b79 + b97695e commit b2882a2
Show file tree
Hide file tree
Showing 108 changed files with 7,507 additions and 622 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/shellcheck-devel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ShellCheck (devel)
on:
push:
branches:
- devel
pull_request:
branches:
- devel

permissions:
contents: read

jobs:
container-job:
runs-on: ubuntu-latest

steps:
- name: Get the stable ShellCheck container
run: |
sudo docker pull koalaman/shellcheck:stable
- name: Show ShellCheck version
run: |
docker run koalaman/shellcheck:stable --version
- name: Repository checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: ShellCheck our scripts
run: |
docker run -v $(pwd):/scripts koalaman/shellcheck:stable --color=always --check-sourced --external-sources /scripts/usr/bin/modpd
33 changes: 33 additions & 0 deletions .github/workflows/shellcheck-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ShellCheck (master)
on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: read

jobs:
container-job:
runs-on: ubuntu-latest

steps:
- name: Get the stable ShellCheck container
run: |
sudo docker pull koalaman/shellcheck:stable
- name: Show ShellCheck version
run: |
docker run koalaman/shellcheck:stable --version
- name: Repository checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: ShellCheck our scripts
run: |
docker run -v $(pwd):/scripts koalaman/shellcheck:stable --color=always --check-sourced --external-sources /scripts/usr/bin/modpd
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
unversioned
change_version.sh
*.o
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

73 changes: 63 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
# 2017-05-14
# http://linuxinside.at
#
# Copyright: Copyright © 2017-2020 Christian Zettel (ccztux), all rights reserved
# Copyright: Copyright © 2017-NOW Christian Zettel (ccztux), all rights reserved
#
# Project website: https://github.com/ccztux/modpd
#
# Last Modification: Christian Zettel (ccztux)
# 2021-01-07
# 2023-01-09
#
# Version 2.3.1
# Version 3.0.0
#
# Description: Makefile for the modpd NEB module
#
Expand All @@ -38,14 +38,67 @@
SRC_DIR=./src


INSTALL=/usr/bin/install -c
INSTALL_DIR_OPTS=-m 755 -o root -g root -d
INSTALL_VAR_LIB_DIR_OPTS=-m 775 -o modpd -g modpd -d
INSTALL_VAR_LIB_LOCK_DIR_OPTS=-m 755 -o modpd -g modpd -d
INSTALL_VAR_LOG_DIR_OPTS=-m 755 -o modpd -g root -d
INSTALL_BIN_OPTS=-m 755 -o root -g root
INSTALL_FILE_OPTS=-m 644 -o root -g root

all: modpd.o

modpd.o:
cd $(SRC_DIR) && $(MAKE)
all: neb-nagios3 neb-naemon

clean:
cd $(SRC_DIR) && $(MAKE) clean
neb-nagios3:
cd $(SRC_DIR) && $(MAKE) neb-nagios3

install:
cd $(SRC_DIR) && $(MAKE) install
neb-naemon:
cd $(SRC_DIR) && $(MAKE) neb-naemon



clean: clean-neb-nagios3 clean-neb-naemon

clean-neb-nagios3:
cd $(SRC_DIR) && $(MAKE) clean-neb-nagios3

clean-neb-naemon:
cd $(SRC_DIR) && $(MAKE) clean-neb-naemon



install: install-neb-nagios3 install-neb-naemon install-modpd

install-neb-nagios3:
cd $(SRC_DIR) && $(MAKE) install-neb-nagios3

install-neb-naemon:
cd $(SRC_DIR) && $(MAKE) install-neb-naemon

install-modpd:
$(INSTALL) $(INSTALL_DIR_OPTS) /etc/modpd/
$(INSTALL) $(INSTALL_DIR_OPTS) /usr/libexec/modpd/
$(INSTALL) $(INSTALL_VAR_LIB_DIR_OPTS) /var/lib/modpd/
$(INSTALL) $(INSTALL_VAR_LIB_LOCK_DIR_OPTS) /var/lib/modpd/lock/
$(INSTALL) $(INSTALL_VAR_LIB_DIR_OPTS) /var/lib/modpd/rw/
$(INSTALL) $(INSTALL_VAR_LOG_DIR_OPTS) /var/log/modpd/

$(INSTALL) $(INSTALL_FILE_OPTS) ./etc/logrotate.d/modpd /etc/logrotate.d/modpd
if [ ! -f /etc/modpd/modpd.conf ] ;then $(INSTALL) $(INSTALL_FILE_OPTS) ./etc/modpd/modpd.conf /etc/modpd/modpd.conf ; fi
$(INSTALL) $(INSTALL_FILE_OPTS) ./etc/modpd/modpd.sample.conf /etc/modpd/modpd.sample.conf
$(INSTALL) $(INSTALL_FILE_OPTS) ./etc/sysconfig/modpd /etc/sysconfig/modpd
$(INSTALL) $(INSTALL_BIN_OPTS) ./usr/bin/modpd /usr/bin/modpd
$(INSTALL) $(INSTALL_FILE_OPTS) ./usr/lib/systemd/system/modpd.service /usr/lib/systemd/system/modpd.service



uninstall: uninstall-neb-nagios3 uninstall-neb-naemon

uninstall-neb-nagios3:
cd $(SRC_DIR) && $(MAKE) uninstall-neb-nagios3

uninstall-neb-naemon:
cd $(SRC_DIR) && $(MAKE) uninstall-neb-naemon


.PHONY: clean
Loading

0 comments on commit b2882a2

Please sign in to comment.