summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Honeyman2017-06-20 10:28:00 +0100
committerSteven Honeyman2017-06-20 10:28:00 +0100
commit3280129b56be1349df7e82a3178cbe81aaea5bc7 (patch)
treeda0ca4db501b7a809eabfbc70749f2dda8c7f320
parent34d716f0f25bbaf326429cc15e01c0d1ff3ab97d (diff)
downloadaur-netboot.tar.gz
Allow running without root
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD3
-rw-r--r--netboot.install3
3 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d3c945aa3abf..c90457eb1de4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
# Generated by mksrcinfo v8
-# Thu Dec 24 12:52:46 UTC 2015
+# Tue Jun 20 09:27:02 UTC 2017
pkgbase = netboot
pkgdesc = a simple PXE-compatible DHCP and TFTP server
pkgver = 20100119
- pkgrel = 2
+ pkgrel = 3
url = http://brokestream.com/netboot.html
+ install = netboot.install
arch = i686
arch = x86_64
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index 83500ed2105a..3ee32e2ecefc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=netboot
pkgver=20100119
-pkgrel=2
+pkgrel=3
pkgdesc="a simple PXE-compatible DHCP and TFTP server"
arch=(i686 x86_64)
url="http://brokestream.com/netboot.html"
@@ -11,6 +11,7 @@ license=(BSD)
depends=(glibc)
makedepends=(gcc)
source=(http://brokestream.com/netboot.c)
+install=netboot.install
build() {
cd $srcdir
diff --git a/netboot.install b/netboot.install
new file mode 100644
index 000000000000..56e8502bd233
--- /dev/null
+++ b/netboot.install
@@ -0,0 +1,3 @@
+post_install() {
+ setcap 'CAP_NET_BIND_SERVICE+ep' /usr/bin/netboot
+}