Server IP : 103.119.228.120 / Your IP : 18.216.145.37 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /vnstat-1.11/ |
Upload File : |
# bin and man dirs for Linux BIN = $(DESTDIR)/usr/bin SBIN = $(DESTDIR)/usr/sbin MAN = $(DESTDIR)/usr/share/man # bin and man dirs for *BSD BIN_BSD = $(DESTDIR)/usr/local/bin SBIN_BSD = $(DESTDIR)/usr/local/sbin MAN_BSD = $(DESTDIR)/usr/local/man default: vnstat vnstat: +make -C src all: +make -C src all clean: make -C src clean install: @echo "Installing vnStat..." # check that system is really Linux @if [ `uname` != "Linux" ]; \ then echo "This isn't a Linux system. Maybe 'make bsdinstall' is what you need?"; \ false; \ fi # check that there's something to install @if [ ! -f "src/vnstat" ] || [ ! -f "src/vnstatd" ]; \ then echo "Nothing to install, run make first."; \ false; \ fi # move some really old version database(s) if found @if [ -d "$(DESTDIR)/var/spool/vnstat" ]; \ then echo "Moving old database(s) to new location..."; \ mv -f $(DESTDIR)/var/spool/vnstat $(DESTDIR)/var/lib/; \ fi # remove some really old version binary if found @if [ -x "$(DESTDIR)/usr/local/bin/vnstat" ]; \ then echo "Removing old binary..."; \ rm -f $(DESTDIR)/usr/local/bin/vnstat; \ fi # install default config if such doesn't exist @if [ ! -f "$(DESTDIR)/etc/vnstat.conf" ]; \ then echo "Installing config to $(DESTDIR)/etc/vnstat.conf"; \ install -D -m 644 cfg/vnstat.conf $(DESTDIR)/etc/vnstat.conf; \ fi # install everything else install -d -m 755 $(BIN) $(SBIN) $(MAN)/man1 $(MAN)/man5 $(DESTDIR)/var/lib/vnstat install -s -m 755 src/vnstat $(BIN) install -s -m 755 src/vnstatd $(SBIN) @if [ -f "src/vnstati" ]; \ then echo install -s -m 755 src/vnstati $(BIN); \ install -s -m 755 src/vnstati $(BIN); \ fi # update man pages, gzip it if previous version was done so install -m 644 man/vnstat.1 $(MAN)/man1 install -m 644 man/vnstatd.1 $(MAN)/man1 install -m 644 man/vnstat.conf.5 $(MAN)/man5 @if [ -f "src/vnstati" ]; \ then echo install -m 644 man/vnstati.1 $(MAN)/man1; \ install -m 644 man/vnstati.1 $(MAN)/man1; \ fi @if [ -f $(MAN)/man1/vnstat.1.gz ]; \ then gzip -f9 $(MAN)/man1/vnstat.1; \ gzip -f9 $(MAN)/man1/vnstatd.1; \ gzip -f9 $(MAN)/man5/vnstat.conf.5; \ if [ -f "src/vnstati" ]; \ then gzip -f9 $(MAN)/man1/vnstati.1; \ fi; \ fi # remove vnstat.conf.1 is such exists in the wrong place @if [ -f $(MAN)/man1/vnstat.conf.1.gz ]; \ then rm -f $(MAN)/man1/vnstat.conf.1.gz; \ fi @if [ -f $(MAN)/man1/vnstat.conf.1 ]; \ then rm -f $(MAN)/man1/vnstat.conf.1; \ fi @echo " " @echo "No startup script or cron entry has been installed. See the" @echo "INSTALL document for instructions on how to enable vnStat." uninstall: @echo "Uninstalling vnStat..." @echo @echo "Note: this will also remove the database directory" @echo "including any database located there." @echo @echo "Press CTRL-C within 10 seconds to abort." @sleep 10 rm -fr $(DESTDIR)/var/lib/vnstat rm -f $(BIN)/vnstat rm -f $(BIN)/vnstati rm -f $(SBIN)/vnstatd rm -f $(MAN)/man1/vnstat* rm -f $(MAN)/man5/vnstat* rm -f $(DESTDIR)/etc/cron.d/vnstat rm -f $(DESTDIR)/etc/vnstat.conf rm -f $(DESTDIR)/etc/ppp/ip-up.d/vnstat rm -f $(DESTDIR)/etc/ppp/ip-down.d/vnstat bsdinstall: @echo "Installing vnStat (BSD)..." # check that system isn't Linux @if [ `uname` = "Linux" ]; \ then echo "This is a Linux system. You shouldn't be using 'bsdinstall'"; \ false; \ fi # check that there's something to install @if [ ! -f "src/vnstat" ] || [ ! -f "src/vnstatd" ]; \ then echo "Nothing to install, run make first."; \ false; \ fi # install binaries install -d -m 755 $(DESTDIR)/var/db/vnstat install -s -m 755 src/vnstat $(BIN_BSD) install -s -m 755 src/vnstatd $(SBIN_BSD) @if [ -f "src/vnstati" ]; \ then echo install -s -m 755 src/vnstati $(BIN_BSD); \ install -s -m 755 src/vnstati $(BIN_BSD); \ fi # install default config if such doesn't exist @if [ ! -f $(DESTDIR)/etc/vnstat.conf ]; \ then echo "Installing config to $(DESTDIR)/etc/vnstat.conf"; \ install -d -m 755 $(DESTDIR)/etc; \ install -m 644 cfg/vnstat.conf $(DESTDIR)/etc/vnstat.conf; \ sed -e 's/lib/db/g' $(DESTDIR)/etc/vnstat.conf >$(DESTDIR)/etc/vnstat.conf.bsd; \ mv -f $(DESTDIR)/etc/vnstat.conf.bsd $(DESTDIR)/etc/vnstat.conf; \ fi # update man page install -m 644 man/vnstat.1 $(MAN_BSD)/man1 install -m 644 man/vnstatd.1 $(MAN_BSD)/man1 install -m 644 man/vnstat.conf.5 $(MAN_BSD)/man5 gzip -f9 $(MAN_BSD)/man1/vnstat.1 gzip -f9 $(MAN_BSD)/man1/vnstatd.1 gzip -f9 $(MAN_BSD)/man5/vnstat.conf.5 @if [ -f "src/vnstati" ]; \ then echo install -m 644 man/vnstati.1 $(MAN_BSD)/man1; \ install -m 644 man/vnstati.1 $(MAN_BSD)/man1; \ echo gzip -f9 $(MAN_BSD)/man1/vnstati.1; \ gzip -f9 $(MAN_BSD)/man1/vnstati.1; \ fi # remove vnstat.conf.1 is such exists in the wrong place @if [ -f $(MAN_BSD)/man1/vnstat.conf.1.gz ]; \ then rm -f $(MAN_BSD)/man1/vnstat.conf.1.gz; \ fi @if [ -f $(MAN_BSD)/man1/vnstat.conf.1 ]; \ then rm -f $(MAN_BSD)/man1/vnstat.conf.1; \ fi @echo " " @echo "No startup script or cron entry has been installed. See the" @echo "INSTALL_BSD document for instructions on how to enable vnStat." bsduninstall: @echo "Uninstalling vnStat (BSD)..." @echo @echo "Note: this will also remove the database directory" @echo "including any database located there." @echo @echo "Press CTRL-C within 10 seconds to abort." @sleep 10 rm -fr $(DESTDIR)/var/db/vnstat rm -f $(BIN_BSD)/vnstat rm -f $(BIN_BSD)/vnstati rm -f $(SBIN_BSD)/vnstatd rm -f $(MAN_BSD)/man1/vnstat* rm -f $(MAN_BSD)/man5/vnstat* rm -f $(DESTDIR)/etc/vnstat.conf @echo "A possible cron entry needs to be removed manually if such exists."