Skip to content

Commit

Permalink
fix Package name
Browse files Browse the repository at this point in the history
  • Loading branch information
MortezaBashsiz committed Sep 13, 2024
1 parent 4bdb5e8 commit 0cc3646
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 20 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
name: build debian
name: Build Debian Package

on:
push:
branches: [ "morteza/debian" ]
# paths:
# - 'core/**'
branches:
- morteza/debian
pull_request:
branches:
- morteza/debian

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2

- name: build-deb-action
uses: jiro4989/[email protected]
- name: Checkout source code
uses: actions/checkout@v3

- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y dpkg-dev build-essential lintian fakeroot devscripts cmake libssl-dev libboost-all-dev libyaml-cpp-dev
- name: Build the package
run: |
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j$(nproc)
cd ..
mkdir -p nipovpn_core/usr/bin/
cp build/core/nipovpn_core nipovpn_core/usr/bin/nipovpn_core
dpkg-deb --build nipovpn_core/ build/nipovpn_core.deb
- name: Lint the nipovpn_core
run: |
lintian build/nipovpn_core.deb
- name: Upload the Debian nipovpn_core as an artifact
uses: actions/upload-artifact@v3
with:
package_root: ./nipovpn

name: deb-package
path: build/nipovpn_core.deb

- name: Show nipovpn_core information
run: |
dpkg -I build/nipovpn_core.deb
7 changes: 0 additions & 7 deletions nipovpn/DEBIAN/control

This file was deleted.

7 changes: 7 additions & 0 deletions nipovpn_core/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Package : nipovpn_core
Version : 0.1
Maintainer : Morteza Bashsiz
Architecture : amd64
Description : Powerfull and Secure http/s Proxy
Depends : libyaml-cpp0.8
Homepage : https://github.com/MortezaBashsiz/nipovpn
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=NipoVPN agent
After=network.target auditd.service

[Service]
ExecStart=/usr/bin/nipovpn agent /etc/nipovpn/config.yaml
ExecStart=/usr/bin/nipovpn_core agent /etc/nipovpn/config.yaml
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=NipoVPN server
After=network.target auditd.service

[Service]
ExecStart=/usr/bin/nipovpn server /etc/nipovpn/config.yaml
ExecStart=/usr/bin/nipovpn_core server /etc/nipovpn/config.yaml
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
Expand Down
File renamed without changes.

0 comments on commit 0cc3646

Please sign in to comment.