From 711bb69ddc2145929aef05b6a51f383e4789d048 Mon Sep 17 00:00:00 2001 From: graysky Date: Sun, 17 Aug 2014 08:18:05 -0400 Subject: [PATCH 1/4] setup to insert version and date from Makefile --- monitorix => monitorix.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename monitorix => monitorix.in (99%) diff --git a/monitorix b/monitorix.in similarity index 99% rename from monitorix rename to monitorix.in index 4c4cb0b..d8fe1a3 100755 --- a/monitorix +++ b/monitorix.in @@ -46,8 +46,8 @@ $SIG{'TERM'} = 'INT_handler'; $SIG{'CHLD'} = 'CHLD_handler'; $SIG{'HUP' } = 'HUP_handler'; -use constant VERSION => "3.5.1"; -use constant RELDATE => "06-May-2014"; +use constant VERSION => "@VERSION@"; +use constant RELDATE => "@RELEASEDATE@"; my @suppsys = ("Linux", "FreeBSD", "OpenBSD", "NetBSD"); our %config; From 14d2844a1f16748c1886a2a1e04a760f6c1019f5 Mon Sep 17 00:00:00 2001 From: graysky Date: Sun, 17 Aug 2014 08:20:19 -0400 Subject: [PATCH 2/4] add Makefile with example VERSION and RELEASEDATE vars --- Makefile | 222 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 222 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fc5618f --- /dev/null +++ b/Makefile @@ -0,0 +1,222 @@ +VERSION = 3.5.2 +RELEASEDATE = 20-Aug-2014 +PN = monitorix + +PREFIX ?= /usr +CONFDIR = /etc +BASEDIR = /var/lib/monitorix/www +LIBDIR = /var/lib/monitorix +INITDIR_SYSTEMD = $(PREFIX)/lib/systemd/system +INITDIR_OTHER = $(CONFDIR)/init.d +BINDIR = $(PREFIX)/bin +DOCDIR = $(PREFIX)/share/doc/$(PN) +MAN5DIR = $(PREFIX)/share/man/man5 +MAN8DIR = $(PREFIX)/share/man/man8 + +RM = rm -f +RMD = rmdir +SED = sed +INSTALL = install -p +INSTALL_PROGRAM = $(INSTALL) -m755 +INSTALL_SCRIPT = $(INSTALL) -m755 +INSTALL_DATA = $(INSTALL) -m644 +INSTALL_DIR = $(INSTALL) -d + +Q = @ + +$(PN): $(PN).in + $(Q)echo -e '\033[1;32mSetting version info\033[0m' + $(Q)$(SED) -e 's/@VERSION@/'$(VERSION)'/' $(PN).in \ + -e 's/@RELEASEDATE@/'$(RELEASEDATE)'/' > $(PN) + +help: install + +install: + $(Q)echo "Run one of the following:" + $(Q)echo " make install-systemd-all (systemd based systems)" + $(Q)echo " make install-upstart-all (upstart based systems)" + $(Q)echo " make install-debian-all (debian sysv based systems)" + $(Q)echo " make install-redhat-all (redhat sysv based systems)" + $(Q)echo + $(Q)echo "Default targets may be overridden on the shell so" + $(Q)echo "check out the Makefile for specific rules." + +install-bin: + $(Q)echo -e '\033[1;32mInstalling script and modules...\033[0m' + $(INSTALL_DIR) "$(DESTDIR)$(BINDIR)" + $(INSTALL_PROGRAM) $(PN) "$(DESTDIR)$(BINDIR)/$(PN)" + + $(INSTALL_DIR) "$(DESTDIR)$(BASEDIR)/cgi" + $(INSTALL_DIR) "$(DESTDIR)$(BASEDIR)/imgs" + $(INSTALL_PROGRAM) $(PN).cgi "$(DESTDIR)$(BASEDIR)/cgi/$(PN).cgi" + $(INSTALL_DATA) logo_bot.png "$(DESTDIR)$(BASEDIR)/logo_bot.png" + $(INSTALL_DATA) logo_top.png "$(DESTDIR)$(BASEDIR)/logo_top.png" + $(INSTALL_DATA) monitorixico.png "$(DESTDIR)$(BASEDIR)/monitorixico.png" + + $(INSTALL_DIR) "$(DESTDIR)$(CONFDIR)/$(PN)" + $(INSTALL_DATA) $(PN).conf "$(DESTDIR)$(CONFDIR)/$(PN)/$(PN).conf" + + $(INSTALL_DIR) "$(DESTDIR)$(CONFDIR)/logrotate.d/" + $(INSTALL_DATA) docs/$(PN).logrotate "$(DESTDIR)$(CONFDIR)/logrotate.d/$(PN).logrotate" + + $(INSTALL_DIR) "$(DESTDIR)$(CONFDIR)/sysconfig" + $(INSTALL_DATA) docs/$(PN).sysconfig "$(DESTDIR)$(CONFDIR)/sysconfig//$(PN).sysconfig" + + $(INSTALL_DIR) "$(DESTDIR)$(LIBDIR)" + $(INSTALL_DATA) lib/apache.pm "$(DESTDIR)$(LIBDIR)/apache.pm" + $(INSTALL_DATA) lib/apcupsd.pm "$(DESTDIR)$(LIBDIR)/apcupsd.pm" + $(INSTALL_DATA) lib/bind.pm "$(DESTDIR)$(LIBDIR)/bind.pm" + $(INSTALL_DATA) lib/disk.pm "$(DESTDIR)$(LIBDIR)/disk.pm" + $(INSTALL_DATA) lib/emailreports.pm "$(DESTDIR)$(LIBDIR)/emailreports.pm" + $(INSTALL_DATA) lib/fail2ban.pm "$(DESTDIR)$(LIBDIR)/fail2ban.pm" + $(INSTALL_DATA) lib/fs.pm "$(DESTDIR)$(LIBDIR)/fs.pm" + $(INSTALL_DATA) lib/ftp.pm "$(DESTDIR)$(LIBDIR)/ftp.pm" + $(INSTALL_DATA) lib/hptemp.pm "$(DESTDIR)$(LIBDIR)/hptemp.pm" + $(INSTALL_DATA) lib/HTTPServer.pm "$(DESTDIR)$(LIBDIR)/HTTPServer.pm" + $(INSTALL_DATA) lib/icecast.pm "$(DESTDIR)$(LIBDIR)/icecast.pm" + $(INSTALL_DATA) lib/int.pm "$(DESTDIR)$(LIBDIR)/int.pm" + $(INSTALL_DATA) lib/kern.pm "$(DESTDIR)$(LIBDIR)/kern.pm" + $(INSTALL_DATA) lib/libvirt.pm "$(DESTDIR)$(LIBDIR)/libvirt.pm" + $(INSTALL_DATA) lib/lighttpd.pm "$(DESTDIR)$(LIBDIR)/lighttpd.pm" + $(INSTALL_DATA) lib/lmsens.pm "$(DESTDIR)$(LIBDIR)/lmsens.pm" + $(INSTALL_DATA) lib/mail.pm "$(DESTDIR)$(LIBDIR)/mail.pm" + $(INSTALL_DATA) lib/memcached.pm "$(DESTDIR)$(LIBDIR)/memcached.pm" + $(INSTALL_DATA) lib/Monitorix.pm "$(DESTDIR)$(LIBDIR)/Monitorix.pm" + $(INSTALL_DATA) lib/mysql.pm "$(DESTDIR)$(LIBDIR)/mysql.pm" + $(INSTALL_DATA) lib/net.pm "$(DESTDIR)$(LIBDIR)/net.pm" + $(INSTALL_DATA) lib/netstat.pm "$(DESTDIR)$(LIBDIR)/netstat.pm" + $(INSTALL_DATA) lib/nfsc.pm "$(DESTDIR)$(LIBDIR)/nfsc.pm" + $(INSTALL_DATA) lib/nfss.pm "$(DESTDIR)$(LIBDIR)/nfss.pm" + $(INSTALL_DATA) lib/nginx.pm "$(DESTDIR)$(LIBDIR)/nginx.pm" + $(INSTALL_DATA) lib/ntp.pm "$(DESTDIR)$(LIBDIR)/ntp.pm" + $(INSTALL_DATA) lib/nvidia.pm "$(DESTDIR)$(LIBDIR)/nvidia.pm" + $(INSTALL_DATA) lib/phpapc.pm "$(DESTDIR)$(LIBDIR)/phpapc.pm" + $(INSTALL_DATA) lib/port.pm "$(DESTDIR)$(LIBDIR)/port.pm" + $(INSTALL_DATA) lib/process.pm "$(DESTDIR)$(LIBDIR)/process.pm" + $(INSTALL_DATA) lib/proc.pm "$(DESTDIR)$(LIBDIR)/proc.pm" + $(INSTALL_DATA) lib/raspberrypi.pm "$(DESTDIR)$(LIBDIR)/raspberrypi.pm" + $(INSTALL_DATA) lib/serv.pm "$(DESTDIR)$(LIBDIR)/serv.pm" + $(INSTALL_DATA) lib/squid.pm "$(DESTDIR)$(LIBDIR)/squid.pm" + $(INSTALL_DATA) lib/system.pm "$(DESTDIR)$(LIBDIR)/system.pm" + $(INSTALL_DATA) lib/traffacct.pm "$(DESTDIR)$(LIBDIR)/traffacct.pm" + $(INSTALL_DATA) lib/user.pm "$(DESTDIR)$(LIBDIR)/user.pm" + $(INSTALL_DATA) lib/wowza.pm "$(DESTDIR)$(LIBDIR)/wowza.pm" + + $(INSTALL_DIR) "$(DESTDIR)$(LIBDIR)/reports" + $(INSTALL_DATA) reports/ca.html "$(DESTDIR)$(LIBDIR)/reports/ca.html" + $(INSTALL_DATA) reports/de.html "$(DESTDIR)$(LIBDIR)/reports/de.html" + $(INSTALL_DATA) reports/en.html "$(DESTDIR)$(LIBDIR)/reports/en.html" + $(INSTALL_DATA) reports/it.html "$(DESTDIR)$(LIBDIR)/reports/it.html" + $(INSTALL_DATA) reports/zh_CN.html "$(DESTDIR)$(LIBDIR)/reports/zh_CN.html" + + $(INSTALL_DIR) "$(DESTDIR)$(LIBDIR)/usage" + +install-docs: + $(Q)echo -e '\033[1;32mInstalling docs...\033[0m' + $(INSTALL_DIR) "$(DESTDIR)$(DOCDIR)" + $(INSTALL_PROGRAM) docs/$(PN)-alert.sh "$(DESTDIR)$(DOCDIR)/$(PN)-alert.sh" + $(INSTALL_PROGRAM) docs/htpasswd.pl "$(DESTDIR)$(DOCDIR)/htpasswd.pl" + $(INSTALL_DATA) Changes "$(DESTDIR)$(DOCDIR)/Changes" + $(INSTALL_DATA) README "$(DESTDIR)$(DOCDIR)/README" + $(INSTALL_DATA) README.FreeBSD "$(DESTDIR)$(DOCDIR)/README.FreeBSD" + $(INSTALL_DATA) README.nginx "$(DESTDIR)$(DOCDIR)/README.nginx" + $(INSTALL_DATA) README.OpenBSD "$(DESTDIR)$(DOCDIR)/README.OpenBSD" + $(INSTALL_DATA) README.NetBSD "$(DESTDIR)$(DOCDIR)/README.NetBSD" + $(INSTALL_DATA) docs/$(PN)-lighttpd.conf "$(DESTDIR)$(DOCDIR)/$(PN)-lighttpd.conf" + $(INSTALL_DATA) docs/$(PN)-apache.conf "$(DESTDIR)$(DOCDIR)/$(PN)-apache.conf" + +install-man: + $(Q)echo -e '\033[1;32mInstalling manpages...\033[0m' + $(INSTALL_DIR) "$(DESTDIR)$(MAN5DIR)" + $(INSTALL_DATA) man/man5/$(PN).conf.5 "$(DESTDIR)$(MAN5DIR)/$(PN).conf.5" + + $(INSTALL_DIR) "$(DESTDIR)$(MAN8DIR)" + $(INSTALL_DATA) man/man8/$(PN).8 "$(DESTDIR)$(MAN8DIR)/$(PN).8" + +install-systemd: + $(Q)echo -e '\033[1;32mInstalling systemd service...\033[0m' + $(INSTALL_DIR) "$(DESTDIR)$(CONFDIR)" + $(INSTALL_DIR) "$(DESTDIR)$(INITDIR_SYSTEMD)" + $(INSTALL_DATA) docs/$(PN).service "$(DESTDIR)$(INITDIR_SYSTEMD)/$(PN).service" + +install-upstart: + $(Q)echo -e '\033[1;32mInstalling upstart service...\033[0m' + $(INSTALL_DIR) "$(DESTDIR)$(INITDIR_OTHER)" + $(INSTALL_PROGRAM) docs/$(PN).upstart "$(DESTDIR)$(INITDIR_UPSTART)/$(PN)" + +install-debian: + $(Q)echo -e '\033[1;32mInstalling debian sysv service...\033[0m' + $(INSTALL_DIR) "$(DESTDIR)$(INITDIR_OTHER)" + $(INSTALL_PROGRAM) docs/$(PN)-deb.init "$(DESTDIR)$(INITDIR_OTHER)/$(PN)" + +install-redhat: + $(Q)echo -e '\033[1;32mInstalling redhat sysv service...\033[0m' + $(INSTALL_DIR) "$(DESTDIR)$(INITDIR_OTHER)" + $(INSTALL_PROGRAM) docs/$(PN).init "$(DESTDIR)$(INITDIR_OTHER)/$(PN)" + +install-systemd-all: install-bin install-man install-docs install-systemd + +install-upstart-all: install-bin install-man install-docs install-upstart + +install-debian-all: install-bin install-man install-docs install-debian + +install-redhat-all: install-bin install-man install-docs install-redhat + +uninstall-bin: + $(RM) "$(DESTDIR)$(BINDIR)/$(PN)" + $(RM) "$(DESTDIR)$(BASEDIR)/cgi/$(PN).cgi" + $(RM) "$(DESTDIR)$(BASEDIR)/logo_bot.png" + $(RM) "$(DESTDIR)$(BASEDIR)/logo_top.png" + $(RM) "$(DESTDIR)$(BASEDIR)/monitorixico.png" + $(RM) "$(DESTDIR)$(CONFDIR)/$(PN)/$(PN).conf" + $(RM) "$(DESTDIR)$(CONFDIR)/logrotate.d/$(PN).logrotate" + $(RM) "$(DESTDIR)$(CONFDIR)/sysconfig//$(PN).sysconfig" + $(RM) "$(DESTDIR)$(LIBDIR)/"*.pm + $(RM) "$(DESTDIR)$(LIBDIR)/reports/"*.html + $(RMD) "$(DESTDIR)$(LIBDIR)/reports" + $(RMD) "$(DESTDIR)$(LIBDIR)/usage" + $(RMD) "$(DESTDIR)$(LIBDIR)/" + $(RMD) "$(DESTDIR)$(BASEDIR)/cgi" + +uninstall-docs: + $(RM) "$(DESTDIR)$(DOCDIR)/$(PN)-alert.sh" + $(RM) "$(DESTDIR)$(DOCDIR)/htpasswd.pl" + $(RM) "$(DESTDIR)$(DOCDIR)/Changes" + $(RM) "$(DESTDIR)$(DOCDIR)/"README* + $(RM) "$(DESTDIR)$(DOCDIR)/"*.conf + +uninstall-man: + $(RM) "$(DESTDIR)$(MAN5DIR)/$(PN).conf.5" + $(RM) "$(DESTDIR)$(MAN8DIR)/$(PN).8" + +uninstall-systemd: + $(RM) "$(DESTDIR)$(INITDIR_SYSTEMD)/$(PN).service" + +uninstall-upstart: + $(RM) "$(DESTDIR)$(INITDIR_OTHER)/$(PN)" + +uninstall-debian: + $(RM) "$(DESTDIR)$(INITDIR_OTHER)/$(PN)" + +uninstall-redhat: + $(RM) "$(DESTDIR)$(INITDIR_OTHER)/$(PN)" + +uninstall-systemd-all: uninstall-bin uninstall-man uninstall-docs uninstall-systemd + +uninstall-upstart-all: uninstall-bin uninstall-man uninstall-docs uninstall-upstart + +uninstall-debian-all: uninstall-bin uninstall-man uninstall-docs uninstall-debian + +uninstall-redhat-all: uninstall-bin uninstall-man uninstall-docs uninstall-redhat + +uninstall: + $(Q)echo "run one of the following:" + $(Q)echo " make uninstall-systemd-all (systemd based systems)" + $(Q)echo " make uninstall-upstart-all (upstart based systems)" + $(Q)echo + $(Q)echo "or check out the Makefile for specific rules" + +clean: + $(RM) $(PN) + +.PHONY: help install-bin install-docs install-man install-systemd install-upstart install-debian install-redhat install-systemd-all install-upstart-all install-debian-all install-redhat-all install uninstall-bin uninstall-docs uninstall-man uninstall-systemd uninstall-upstart uninstall-debian uinstall-redhat uninstall-systemd-all uninstall-upstart-all uninstall-debian-all uninstall-redhat-all uninstall clean From df00fe8ecb83493255db7407d42411a127c6ebcf Mon Sep 17 00:00:00 2001 From: graysky Date: Sun, 17 Aug 2014 08:26:42 -0400 Subject: [PATCH 3/4] updated README --- README | 43 ++++++++++++------------------------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/README b/README index f018740..81f69b4 100644 --- a/README +++ b/README @@ -91,39 +91,20 @@ You can download RRDtool from different places: INSTALLATION =============================================================================== -The file tree for the Monitorix application is: +Setup the via a make. -File Recommended location Description -------------------------------------------------------------------------------- -monitorix /usr/bin/ main program (daemon) -monitorix.cgi /cgi/ CGI (viewer) -monitorix.conf /etc/monitorix/ configuration file -lib/*.pm /usr/lib/monitorix/ modules -Changes /usr/share/doc/monitorix/ changes log file -COPYING /usr/share/doc/monitorix/ license -logo_bot.png bottom logo -logo_top.png top logo -monitorixico.png favicon -monitorix-alert.sh /usr/share/doc/monitorix/ alert example script -monitorix-apache.conf /etc/httpd/conf.d/ apache configuration -monitorix.service /usr/lib/systemd/system/ systemd service template -monitorix.init /etc/init.d/ redhat SysV init script -monitorix-deb.init /etc/init.d/ debian SysV init script -monitorix.logrotate /etc/logrotate.d/ logrotate script -monitorix.spec /usr/share/doc/monitorix/ RPM spec file -monitorix.sysconfig /etc/sysconfig/ pre-run config file -monitorix.lighttpd.conf /etc/lighttpd/ lighttpd configuration -htpasswd.pl /usr/share/doc/monitorix/ documentation -README /usr/share/doc/monitorix/ documentation -README.FreeBSD /usr/share/doc/monitorix/ documentation -README.nginx /usr/share/doc/monitorix/ documentation -README.OpenBSD /usr/share/doc/monitorix/ documentation -README.NetBSD /usr/share/doc/monitorix/ documentation -man/man5/monitorix.conf.5 /usr/share/man/man5/ monitorix.conf manpage -man/man8/monitorix.8 /usr/share/man/man8/ monitorix manpage -reports/*.html /reports/ traffacct reports i18n -usage/ /usage/ traffacct usage data +Running a `make install-xxx` as root will distribute the files to the file +system. Most users will want to select from three options depending on target +init system (do not run all four)! + # make install-systemd-all + # make install-upstart-all + # make install-debian-all + # make install-redhat-all + +Alternatively, users may override any of the in make targets. For example: + + $ make DESTDIR=~/pub BASEDIR=/srv/http/monitorix install-systemd-all Once succesfully installed, please take a look into the configuration file to setup the options according your system and enable or disable graphs. From cabb909a0fcb55af33ccdccc476d5e54e5b81ab9 Mon Sep 17 00:00:00 2001 From: graysky Date: Tue, 19 Aug 2014 14:57:42 -0400 Subject: [PATCH 4/4] undo mods to Makefile and README per suggestion --- Makefile | 12 +----------- README | 35 +++++++++++++++++++++++++++++++++-- monitorix.in => monitorix | 4 ++-- 3 files changed, 36 insertions(+), 15 deletions(-) rename monitorix.in => monitorix (99%) diff --git a/Makefile b/Makefile index fc5618f..2461f53 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -VERSION = 3.5.2 -RELEASEDATE = 20-Aug-2014 PN = monitorix PREFIX ?= /usr @@ -24,11 +22,6 @@ INSTALL_DIR = $(INSTALL) -d Q = @ -$(PN): $(PN).in - $(Q)echo -e '\033[1;32mSetting version info\033[0m' - $(Q)$(SED) -e 's/@VERSION@/'$(VERSION)'/' $(PN).in \ - -e 's/@RELEASEDATE@/'$(RELEASEDATE)'/' > $(PN) - help: install install: @@ -216,7 +209,4 @@ uninstall: $(Q)echo $(Q)echo "or check out the Makefile for specific rules" -clean: - $(RM) $(PN) - -.PHONY: help install-bin install-docs install-man install-systemd install-upstart install-debian install-redhat install-systemd-all install-upstart-all install-debian-all install-redhat-all install uninstall-bin uninstall-docs uninstall-man uninstall-systemd uninstall-upstart uninstall-debian uinstall-redhat uninstall-systemd-all uninstall-upstart-all uninstall-debian-all uninstall-redhat-all uninstall clean +.PHONY: help install-bin install-docs install-man install-systemd install-upstart install-debian install-redhat install-systemd-all install-upstart-all install-debian-all install-redhat-all install uninstall-bin uninstall-docs uninstall-man uninstall-systemd uninstall-upstart uninstall-debian uinstall-redhat uninstall-systemd-all uninstall-upstart-all uninstall-debian-all uninstall-redhat-all uninstall diff --git a/README b/README index 81f69b4..0711061 100644 --- a/README +++ b/README @@ -91,8 +91,6 @@ You can download RRDtool from different places: INSTALLATION =============================================================================== -Setup the via a make. - Running a `make install-xxx` as root will distribute the files to the file system. Most users will want to select from three options depending on target init system (do not run all four)! @@ -106,6 +104,39 @@ Alternatively, users may override any of the in make targets. For example: $ make DESTDIR=~/pub BASEDIR=/srv/http/monitorix install-systemd-all +The file tree for the Monitorix application is: + +File Recommended location Description +------------------------------------------------------------------------------- +monitorix /usr/bin/ main program (daemon) +monitorix.cgi /cgi/ CGI (viewer) +monitorix.conf /etc/monitorix/ configuration file +lib/*.pm /usr/lib/monitorix/ modules +Changes /usr/share/doc/monitorix/ changes log file +COPYING /usr/share/doc/monitorix/ license +logo_bot.png bottom logo +logo_top.png top logo +monitorixico.png favicon +monitorix-alert.sh /usr/share/doc/monitorix/ alert example script +monitorix-apache.conf /etc/httpd/conf.d/ apache configuration +monitorix.service /usr/lib/systemd/system/ systemd service template +monitorix.init /etc/init.d/ redhat SysV init script +monitorix-deb.init /etc/init.d/ debian SysV init script +monitorix.logrotate /etc/logrotate.d/ logrotate script +monitorix.spec /usr/share/doc/monitorix/ RPM spec file +monitorix.sysconfig /etc/sysconfig/ pre-run config file +monitorix.lighttpd.conf /etc/lighttpd/ lighttpd configuration +htpasswd.pl /usr/share/doc/monitorix/ documentation +README /usr/share/doc/monitorix/ documentation +README.FreeBSD /usr/share/doc/monitorix/ documentation +README.nginx /usr/share/doc/monitorix/ documentation +README.OpenBSD /usr/share/doc/monitorix/ documentation +README.NetBSD /usr/share/doc/monitorix/ documentation +man/man5/monitorix.conf.5 /usr/share/man/man5/ monitorix.conf manpage +man/man8/monitorix.8 /usr/share/man/man8/ monitorix manpage +reports/*.html /reports/ traffacct reports i18n +usage/ /usage/ traffacct usage data + Once succesfully installed, please take a look into the configuration file to setup the options according your system and enable or disable graphs. diff --git a/monitorix.in b/monitorix similarity index 99% rename from monitorix.in rename to monitorix index d8fe1a3..4c4cb0b 100755 --- a/monitorix.in +++ b/monitorix @@ -46,8 +46,8 @@ $SIG{'TERM'} = 'INT_handler'; $SIG{'CHLD'} = 'CHLD_handler'; $SIG{'HUP' } = 'HUP_handler'; -use constant VERSION => "@VERSION@"; -use constant RELDATE => "@RELEASEDATE@"; +use constant VERSION => "3.5.1"; +use constant RELDATE => "06-May-2014"; my @suppsys = ("Linux", "FreeBSD", "OpenBSD", "NetBSD"); our %config;