net/bind: add the bind user/group
authorNoah Meyerhans <frodo@morgul.net>
Fri, 12 Dec 2014 22:32:14 +0000 (14:32 -0800)
committerNoah Meyerhans <frodo@morgul.net>
Sat, 13 Dec 2014 21:08:50 +0000 (13:08 -0800)
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
net/bind/Makefile
net/bind/files/named.init

index 7aade35e4d626e66518c6f9a70f35b9decad5876..e4ee053d64d17965c87712444073deba79aeedbc 100644 (file)
@@ -10,7 +10,8 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bind
 PKG_VERSION:=9.9.6-P1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
+USERID:=bind=57:bind=57
 
 PKG_MAINTAINER := Noah Meyerhans <frodo@morgul.net>
 PKG_LICENSE := BSD-3-Clause
index 1441dbd4704bca9e31dbfbdff8e22b7c2c853fd1..2ef7797ba0018ac7c4fca9fb765615255b13ebd9 100644 (file)
@@ -26,6 +26,8 @@ fix_perms() {
 }
 
 start_service() {
+    user_exists bind 57 || user_add bind 57
+    group_exists bind 57 || group_add bind 57
     fix_perms
     procd_open_instance
     procd_set_param command /usr/sbin/named -u bind -f -c $config_file