Browse Source

Add netnamespace-persistent

master
Pekka Helenius 5 years ago
parent
commit
dc42495fd0
3 changed files with 46 additions and 0 deletions
  1. +15
    -0
      Readme.md
  2. +31
    -0
      netnamespace-persistent/PKGBUILD
  3. BIN
      netnamespace-persistent/netnamespace-persistent-0.1.tar.gz

+ 15
- 0
Readme.md View File

@ -187,6 +187,21 @@ Magic Lantern Raw file conversion tool for MLV files. Extract individual DNG fra
**FORMAT:** Arch Linux PKGBUILD script.
## [netnamespace-persistent](netnamespace-persistent)
Simple `systemd` service file for adding persistent Linux network namespace during system boot-up.
### Usage
```
sudo systemctl enable network-namespace@netns1.service
sudo systemctl start network-namespace@netns1.service
```
Do necessary configuration into `/etc/network-namespaces.d/netns1.sh` (or any equivalent) template file.
**FORMAT:** Arch Linux PKGBUILD script + source archive.
## [pacvis-git](pacvis-git)
pacvis by [Jiachen Yang](https://github.com/farseerfc/pacvis)


+ 31
- 0
netnamespace-persistent/PKGBUILD View File

@ -0,0 +1,31 @@
# Maintainer: Pekka Helenius < fincer89 [at] hotmail [dot] com >
pkgname=netnamespace-persistent
pkgver=0.1
pkgrel=1
pkgdesc='Creates a new network namespace during system boot up'
arch=('any')
license=('GPL')
depends=('iproute2' 'systemd' 'sudo')
source=("${pkgname}-${pkgver}.tar.gz")
md5sums=('05b165331a3cfbc960da424c2d65dee6')
# Contents of ${pkgname}-${pkgver}.tar.gz:
# .
# ..
# systemd/network-namespace@.service
# etc/network-namespaces.d/netns1.sh - template file
package() {
cd "${srcdir}"
install -Dm 644 -t "${pkgdir}/etc/network-namespaces.d/" etc/network-namespaces.d/*
install -Dm 644 -t "${pkgdir}/usr/lib/systemd/system/" systemd/*
}
# Usage
#
# sudo systemctl enable network-namespace@netns1.service
# sudo systemctl start network-namespace@netns1.service
#
# Do necessary configuration into /etc/network-namespaces.d/netns1.sh (or any equivalent)
# template file

BIN
netnamespace-persistent/netnamespace-persistent-0.1.tar.gz View File


Loading…
Cancel
Save