From a85307b3d3c76c6742336c1ee701a76f1cc030ec Mon Sep 17 00:00:00 2001
From: mrroman <mrroman@devsite.pl>
Date: Thu, 28 Dec 2023 21:28:38 +0000
Subject: [PATCH] Use ksh instead of sh in rc script

---
 Makefile |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index e153e0b..94258e0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,21 +2,28 @@
 # See LICENSE file for copyright and license details.
 #
 # vilain version
-VERSION = 0.3
+VERSION = 0.7
 
 # Customize below to fit your system
 # paths
 PREFIX = /usr/local
 MANPREFIX = ${PREFIX}/man/man1/
 
-install: 
+install:
 	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
 	@mkdir -p ${DESTDIR}${PREFIX}/bin
 	@cp -f vilain ${DESTDIR}${PREFIX}/bin
+	@cp -f vilainreport ${DESTDIR}${PREFIX}/bin
 	@echo installing script file to ${DESTDIR}${PREFIX}/sbin
 	@cp -f vilain.py ${DESTDIR}${PREFIX}/sbin
+	@cp -f vilainreport.py ${DESTDIR}${PREFIX}/sbin
 	@chmod 755 ${DESTDIR}${PREFIX}/bin/vilain
+	@chmod 755 ${DESTDIR}${PREFIX}/bin/vilainreport
 	@chmod 644 ${DESTDIR}${PREFIX}/sbin/vilain.py
+	@chmod 644 ${DESTDIR}${PREFIX}/sbin/vilainreport.py
+	@echo installing sample config file
+	@cp -f vilain.conf /etc/vilain.conf
+	@chmod 644 /etc/vilain.conf
 	@echo installing init script in /etc/rc.d
 	@cp -f vilain.rc /etc/rc.d/vilain
 	@chmod 755 /etc/rc.d/vilain
@@ -29,8 +36,11 @@
 uninstall:
 	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
 	@rm -f ${DESTDIR}${PREFIX}/bin/vilain
+	@rm -f ${DESTDIR}${PREFIX}/bin/vilainreport
 	@rm -f ${DESTDIR}${PREFIX}/sbin/vilain.py
+	@rm -f ${DESTDIR}${PREFIX}/sbin/vilainreport.py
 	@echo removing manual page to ${DESTDIR}${MANPREFIX}/
 	@rm -f ${DESTDIR}${MANPREFIX}/vilain.1
+	@echo Remove configuration file manually if you want, located at /etc/vilain.conf
 
-.PHONY: install uninstall 
+.PHONY: install uninstall

--
Gitblit v1.9.3