Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
910 B

  1. # Maintainer: Pekka Helenius < fincer89 [at] hotmail [dot] com >
  2. pkgname=netnamespace-persistent
  3. pkgver=0.1
  4. pkgrel=1
  5. pkgdesc='Creates a new network namespace during system boot up'
  6. arch=('any')
  7. license=('GPL')
  8. depends=('iproute2' 'systemd' 'sudo')
  9. source=("${pkgname}-${pkgver}.tar.gz")
  10. md5sums=('05b165331a3cfbc960da424c2d65dee6')
  11. # Contents of ${pkgname}-${pkgver}.tar.gz:
  12. # .
  13. # ..
  14. # systemd/network-namespace@.service
  15. # etc/network-namespaces.d/netns1.sh - template file
  16. package() {
  17. cd "${srcdir}"
  18. install -Dm 644 -t "${pkgdir}/etc/network-namespaces.d/" etc/network-namespaces.d/*
  19. install -Dm 644 -t "${pkgdir}/usr/lib/systemd/system/" systemd/*
  20. }
  21. # Usage
  22. #
  23. # sudo systemctl enable network-namespace@netns1.service
  24. # sudo systemctl start network-namespace@netns1.service
  25. #
  26. # Do necessary configuration into /etc/network-namespaces.d/netns1.sh (or any equivalent)
  27. # template file