Signed-off-by: Peter Wagner <tripolar@gmx.at>
SVN-Revision: 38134
PKG_NAME:=portmap
PKG_VERSION:=6.0
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://neil.brown.name/portmap/
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -DHOSTS_ACCESS -DFACILITY=LOG_DAEMON -DIGNORE_SIGCHLD" \
- RPCUSER="nobody" \
+ RPCUSER="rpc" \
LDLIBS="$(TARGET_LDFLAGS) -lwrap $(LIBRPC)" \
all
START=19
STOP=19
-start() {
- service_start /usr/sbin/portmap
-}
+USE_PROCD=1
-stop() {
- service_stop /usr/sbin/portmap
+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
}