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.

33 lines
945 B

  1. # Maintainer: Pekka Helenius < fincer89 [at] hotmail [dot] com >
  2. pkgname=snic
  3. pkgver=0.1
  4. pkgrel=1
  5. pkgdesc='Toggle between client/router mode on selected network interface'
  6. arch=('any')
  7. url='https://www.github.com/Fincer/snic'
  8. license=('GPL')
  9. depends=('bash' 'iproute2' 'systemd' 'dhcp' 'hostapd' 'sudo')
  10. source=("${pkgname}-${pkgver}.tar.gz")
  11. md5sums=('10aa677d53d1aa8bd78e87e70971c718')
  12. # Contents of ${pkgname}-${pkgver}.tar.gz (snic-0.1.tar.gz, for instance):
  13. # .
  14. # ..
  15. # shic.sh
  16. # systemd/snic-dhcpd4@.service
  17. # systemd/snic-dynamic@.service
  18. # systemd/snic-static@.service
  19. # snic/dhcpd4-eth0.conf
  20. # snic/dhcpd4-wlan0.conf
  21. # snic/snic-eth0.conf
  22. # snic/snic-wlan0.conf
  23. package() {
  24. cd "${srcdir}"
  25. mkdir -p "${pkgdir}/usr/bin/"
  26. install -Dm 755 snic.sh "${pkgdir}/usr/bin/snic"
  27. install -Dm 644 -t "${pkgdir}/usr/lib/systemd/system/" systemd/*
  28. install -Dm 644 -t "${pkgdir}/etc/snic/" snic/*
  29. }