mirror of https://github.com/htrgouvea/nipe.git
resolv conflicts
This commit is contained in:
commit
3ace36497b
|
@ -0,0 +1,20 @@
|
|||
DataDirectory /var/lib/tor
|
||||
PidFile /var/run/tor/tor.pid
|
||||
RunAsDaemon 1
|
||||
User tor
|
||||
|
||||
ControlSocket /var/run/tor/control
|
||||
ControlSocketsGroupWritable 1
|
||||
|
||||
CookieAuthentication 1
|
||||
CookieAuthFileGroupReadable 1
|
||||
CookieAuthFile /var/run/tor/control.authcookie
|
||||
|
||||
Log notice file /var/log/tor/log
|
||||
|
||||
ClientOnly 1
|
||||
TransPort 9051
|
||||
DNSPort 9061
|
||||
|
||||
VirtualAddrNetwork 10.66.0.0/255.255.0.0
|
||||
AutomapHostsOnResolve 1
|
|
@ -0,0 +1,17 @@
|
|||
name: Test Nipe on Fedora
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: fedora-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo dnf install -y perl cpanminus gcc make zlib-devel
|
||||
sudo cpanm --installdeps .
|
||||
sudo perl nipe.pl install
|
||||
- name: Verify Nipe status
|
||||
run: |
|
||||
sudo perl nipe.pl status
|
|
@ -9,8 +9,8 @@ jobs:
|
|||
critic:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run Perl::Critic
|
||||
uses: natanlao/perl-critic-action@v1.1
|
||||
with:
|
||||
files: critic
|
||||
files: critic
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
name: Test Nipe on openSUSE Leap
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: opensuse-leap-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo zypper --non-interactive install perl cpanminus gcc make zlib-devel
|
||||
sudo cpanm --installdeps .
|
||||
sudo perl nipe.pl install
|
||||
- name: Verify Nipe status
|
||||
run: |
|
||||
sudo perl nipe.pl status
|
|
@ -0,0 +1,18 @@
|
|||
name: Test Nipe on Debian
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: debian-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y perl cpanminus gcc make zlib1g-dev
|
||||
sudo cpanm --installdeps .
|
||||
sudo perl nipe.pl install
|
||||
- name: Verify Nipe status
|
||||
run: |
|
||||
sudo perl nipe.pl status
|
|
@ -9,7 +9,7 @@ jobs:
|
|||
- uses: actions/checkout@v1
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt install -y perl cpanminus gcc make
|
||||
sudo apt install -y perl cpanminus gcc make zlib1g-dev
|
||||
sudo cpanm --installdeps .
|
||||
sudo perl nipe.pl install
|
||||
- name: Verify Nipe status
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
severity = 4
|
||||
|
||||
[-TestingAndDebugging::RequireUseStrict]
|
||||
[-TestingAndDebugging::RequireUseWarnings]
|
||||
[-TestingAndDebugging::RequireUseWarnings]
|
||||
|
|
11
Dockerfile
11
Dockerfile
|
@ -1,8 +1,13 @@
|
|||
FROM perl:5.38
|
||||
FROM ubuntu:latest
|
||||
|
||||
COPY . /usr/src/nipe
|
||||
WORKDIR /usr/src/nipe
|
||||
|
||||
RUN cpanm --installdeps .
|
||||
EXPOSE 9050
|
||||
|
||||
ENTRYPOINT [ "perl", "./nipe.pl" ]
|
||||
RUN apt-get update && \
|
||||
apt-get install -y cpanminus && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN cpanm --installdeps .
|
||||
RUN perl nipe.pl install
|
4
cpanfile
4
cpanfile
|
@ -1,3 +1,5 @@
|
|||
requires "Net::SSL";
|
||||
requires "IO::Socket::SSL";
|
||||
requires "JSON", "4.07";
|
||||
requires "Try::Tiny", "0.31";
|
||||
requires "Config::Simple", "4.58";
|
||||
requires "Config::Simple";
|
||||
|
|
|
@ -28,8 +28,13 @@ package Nipe::Utils::Device {
|
|||
$device{distribution} = "void";
|
||||
}
|
||||
|
||||
elsif (($id_like =~ /[S,s]use/) || ($id_distro =~ /[O,o]pen[S,s]use/)) {
|
||||
$device{username} = "tor";
|
||||
$device{distribution} = "opensuse";
|
||||
}
|
||||
|
||||
return %device;
|
||||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
|
@ -12,7 +12,8 @@ package Nipe::Utils::Install {
|
|||
"fedora" => "dnf install -y tor iptables",
|
||||
"centos" => "yum -y install epel-release tor iptables",
|
||||
"void" => "xbps-install -y tor iptables",
|
||||
"arch" => "pacman -S --noconfirm tor iptables"
|
||||
"arch" => "pacman -S --noconfirm tor iptables",
|
||||
"opensuse" => "zypper install -y tor iptables"
|
||||
);
|
||||
|
||||
if ($device{distribution} eq "void") {
|
||||
|
@ -29,4 +30,4 @@ package Nipe::Utils::Install {
|
|||
}
|
||||
}
|
||||
|
||||
1;
|
||||
1;
|
||||
|
|
Loading…
Reference in New Issue