Browse Source

Merge pull request #408 from blogic/userid

generic userid: use the new USERID api
lilik-openwrt-22.03
sbyx 10 years ago
parent
commit
21e7de8f06
22 changed files with 11 additions and 23 deletions
  1. +1
    -0
      admin/zabbix/Makefile
  2. +0
    -2
      admin/zabbix/files/zabbix_agentd.init
  3. +1
    -0
      mail/dovecot/Makefile
  4. +0
    -2
      mail/dovecot/files/dovecot.init
  5. +1
    -0
      net/dmapd/Makefile
  6. +0
    -2
      net/dmapd/files/dmapd.init
  7. +1
    -0
      net/mosquitto/Makefile
  8. +0
    -1
      net/mosquitto/files/mosquitto.init
  9. +1
    -0
      net/ntpd/Makefile
  10. +0
    -2
      net/ntpd/files/ntpd.init
  11. +1
    -0
      net/ocserv/Makefile
  12. +0
    -3
      net/ocserv/files/ocserv.init
  13. +1
    -0
      net/openssh/Makefile
  14. +0
    -2
      net/openssh/files/sshd.init
  15. +1
    -0
      net/portmap/Makefile
  16. +0
    -3
      net/portmap/files/portmap.init
  17. +1
    -0
      net/prosody/Makefile
  18. +0
    -2
      net/prosody/files/prosody.init
  19. +1
    -0
      net/tor/Makefile
  20. +0
    -2
      net/tor/files/tor.init
  21. +1
    -0
      sound/pulseaudio/Makefile
  22. +0
    -2
      sound/pulseaudio/files/pulseaudio.init

+ 1
- 0
admin/zabbix/Makefile View File

@ -32,6 +32,7 @@ define Package/zabbix/Default
URL:=http://www.zabbix.com/
SUBMENU:=zabbix
MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
USERID:=zabbix=53:zabbix=53
endef
define Package/zabbix-agent


+ 0
- 2
admin/zabbix/files/zabbix_agentd.init View File

@ -19,8 +19,6 @@ start() {
}
grep -q "^AllowRoot=1" ${CONFIG} || {
user_exists zabbix 53 || user_add zabbix 53
group_exists zabbix 53 || group_add zabbix 53
touch ${SERVICE_PID_FILE}
chown zabbix:zabbix ${SERVICE_PID_FILE}
}


+ 1
- 0
mail/dovecot/Makefile View File

@ -31,6 +31,7 @@ define Package/dovecot
TITLE:=An IMAP and POP3 daemon
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
URL:=http://www.dovecot.org/
USERID:=dovecot=59:dovecot=59
endef
define Package/dovecot/description


+ 0
- 2
mail/dovecot/files/dovecot.init View File

@ -7,8 +7,6 @@ STOP=75
USE_PROCD=1
start_service() {
user_exists dovecot 59 || user_add dovecot 59
group_exists dovecot 59 || group_add dovecot 59
mkdir -p -m 0755 /var/lib/dovecot
mkdir -p -m 0755 /var/run/dovecot
chmod 0750 /var/lib/dovecot


+ 1
- 0
net/dmapd/Makefile View File

@ -32,6 +32,7 @@ define Package/dmapd
DEPENDS:=+libdmapsharing +libdb47 +vips
TITLE:= dmapd
URL:=http://www.flyn.org/projects/dmapd/
USERID:=dmapd=56:dmapd=56
endef
define Package/dmapd/decription


+ 0
- 2
net/dmapd/files/dmapd.init View File

@ -4,8 +4,6 @@
START=60
start() {
user_exists dmapd 56 || user_add dmapd 56
group_exists dmapd 56 || group_add dmapd 56
[ -d /var/run/dmapd ] || {
mkdir -m 0755 -p /var/run/dmapd
chown dmapd:dmapd /var/run/dmapd


+ 1
- 0
net/mosquitto/Makefile View File

@ -30,6 +30,7 @@ define Package/$(PKG_NAME)/default
URL:=http://www.mosquitto.org/
MAINTAINER:=Karl Palsson <karlp@remake.is>
DEPENDS:= +librt
USERID:=mosquitto=200:mosquitto=200
endef
define Package/$(PKG_NAME)


+ 0
- 1
net/mosquitto/files/mosquitto.init View File

@ -14,7 +14,6 @@ SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
start() {
user_exists mosquitto 200 || user_add mosquitto 200
if [ "$USE_UCI_CONFIG" -eq 1 ]; then
CONF=/tmp/mosquitto.converted.$$.conf
mosquitto.uci.convert -f $CONF


+ 1
- 0
net/ntpd/Makefile View File

@ -31,6 +31,7 @@ define Package/ntpd/Default
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
URL:=http://www.ntp.org/
DEPENDS:=+libcap
USERID:=ntp=123:ntp=123
endef
define Package/ntpd/Default/description


+ 0
- 2
net/ntpd/files/ntpd.init View File

@ -9,8 +9,6 @@ USE_PROCD=1
start_service() {
# ln -sf /dev/ttyS0 /dev/gps0
# /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf
user_exists ntp 123 || user_add ntp 123 123 ntp /var/lib/ntp
group_exists ntp 123 || group_add ntp 123
mkdir -p /var/lib/ntp
chown -R ntp:ntp /var/lib/ntp


+ 1
- 0
net/ocserv/Makefile View File

@ -34,6 +34,7 @@ define Package/ocserv
URL:=http://www.infradead.org/ocserv/
MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
DEPENDS:= +libgnutls +certtool +libncurses +libreadline +OCSERV_PAM:libpam +OCSERV_PROTOBUF:libprotobuf-c
USERID:=ocserv=72:ocserv=72
endef
define Package/ocserv/description


+ 0
- 3
net/ocserv/files/ocserv.init View File

@ -86,9 +86,6 @@ setup_dns() {
start() {
local hostname iface
user_exists ocserv 72 || user_add ocserv 72 72 /var/lib/ocserv
group_exists ocserv 72 || group_add ocserv 72
hostname=`uci get ddns.myddns.domain`
[ -z "$hostname" ] && hostname=`uci get system.@system[0].hostname`


+ 1
- 0
net/openssh/Makefile View File

@ -35,6 +35,7 @@ define Package/openssh/Default
URL:=http://www.openssh.com/
SUBMENU:=SSH
VARIANT:=without-pam
USERID:=sshd=22:sshd=22
endef
define Package/openssh-moduli


+ 0
- 2
net/openssh/files/sshd.init View File

@ -18,8 +18,6 @@ start_service() {
}
}
}; done
user_exists sshd 22 || user_add sshd 22 22 sshd /var/empty
group_exists sshd 22 || group_add sshd 22
mkdir -m 0700 -p /var/empty
procd_open_instance


+ 1
- 0
net/portmap/Makefile View File

@ -29,6 +29,7 @@ define Package/portmap
TITLE:=The RPC Portmapper
URL:=http://neil.brown.name/portmap/
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
USERID:=rpc=65533:rpc=65533
endef
define Package/portmap/description


+ 0
- 3
net/portmap/files/portmap.init View File

@ -7,9 +7,6 @@ STOP=19
USE_PROCD=1
start_service() {
user_exists rpc 65533 || user_add rpc 65533 65533 rpc /var/empty
group_exists rpc 65533 || group_add rpc 65533
procd_open_instance
procd_set_param command /usr/sbin/portmap -f
procd_close_instance


+ 1
- 0
net/prosody/Makefile View File

@ -28,6 +28,7 @@ define Package/prosody
DEPENDS:=+luafilesystem +libidn +luaexpat +luasec +libopenssl +libidn +liblua
TITLE:=XMPP server
URL:=http://prosody.im/
USERID:=prosody=54:prosody=54
endef
define Package/prosody/description


+ 0
- 2
net/prosody/files/prosody.init View File

@ -14,8 +14,6 @@ RUN_USER=prosody
RUN_GROUP=prosody
start() {
user_exists prosody 54 || user_add prosody 54
group_exists prosody 54 || group_add prosody 54
[ -d /var/run/prosody ] || {
mkdir -m 0755 -p /var/run/prosody
chown prosody:prosody /var/run/prosody


+ 1
- 0
net/tor/Makefile View File

@ -27,6 +27,7 @@ define Package/tor/Default
SECTION:=net
CATEGORY:=Network
URL:=https://www.torproject.org/
USERID:=tor=52:tor=52
endef
define Package/tor/Default/description


+ 0
- 2
net/tor/files/tor.init View File

@ -7,8 +7,6 @@ STOP=50
USE_PROCD=1
start_service() {
user_exists tor 52 || user_add tor 52 52 /var/lib/tor
group_exists tor 52 || group_add tor 52
[ -f /var/run/tor.pid ] || {
touch /var/run/tor.pid
chown tor:tor /var/run/tor.pid


+ 1
- 0
sound/pulseaudio/Makefile View File

@ -38,6 +38,7 @@ define Package/pulseaudio/Default
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
URL:=http://www.pulseaudio.org
PROVIDES:=pulseaudio
USERID:=pulse=51:pulse=51
endef
define Package/pulseaudio-daemon


+ 0
- 2
sound/pulseaudio/files/pulseaudio.init View File

@ -8,8 +8,6 @@ USE_PROCD=1
PROG=/usr/bin/pulseaudio
start_service() {
user_exists pulse 51 || user_add pulse 51
group_exists pulse 51 || group_add pulse 51
[ -d /var/run/pulse ] || {
mkdir -m 0755 -p /var/run/pulse
chmod 0750 /var/run/pulse


Loading…
Cancel
Save