Changeset 38134


Ignore:
Timestamp:
2013-09-23T12:11:17+02:00 (4 years ago)
Author:
tripolar
Message:

[packages] portmap: switch to new procd init script style and create and use the "rpc"
user instead of the "nobody" user for the daemon

Signed-off-by: Peter Wagner <tripolar@…>

Location:
packages/net/portmap
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/portmap/Makefile

    r33862 r38134  
    1010PKG_NAME:=portmap 
    1111PKG_VERSION:=6.0 
    12 PKG_RELEASE:=3 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 
     
    3838MAKE_FLAGS += \ 
    3939        CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \ 
    40         RPCUSER="nobody" \ 
     40        RPCUSER="rpc" \ 
    4141        LDLIBS="$(TARGET_LDFLAGS) -lwrap $(LIBRPC)" \ 
    4242        all 
  • packages/net/portmap/files/portmap.init

    r29063 r38134  
    55STOP=19 
    66 
    7 start() { 
    8         service_start /usr/sbin/portmap 
     7USE_PROCD=1 
     8 
     9start_service() { 
     10        user_exists rpc 65533 || user_add rpc 65533 65533 rpc /var/empty 
     11        group_exists rpc 65533 || group_add rpc 65533 
     12         
     13        procd_open_instance 
     14        procd_set_param command /usr/sbin/portmap -f 
     15        procd_close_instance 
    916} 
    10  
    11 stop() { 
    12         service_stop /usr/sbin/portmap 
    13 } 
Note: See TracChangeset for help on using the changeset viewer.