Skip to content

All changes need be done for RHEL9 #50

Description

@ozbillwang

Spent so much time to make nfsen works on RHEL9 and put all together in this repo:

https://github.com/ozbillwang/nfsen-rhel9

Here are the changes I did to the source codes, based on 1.3.8

diff -rw nfsen-1.3.8/install.pl nfsen-1.3.8-rhel9/install.pl
40a41,42
> use lib "./lib";
>
96,99c98,101
< 		chomp($ans = <STDIN>);
< 		if ( length $ans ) {
< 			$whichperl = $ans;
< 		}
---
> 		#chomp($ans = <STDIN>);
> 		#if ( length $ans ) {
> 		# 	$whichperl = $ans;
> 		#}
diff -rw nfsen-1.3.8/libexec/NfProfile.pm nfsen-1.3.8-rhel9/libexec/NfProfile.pm
1041c1041
< 	mkdir "$dir" or
---
> 	mkdir "$dir" unless -d $dir or
1196a1197,1198
>
> 	no strict 'refs';  # <--- ADD THIS LINE MANUALLY HERE
diff -rw nfsen-1.3.8/libexec/NfSenRC.pm nfsen-1.3.8-rhel9/libexec/NfSenRC.pm
97c97,100
< 	my $common_args = "-w -D -p $port -u $uid -g $gid $buffer_opts $subdirlayout -P $pidfile $ziparg $extensions";
---
> 	my $common_args = "-D -p $port -u $uid -g $gid $buffer_opts $subdirlayout -P $pidfile $ziparg $extensions";
>
> 	print STDERR "DEBUG common_args: $common_args\n";
>
diff -rw nfsen-1.3.8/libexec/NfSenRRD.pm nfsen-1.3.8-rhel9/libexec/NfSenRRD.pm
76c76
< 	if ( $rrd_version >= 1.2 && $rrd_version < 1.6 ) {
---
> 	if ( $rrd_version >= 1.2 && $rrd_version < 1.9 ) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions