From 1e2387474a449452b78520b9ad96a8b4b5e99722 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Wed, 17 Apr 2019 19:07:19 +0200 Subject: initial commit of source fetch --- .../check_ssl_cert/check_ssl_cert-1.83.0/Makefile | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 nagios-plugins-contrib-24.20190301~bpo9+1/check_ssl_cert/check_ssl_cert-1.83.0/Makefile (limited to 'nagios-plugins-contrib-24.20190301~bpo9+1/check_ssl_cert/check_ssl_cert-1.83.0/Makefile') diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/check_ssl_cert/check_ssl_cert-1.83.0/Makefile b/nagios-plugins-contrib-24.20190301~bpo9+1/check_ssl_cert/check_ssl_cert-1.83.0/Makefile new file mode 100644 index 0000000..2325f68 --- /dev/null +++ b/nagios-plugins-contrib-24.20190301~bpo9+1/check_ssl_cert/check_ssl_cert-1.83.0/Makefile @@ -0,0 +1,53 @@ +PLUGIN=check_ssl_cert +VERSION=`cat VERSION` +DIST_DIR=$(PLUGIN)-$(VERSION) +DIST_FILES=AUTHORS COPYING ChangeLog INSTALL Makefile NEWS README.md TODO VERSION $(PLUGIN) $(PLUGIN).spec COPYRIGHT ${PLUGIN}.1 test +YEAR=`date +"%Y"` + +dist: version_check + rm -rf $(DIST_DIR) $(DIST_DIR).tar.gz + mkdir $(DIST_DIR) + cp -r $(DIST_FILES) $(DIST_DIR) + tar cfz $(DIST_DIR).tar.gz $(DIST_DIR) + tar cfj $(DIST_DIR).tar.bz2 $(DIST_DIR) + +install: + mkdir -p $(DESTDIR) + install -m 755 $(PLUGIN) $(DESTDIR) + mkdir -p ${MANDIR}/man1 + install -m 644 ${PLUGIN}.1 ${MANDIR}/man1/ + +version_check: + grep -q "VERSION\ *=\ *[\'\"]*$(VERSION)" $(PLUGIN) + grep -q "^%define\ version\ *$(VERSION)" $(PLUGIN).spec + grep -q -- "- $(VERSION)-" $(PLUGIN).spec + grep -q "\"$(VERSION)\"" $(PLUGIN).1 + grep -q "${VERSION}" NEWS + echo "Version check: OK" + +clean: + rm -f *~ + rm -rf rpmroot + +distclean: clean + rm -rf check_ssl_cert-[0-9]* + rm -f *.crt + rm -f *.error + +test: dist + ( export SHUNIT2="$$(pwd)/shunit2/shunit2" && cd test && ./unit_tests.sh ) + +copyright_check: + grep -q "(c) Matteo Corti, 2007-$(YEAR)" README.md + grep -q "Copyright (c) 2007-$(YEAR) Matteo Corti" COPYRIGHT + grep -q "Copyright (c) 2007-$(YEAR) Matteo Corti " $(PLUGIN) + echo "Copyright year check: OK" + +rpm: dist + mkdir -p rpmroot/SOURCES rpmroot/BUILD + cp $(DIST_DIR).tar.gz rpmroot/SOURCES + rpmbuild --define "_topdir `pwd`/rpmroot" -ba check_ssl_cert.spec + + + +.PHONY: install clean test rpm distclean -- cgit v1.2.3